/* Base styles (Desktop) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: auto; /* so that the page would automatically occupy spaces */
}

/* Navbar section starts */

nav {
    background-color: #333; /* Match the footer color */
    padding: 1em;
    text-align: center;
}

#navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the navbar items */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

#navbar li {
    margin: 0 15px; /* Add horizontal spacing */
}

#navbar li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px; /* Add padding for a button-like appearance */
    border-radius: 5px; /* Round corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

#navbar li a:hover {
    background-color: #555; /* Change background on hover */
    color: #fff; /* Keep text white */
}

/* Responsive Styles */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column; /* Stack items vertically on mobile */
        align-items: center; /* Center items */
        padding: 1em 0; /* Add some vertical padding */
    }

    #navbar li {
        margin: 10px 0; /* Add vertical spacing */
    }

    #navbar li a {
        width: 100%; /* Full width buttons */
        text-align: center; /* Center text */
    }
}



/* General About Section Styling */
.about-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background-color: #f7f9fc; /* Light, clean background color */
    padding: 60px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add some depth with shadow */
}

.profileImage {
    flex: 1;
    text-align: center;
}

.profilePicture {
    width: 200px; /* Size the profile picture appropriately */
    height: 200px;
    border-radius: 50%; /* Make the image circular */
    border: 5px solid #007bff; /* Border around the profile picture */
    object-fit: cover; /* Ensure the image doesn't stretch */
    transition: transform 0.3s;
}

.profilePicture:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.about-text {
    flex: 2;
    text-align: left;
    padding-left: 30px;
    font-family: 'Poppins', sans-serif;
}

.about-text h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.about-text h3 {
    font-size: 24px;
    color: #007bff; /* Add color to your title */
    margin-bottom: 15px;
}

.about-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 40px 15px;
    }

    .about-text {
        text-align: center;
        padding: 0;
    }

    .about-text h1 {
        font-size: 28px;
    }

    .about-text h3 {
        font-size: 20px;
    }

    .about-text p {
        font-size: 16px;
    }

    .profilePicture {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .about-text h1 {
        font-size: 24px;
    }

    .about-text h3 {
        font-size: 18px;
    }

    .about-text p {
        font-size: 14px;
    }

    .profilePicture {
        width: 120px;
        height: 120px;
    }
}

/* General Project Container Styling */
.ProjectContainer {
    background-color: #f0f4f8; /* Soft, clean background color */
    padding: 40px 20px;
    text-align: center;
}

.projects-header {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif; /* Clean, modern font */
}

/* Grid Layout for Projects */
.myProjects {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto the next line */
    justify-content: space-between; /* Space out items evenly */
}

.projectItems {
    flex: 1 1 calc(30% - 20px); /* Make each item take up about 30% of the width with some spacing */
    margin: 10px; /* Add some margin for spacing */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    border-radius: 5px; /* Optional rounded corners */
    overflow: hidden; /* Prevent overflow of content */
    transition: transform 0.3s; /* Smooth hover effect */
}

.projectItems:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.project-pic {
    width: 100%; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
}

.project-title {
    text-align: center; /* Center the title */
    padding: 10px; /* Padding for better spacing */
    font-size: 1.2em; /* Slightly larger font size */
    color: #333; /* Change text color */
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .projectItems {
        flex: 1 1 calc(100% - 20px); /* Stack items on smaller screens */
    }
}


/* Styling the Show Repo Button */
.show-all-wrapper {
    margin-top: 30px;
}

.show-all {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.show-all:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Responsive behavior */
@media (max-width: 768px) {
    .projects-header {
        font-size: 28px;
    }
    
    .project-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .projects-header {
        font-size: 24px;
    }
    
    .project-title {
        font-size: 14px;
    }
}

.contact-details {
    display: block;
    margin: 10px 0;
    text-align: center;
    color: #333;
    text-decoration: none;
}

/* Contact Section Styling */
.contact {
    padding: 40px;
    background-color: #f8f9fa; /* Light background to distinguish the contact section */
    text-align: center;
}

.contact .header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.contact .header p {
    font-size: 18px;
    color: #777;
}

.contact-details {
    display: inline-block;
    margin: 15px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details i {
    margin-right: 10px;
    font-size: 24px; /* Icon size */
}

.contact-details:hover {
    color: #007bff; /* Change to a highlight color on hover */
}

/* Responsive styling */
@media (max-width: 768px) {
    .contact .header h1 {
        font-size: 28px;
    }
    .contact .header p {
        font-size: 16px;
    }
    .contact-details {
        font-size: 16px;
    }
    .contact-details i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact .header h1 {
        font-size: 24px;
    }
    .contact .header p {
        font-size: 14px;
    }
    .contact-details {
        font-size: 14px;
        margin: 10px;
    }
    .contact-details i {
        font-size: 18px;
    }
}

/* Footer Section */
footer {
    background-color: #333; /* Match footer background */
    color: white; /* Text color */
    text-align: center; /* Center the text */
    padding: 20px 0; /* Add some padding */
}

footer p {
    margin: 0; /* Remove default margin */
    font-size: 14px; /* Font size */
}

footer i {
    color: #ff0000f1; /* Icon color */
    margin: 0 5px; /* Space around the icon */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.copyright-icon {
    color: inherit; /* This makes the icon inherit the color of its parent */
}


footer a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline */
}

footer a:hover {
    text-decoration: underline; /* Underline on hover */
}

@media (max-width: 768px) {
    footer p {
        font-size: 12px; /* Adjust font size for smaller screens */
    }
}