/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e; /* Dark gray background */
    color: #f5f5f5; /* Light gray text */
    line-height: 1.6;
}

body, .container {
    margin: 0;
    padding: 0;
    height: 100vh; /* Full viewport height */
    position: relative; /* Needed if targeting a specific container */
}

/* Style for the image */
.top-left-image {
  position: absolute; /* Allows precise positioning */
  top: 0; /* Aligns to the top */
  left: 0; /* Aligns to the left */
  z-index: 10; /* Ensures it stays above other content */
  width: 6%; 
  height: auto; /* Maintain aspect ratio */
}

header {
    background: #282828;
    color: #f5f5f5;
    padding: 1rem;
    text-align: center;
    flex:auto;
}
h5 {
    padding: 0%;
}
h6 {
    padding: 0%;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #00aaff; /* Blue for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f5f5f5;
}

main {
    padding: 2rem;
}

section {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    background: #2a2a2a; /* Slightly lighter gray for section backgrounds */
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.profiles, .portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
aside {
    flex: 0 0 auto; /* Ensures the aside doesn't shrink or grow */
    margin-right: 1rem; /* Adds spacing between the aside and the main content */
}

.portfolio h4 {
    text-align: left;
    padding: 0;
    padding-left: 2%;
    line-height: normal;
    gap: 0;
    margin: 0.1rem 0;
    font-size: larger;
}

.portfolio-image {
    width: 200px;
}
.portfolio p {
    text-align: left;
    padding: 0;
    padding-left: 2%;
    line-height: normal;
    gap: 0;
    margin: 0.1rem 0;
}
.profile {
    background: #3a3a3a;
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    flex: 1 1 calc(40% - 1rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
 

.portfolio-item {
    background: #3a3a3a;
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    flex: 1 1 calc(25% - 1rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.profile img {
    border-radius: 50%;
    margin-bottom: 1rem;
}

.button {
    background: #00aaff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0077cc;
}

footer {
    background: #282828;
    color: #f5f5f5;
    text-align: center;
    padding: 1rem;
}
