/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#page-container {
    position: relative;
    min-height: 100vh;
}

#content-wrap {
    padding-bottom: 2.5rem;    /* Footer height */
}

/* Styling the header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex; /* Use Flexbox to align items */
    justify-content: space-between; /* Push navbar-header and nav-menu to opposite ends */
    align-items: center; /* Center items vertically */
    padding: 2% 2%; /* Add some padding for spacing */
    background-color: #333; /* Navbar background color */
    color: #fff; /* Navbar text color */
}

/* Styling navbar-header */
.navbar-header {
    display: flex;
    gap: 2%;
    align-items: center; /* Center icon and text vertically */
}

.navbar-header .navbar-title {
    margin: 0; /* Add space between the header text and the icon */
    font-size: 1.2rem;
    color: #fff;
}

.navbar-header .navbar-title a {
    text-decoration: none;
    color: #fff;
}

.navbar-header .navbar-title a:hover {
    color: #f4a261; /* Change color on hover */
}

.navbar-header .navbar-icon img {
    height: 40px; /* Adjust icon size */
    width: 40px;
    border-radius: 50%; /* Make the icon circular */
}

/* Styling nav menu */
nav {
    display: flex; /* Align menu items in a row */
    gap: 20px; /* Space between each link */
}

nav a {
    text-decoration: none; /* Remove underline */
    color: #fff; /* Link color */
    font-size: 1rem;
    transition: color 0.3s ease; /* Smooth hover transition */
}

nav a:hover {
    color: #f4a261; /* Change color on hover */
}

main {
    padding: 20px; /* Horizontal and vertical padding for content */
    margin-top: 10px; /* Optional: Add space between header and content */
}

/* Styling the animation section */
.animation {
    display: flex;
    justify-content: center; /* Center the animation box horizontally */
    align-items: center; /* Center the animation box vertically if necessary */
    height: auto;
    padding: 20px; /* Optional: Add some spacing around the section */
}

/* Styling the animation box */
.animation-box {
    position: relative; /* Make this the positioning context for child images */
    width: 60%; /* Box width is 70% of the screen */
    aspect-ratio: 4 / 1; /* Height is half the width */
    background-color: #fff; /* Optional: Add a light background for the box */
    overflow: hidden; /* Ensure images don't overflow outside the box */
}

/* Styling individual images */
.animation-box img {
    position: absolute; /* Position the images within the box */
    max-width: 20%; /* Limit image size to fit within the box */
    height: auto; /* Maintain aspect ratio */
}

/* Coding image (bottom-right corner) */
#coding {
    bottom: 0; /* Position at the bottom */
    right: 0; /* Position at the right */
    height: 30%;
    aspect-ratio: 1;
}

/* Plane image (top-right corner) */
#plane {
    top: 0; /* Position at the top */
    right: 0; /* Position at the right */
    width: 20px;
    height: 20px;
    transform: scaleX(-1);
}

/* Sun image (top-left corner) */
#sun {
    top: 0; /* Position at the top */
    left: 0; /* Position at the left */
    width: 60px;
    height: 60px;
}

/* About Me Section */
.about-me {
    text-align: center; /* Center-align text in the section */
    padding: 40px 20px; /* Add spacing around the section */
}

.about-me h2 {
    font-size: 2rem; /* Adjust the font size */
    margin-bottom: 20px; /* Add spacing below the title */
}

.personal-info {
    display: grid; /* Use a grid layout */
    grid-template-columns: 1fr 2fr; /* 1/3 for the image, 2/3 for the text */
    gap: 20px; /* Add spacing between image and text */
    align-items: center; /* Vertically align content */
    justify-content: center; /* Center the grid items */
    max-width: 800px; /* Limit the width of the content */
    margin: 0 auto; /* Center the grid in the section */
}

.personal-info img {
    width: 150px; /* Adjust the image size */
    height: 150px; /* Keep the image square */
    border-radius: 50%; /* Make the image rounded */
    object-fit: cover; /* Ensure the image fills its container */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.personal-info p {
    font-size: 1rem; /* Adjust the font size for the text */
    line-height: 1.6; /* Improve readability with line spacing */
    text-align: justify; /* Align text to the left */
    
}

/* Projects Section */
.projects {
    text-align: center; /* Center-align the title */
    padding: 40px 20px; /* Add spacing around the section */
}

.projects h2 {
    font-size: 2rem; /* Same font size as the "About Me" title */
    margin-bottom: 20px; /* Add spacing below the title */
}

.projects ul {
    display: grid; /* Use a grid layout for the list */
    grid-template-columns: 1fr 3fr; /* Two columns: title (1/4) and details (3/4) */
    gap: 20px 10px; /* Add spacing between grid items (rows and columns) */
    justify-content: center; /* Center the grid content */
    max-width: 800px; /* Limit the width of the content */
    margin: 0 auto; /* Center the grid in the section */
    list-style: none; /* Remove default bullet points */
    padding: 0; /* Remove default padding */
}

.projects li {
    display: contents; /* Allow li content to align properly in grid cells */
}

.projects li:nth-child(odd) {
    font-weight: bold;
    color: #333; /* Dark color for project title */
    text-decoration: none; /* Remove underline from project title link */
    font-size: 1.2rem; /* Slightly larger font for project titles */
}

.projects li:nth-child(odd) a:hover {
    color: #f4a261; /* Highlight color on hover */
}

.projects li:nth-child(even) {
    font-size: 1rem; /* Text font size for project details */
    line-height: 1.6; /* Improve readability */
    color: #555; /* Slightly lighter color for details */
}

footer {
    position: absolute;
    width: 100%;
    height: 2.5rem;
    bottom: 0;
    display: flex; /* Use Flexbox to align items */
    justify-content: space-between; /* Push navbar-header and nav-menu to opposite ends */
    align-items: center; /* Center items vertically */
    padding: 10px 20px; /* Add some padding for spacing */
    background-color: #333; /* Navbar background color */
    color: #fff; /* Navbar text color */
}