/**
Author: Alexis Akpabio
Course: CST8285 312
Date: 03/03/2025
Description: This is the CSS styling file
Version: 1.0
*/

/* General reset: 
   This resets the default margin, padding, and sets box-sizing for all elements. 
   Helps maintain consistent styling across browsers. */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling: 
   Sets the font, line height, background color, and text color for the body. */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #fff8e1; /* Soft light yellow background */
    color: #333; /* Dark text color */
}

/* Header Styling:
   Styles for the header section, setting background color, text color, and layout for the header elements. */
header {
    background-color: #ff6f00; /* Orange background color */
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Header heading styling:
   Adjusts the font size and margin for the main heading in the header. */
header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Navigation list styling:
   Resets the list-style for the navigation menu and removes padding. */
header nav ul {
    list-style-type: none;
    padding: 0;
}

/* Styling for navigation list items:
   Makes each list item display inline and adds margin for spacing. */
header nav ul li {
    display: inline;
    margin: 0 15px;
}

/* Link styling within the navigation menu:
   Sets link color, removes underline, and defines font size. */
header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Link hover effect:
   Changes the link color when hovered. */
header nav ul li a:hover {
    color: #fff176; /* Light yellow on hover */
}

/* Main content styling:
   Limits the width of the main content area, centers it, and adds padding. */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile image styling:
   Sets a circular border and limits the size of the profile image. */
.profile-image {
    max-width: 200px;
    border-radius: 50%;
    display: block;
    margin: 20px auto;
}

/* Project container styling:
   Makes the project container display in a flexible layout with space around items and wrapping for smaller screens. */
#project-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Individual project styling:
   Styles each project box with padding, background color, rounded corners, and a box shadow for a 3D effect. */
.project {
    background-color: #f57c00; /* Dark orange background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    width: 50%; /* Sets width to 50% of the parent container */
    margin: 15px;
    text-align: center;
    transition: transform 0.3s ease; /* Smooth transform effect */
}

/* Project hover effect:
   Slightly enlarges the project box when hovered over. */
.project:hover {
    transform: scale(1.05);
}

/* Project image styling:
   Ensures images within the project boxes fit within their containers, maintaining aspect ratio and rounding corners. */
.project img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Button styling:
   Sets the background color, padding, font size, and border radius for buttons, with a hover effect. */
button {
    background-color: #ff6f00; /* Orange background for buttons */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px;
    transition: background-color 0.3s; /* Smooth color transition on hover */
}

/* Button hover effect:
   Changes the background color of the button when hovered. */
button:hover {
    background-color: #ff5722; /* Darker orange on hover */
}

/* Contact form styling:
   Adds a background color, padding, border radius, and shadow to the form to make it visually appealing. */
form {
    background-color: #ffcc80; /* Light orange background for the form */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    max-width: 600px;
    margin: 20px auto;
}

/* Form input and textarea styling:
   Defines width, padding, margin, and styling for text fields and text areas. */
form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
}

/* Form submit button styling:
   Makes the submit button take up the full width of the form and matches the style of other buttons. */
form button {
    width: 100%;
    font-size: 1.2rem;
    background-color: #ff6f00;
}

/* Footer styling:
   Makes the footer stick to the bottom of the page with a fixed position, and gives it a background color. */
footer {
    background-color: #ff5722; /* Red-orange background for footer */
    color: white;
    text-align: center;
    padding: 1px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Media Query for responsiveness:
   Adjusts the layout and font sizes for smaller screens (max-width: 768px). */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem; /* Reduces font size for smaller screens */
    }

    header nav ul {
        text-align: center;
    }

    header nav ul li {
        display: block; /* Stacks navigation items vertically */
        margin: 10px 0;
    }

    .project {
        width: 100%; /* Makes project boxes take up the full width on small screens */
        margin: 15px 0;
    }

    button {
        width: 100%; /* Makes buttons take up the full width */
        padding: 15px;
    }
}
