/* GLOBAL STYLES */
:root {
    --primary-color: #018c0b; /* A nice dark green */
    --secondary-color: #2c3e50; /* Darker blue/grey for contrast */
    --text-color: #333;
    --background-color: #f4f4f4;
    --white: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ------------------------------------------------------------------- */
/* HEADER / HERO SECTION - MERGED STYLES FOR IMAGE AND FLEXBOX LAYOUT  */
/* ------------------------------------------------------------------- */

.hero {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 20px;
    /* OVERRIDE: Remove text-align: center; from hero so we can control alignment with Flexbox */
    /* text-align: center; */ 
    
    /* NEW: Flexbox setup for the entire banner content (for centering blocks) */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

/* NEW: Container for the image and text (side-by-side) */
.header-content-wrapper {
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin-bottom: 25px; 
    max-width: 90%; 
}

/* NEW: Styles for the circular image */
.profile-image {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--white); /* Using CSS variable for white frame */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* NEW: Styles for the text container next to the image */
.header-text-container {
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.2em;
    margin-bottom: 20px; /* Will be overridden by button wrapper margin-top, but kept for general use */
    opacity: 0.8;
}

/* NEW: Container for the buttons (side-by-side) */
.header-buttons {
    display: flex; /* Makes the buttons line up in a row */
    gap: 10px; /* Adds 10px spacing between each button */
    /* margin-top: 25px; - Removed, using margin on social-links instead for cleanliness */
    justify-content: center;
    align-items: center;
}

/* OLD: Renamed social-links to target the new wrapper if you update your HTML */
/* If you keep the class as social-links in your HTML for buttons, this works */
.social-links {
    margin-top: 20px; /* Add vertical space below subtitle/text */
    display: flex; /* Ensure the buttons themselves are flex to line up */
    gap: 10px; /* Space between links */
}

.social-links a {
    color: var(--primary-color);
    background: var(--white);
    text-decoration: none;
    padding: 8px 15px;
    /* margin: 0 5px; - Removed, using gap on parent container */
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ------------------------------------------------------------------- */
/* SECTION STYLES (NO CHANGES)                                         */
/* ------------------------------------------------------------------- */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}

.section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* EXPERIENCE & EDUCATION ENTRIES */
.job-entry, .education-entry {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.job-entry h3, .education-entry h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.date {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

/* PORTFOLIO GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-skills {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    margin-top: 10px;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background 0.3s;
}

.button.secondary {
    background: var(--secondary-color);
}

.button:hover {
    background: #2980b9;
}

.button.secondary:hover {
    background: #34495e;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.9em;
}

/* RESPONSIVENESS */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero .subtitle {
        font-size: 1em;
    }
    /* NEW: Stack image and text vertically on small screens */
    .header-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .header-text-container {
        text-align: center;
    }
}

