/* Basic Body Styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
}

/* Global Container */
.container {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* Header */
header {
    background: #35424a;
    color: #ffffff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #e8491d 3px solid;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    margin: 0;
    padding: 0;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding h1 {
    margin: 0;
    padding-bottom: 10px; /* Added padding for better alignment */
}

/* --- Flexbox Modernization --- */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    display: flex;
    align-items: center;
}

header .highlight,
header .current a {
    color: #e8491d;
    font-weight: bold;
}

header a:hover {
    color: #cccccc;
    transition: color 0.2s ease-in-out;
}



/* Showcase Area */
#showcase {
    min-height: 200px;
    background: #35424a url('../img/showcase.jpg') no-repeat 0 -400px; /* Placeholder for a background image */
    text-align: center;
    color: #ffffff;
    padding: 40px 0;
}

#showcase h1 {
    margin-top: 20px;
    font-size: 55px;
    margin-bottom: 10px;
}

#showcase p {
    font-size: 20px;
    margin-bottom: 0;
}

/* Main Content Area */
#main {
    padding: 20px 0;
}

#main-col {
    width: 100%;
}

.page-title {
    color: #35424a;
}

/* Form Styling */
.dark {
    padding: 15px;
    background: #35424a;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.quote input, .quote textarea {
    width: 95%;
    padding: 5px;
    border-radius: 3px;
    border: #e8491d 1px solid;
}

.quote label {
    display: block;
    margin-top: 10px;
}

.button_1 {
    display: inline-block;
    background: #e8491d;
    border: 0;
    padding: 10px 40px;
    color: #ffffff;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
}

.button_1:hover {
    background: #f06236;
    transition: background-color 0.2s ease-in-out;
}

footer {
    padding: 20px;
    margin-top: 20px;
    color: #ffffff;
    background-color: #35424a;
    text-align: center;
}

/* --- Image and Figure Styling --- */
figure {
    margin: 20px 0;
    padding: 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid #e8491d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #35424a;
    font-size: 14px;
    font-weight: bold;
}

/* --- Project Item Styling --- */
.project-item,
.resume-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8491d;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Content Section Styling --- */
.content-section h3 {
    color: #35424a;
    margin-top: 0;
    border-bottom: 2px solid #e8491d;
    padding-bottom: 10px;
}

.content-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.experience-item,
.education-item {
    background: #f4f4f4;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.experience-item h4,
.education-item h4 {
    color: #35424a;
    margin: 0 0 5px 0;
}

.experience-item p,
.education-item p {
    margin: 5px 0;
}

.experience-item p em,
.education-item p em {
    color: #e8491d;
}

/* --- Content Item Styling --- */
.content-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 5px;
}

.content-item h4 {
    color: #35424a;
    margin: 0 0 10px 0;
}

.content-item p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* --- Competency Group Styling (Resume) --- */
.competency-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 5px;
}

.competency-group h4 {
    color: #35424a;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.competency-group ul {
    margin: 0;
    padding-left: 20px;
}

.competency-group li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* --- Education Details Styling --- */
.education-details {
    background: #f4f4f4;
    padding: 12px;
    border-radius: 3px;
}
.content-item ul {
    margin: 0;
    padding-left: 20px;
}

.content-item li {
    margin-bottom: 8px;
    line-height: 1.5;
}
/* --- Link Styling for Accessibility --- */
a {
    color: #e8491d;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* --- Responsive Image Sizing --- */
@media (max-width: 768px) {
    figure img {
        max-width: 100%;
        height: auto;
    }
    
    .service-item,
    .project-item {
        padding: 10px;
        margin-bottom: 20px;
    }
}