/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px; /* Add margins around the body */
    padding: 0; /* Ensure no additional padding */
    color: #333;
    box-sizing: border-box; /* Include padding and border in the element's dimensions */
}

html, body {
    height: auto; /* Adjust height dynamically based on content */
    margin: 0; /* Remove default browser margins for html */
}

main {
    margin: 0 auto; /* Center horizontally */
    padding: 20px; /* Add padding inside the main content */
}

/* Header Section */
header {
    position: relative; /* Allows positioning of child elements */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Vertically center the name and tagline */
    align-items: center; /* Horizontally center the name and tagline */
    height: 200px; /* Adjust height dynamically to fit content */
    width: 100%; /* Full width */
    background: #f4f4f4; /* Background color */
    text-align: center;
    padding: 20px 0; /* Reduce padding for a slimmer look */
    box-sizing: border-box;
}

header h1 {
    margin: 0;
    font-size: 3em; /* Adjust font size for a balanced look */
    color: #333;
}

header p {
    margin: 5px 0 0; /* Reduce spacing below the tagline */
    font-size: 1.2em; /* Slightly smaller font for the tagline */
    color: #555;
}

.profile-photo {
    position: absolute; /* Position the photo relative to the header */
    top: 20px; /* Distance from the top of the header */
    right: 20px; /* Distance from the right of the header */
    width: 150px; /* Photo size */
    height: 150px; /* Ensure the photo is proportional */
    border-radius: 50%; /* Circular photo */
    border: 2px solid #333; /* Optional: Adds a border */
    object-fit: cover; /* Ensure proper scaling of the image */
}

/* Navigation Bar */
nav {
    margin: 0;
    padding: 0;
    background: #333; /* Keep background consistent */
    width: 100%; /* Ensure full width */
}

nav ul {
    display: flex;
    justify-content: center; /* Center navigation items */
    list-style: none;
    margin: 0; /* Remove default margins */
    padding: 10px 0; /* Add some vertical padding */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

nav ul li a:hover {
    background: #575757;
}

/* Section Headers */
section h2 {
    padding: 5px;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
    text-align: center;
    background-color: #333; /* Dark header background */
}

/* About Section */
#about p {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #555;
}

/* Experience Section */
.job {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.job h3 {
    font-size: 1.5em;
    color: #5f5e5e;
    margin-bottom: 5px;
}

.job p {
    font-size: 1.1em;
    color: #555;
}

.job ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: disc;
}

/* Education and Certifications */
#education ul, #certifications ul {
    list-style-type: disc; /* Adds bullet points */
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#education li, #certifications li {
    margin-bottom: 10px; /* Adds space between list items */
    line-height: 1.6; /* Improves readability */
    font-size: 1.1em;
    color: grey;
}

/* Skills */
#skills {
    margin: 20px 0;
    padding: 0 20px 20px 20px; /* Remove top padding */
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#skills h2 {
    text-align: center;
    color: white;
    font-size: 1.5em;
    margin: 0 -20px 20px -20px; /* Negative side margins */
    padding: 5px;
    background-color: #333;
    border-bottom: 2px solid #ccc;
}

.skills-container {
    display: flex; /* Enables columns */
    flex-wrap: wrap; /* Wrap columns if they don’t fit in one row */
    gap: 20px; /* Adds space between columns */
    justify-content: space-evenly; /* Even spacing between columns */
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */    
}

.skill-category {
    flex: 1 1 calc(25% - 20px); /* Each column takes up 25% of the row minus spacing */
    min-width: 200px; /* Ensures a minimum width for smaller screens */
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
}

.skill-category h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: underline;
}

.skill-category ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.skill-category ul li {
    margin-bottom: 5px; /* Space between skills */
    color: #555;
    font-size: 1em;
}


/* Recommendations Section */
#recommendations {
    margin: 20px 0;
    padding: 20px;
}

#recommendations h2 {
    border-bottom: 2px solid #ccc;
    padding: 5px;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: white;
}

.recommendation {
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.recommendation blockquote {
    font-style: italic;
    font-size: 1.1em;
    margin: 0;
    color: grey;
    border-left: 5px solid #4caf50; /* Highlight bar for quotes */
    padding-left: 10px;
}

.recommendation p {
    margin: 10px 0 0;
    font-weight: bold;
    color: #333;
}

/* Awards Section */
#awards {
    margin: 20px 0;
    padding: 20px;
}

.award {
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: #f9f9f9; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.award blockquote {
    font-style: italic;
    font-size: 1.1em;
    margin: 0;
    color: grey;
    border-left: 5px solid #4caf50; /* Highlight bar for quotes */
    padding-left: 10px;
}

.award p {
    margin: 10px 0 0;
    font-weight: bold;
    color: #333;
}

/* Professional courses */
#professional-courses ul {
    column-count: 2; /* Split into two columns */
    column-gap: 20px; /* Space between columns */
    list-style-type: disc; /* Add bullet points */
    margin: 10px 0;
    padding: 0 20px;
}

#professional-courses li {
    break-inside: avoid; /* Prevent breaking items across columns */
    margin-bottom: 10px; /* Space between list items */
    font-size: 1.1em;
    color: #555;
}

#professional-courses li strong {
    color: #555; /* Highlight course titles */
}

@media (max-width: 768px) {
    #professional-courses ul {
        column-count: 1; /* Reverts to single column on smaller screens */
    }
}



/* Footer */
footer {
    text-align: center;
    background: #333;
    color: #fff;
    padding: 10px 0;
    margin-top: 20px;
}
