/* 
* Main CSS file for Josh Wallace Portfolio
* Core styling for resume/index page only
*/

/* === VARIABLES === */
:root {
    --primary-dark: #1d2a35;
    --primary-light: #2c3e50;
    --accent-green: #1abc9c;
    --accent-green-light: #2ecc71;
    --accent-blue: #3498db;
    --text-light: #f0f5f9;
    --text-muted: #a1a9b0;
    --card-bg: #ffffff;
    --body-bg: #f5f7f8;
    --banner-bg: #1d2a35;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: var(--transition);
}

ul {
    list-style-type: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.2rem;
}

h2 {
    font-size: 1.8rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-green);
}

h3 {
    font-size: 1.3rem;
}

section {
    margin-bottom: 3rem;
}

/* 
* Complete Banner Section CSS with updated vertical spacing
* Replace the corresponding section in your style.css file
*/

/* === BANNER SECTION === */
.banner {
    background: var(--banner-bg);
    padding: 0.8rem 5%;
    box-shadow: var(--shadow);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-photo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0;
    line-height: 1.2;
}

.profile-info h2 {
    font-size: 1.3rem;
    color: white;
    opacity: 0.85;
    font-weight: 400;
    margin-bottom: 0.3rem;
    margin-top: -0.2rem;
    margin-left: 1rem;
}

.profile-info h2:after {
    display: none;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: -0.1rem;
}

.contact-info i {
    color: var(--accent-green);
    margin-right: 0.3rem;
}

.separator {
    margin: 0 0.4rem;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.3rem;
}

.primary-button {
    background-color: var(--accent-green);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.primary-button:hover {
    background-color: var(--accent-green-light);
    transform: translateY(-2px);
}

.primary-button.active {
    background-color: var(--accent-green-light);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(1px);
}

.secondary-button {
    background-color: white;
    color: #333;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: #eeeeee;
    transform: translateY(-2px);
}

.secondary-button.active {
    background-color: #e5e5e5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}


/* === MAIN CONTENT === */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

/* === ABOUT SECTION === */
.about-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.about-section h2 {
    color: #333;
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* === EXPERIENCE SECTION === */
.experience-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.experience-section>h2 {
    margin-bottom: 1.5rem;
}

.experience-card {
    border-left: 3px solid var(--accent-blue);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 0 8px 8px 0;
    background-color: rgba(245, 247, 250, 0.5);
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
}

.experience-header {
    margin-bottom: 1rem;
}

.company {
    display: flex;
    align-items: center;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.date-range {
    color: var(--accent-green);
    font-weight: 500;
    margin-left: 1rem;
}

.experience-card h3 {
    color: #333;
    margin-bottom: 0.3rem;
}

.experience-card ul {
    list-style-type: none;
    padding-left: 0;
}

.experience-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.experience-card li:before {
    content: '•';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    top: 0;
}

.experience-card li ul {
    margin: 0.5rem 0;
}

/* === EDUCATION & SKILLS SECTION === */
.education-skills-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.education,
.skills {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.education-item p {
    color: #777;
}

.skills-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.skills-list li:before {
    content: '•';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.skills-list span {
    font-weight: 500;
    color: #333;
}

/* === FOOTER === */
footer {
    background-color: var(--primary-dark);
    padding: 2rem 5%;
    color: var(--text-light);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
}

.footer-contact i {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animations slightly */
.experience-card:nth-child(2) {
    transition-delay: 0.1s;
}

.experience-card:nth-child(3) {
    transition-delay: 0.2s;
}

.experience-card:nth-child(4) {
    transition-delay: 0.3s;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}