/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #000000; /* Dark background */
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #000000; /* Dark background for navbar */
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #bb86fc; /* Light purple for text */
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #bb86fc; /* Darker purple for hover effect */
}

/* Hero Section */
.hero {
    background-color: #000000; /* Dark background for hero */
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content img.profile-pic {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3em;
    color: #bb86fc; /* Light purple for main heading */
}

.hero p {
    font-size: 1.2em;
    margin-top: 10px;
}

.hero-button {
    margin-top: 20px;
    background-color: #bb86fc; /* Light purple button */
    color: #000000;
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #bb86fc; /* Darker purple for button hover */
}

/* Component 3 Images - Specific Targeting */
.component-3 .update-image {
    width: 30%; /* Shrink images to 50% width of their container */
    height: auto; /* Maintain aspect ratio */
    border: 4px solid #bb86fc; /* Add a purple border */
    border-radius: 8px; /* Slightly round the corners */
    margin: 20px auto; /* Center the image */
    display: block; /* Ensure the image is block-level */
}

.component-3 .update-image:hover {
    transform: scale(1.05); /* Add a slight hover effect */
    transition: transform 0.3s ease;
}

/* About Section */
.about {
    padding: 50px;
    text-align: center;
    background-color: #000000;
}

.about h2 {
    font-size: 2em;
    color: #bb86fc;
}

.about p {
    font-size: 1.2em;
    color: #ffffff;
    margin-top: 20px;
}

/* Image in About Section */
.about-pic {
    width: 50%;
    max-width: 300px;
    height: auto;
    border-radius: 25%;
    margin-bottom: 20px;
}

/* Skills Section */
main {
    flex: 1;
}

.skills {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Vertically center the content */
    align-items: center;      /* Horizontally center the content */
    margin-top: auto;         /* Push the section to the bottom of the page */
    padding-bottom: 50px;     /* Add some padding at the bottom */
    background-color: #000000;
}

.skills h2 {
    font-size: 2em;
    color: #bb86fc;
    margin-bottom: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjust based on screen size */
    gap: 20px;
    justify-content: center; /* Ensure the grid is centered horizontally */
    width: 100%;
    max-width: 1000px;
}

.skill-item {
    background-color: #1a1a1a;
    color: #bb86fc;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-item i {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.skill-item p {
    margin: 0;
    font-size: 1.2em;
}

.skill-item:hover {
    background-color: #bb86fc;
    color: #200038;
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 50px 20px;
    background-color: #000000;
}

.project-item {
    background-color: #1a1a1a;
    color: #bb86fc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-item:hover {
    background-color: #bb86fc;
    color: #200038;
    transform: scale(1.05);
}

/* Footer Section */
footer {
    border-top: 1px solid #bb86fc;
    padding: 20px 0;
    background-color: #000000;
    text-align: center;
}

footer a {
    margin: 0 10px;
    color: #bb86fc;
    text-decoration: none;
}

footer a:hover {
    color: #bb86fc;
}
