/* Base Styles */
:root {
    --primary-bg: #f5f2ea;
    --secondary-bg: #0a3b32;
    --accent-color: #b9664e;
    --text-color: #333;
    --light-text: #f5f2ea;
    --border-color: #e0dad0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

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

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.site-title {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.site-subtitle {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Navigation Styles */
nav {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

nav a {
    margin-left: 30px;
    color: var(--text-color);
    font-size: 16px;
}

nav a.active {
    color: var(--accent-color);
}

.hero {
    background-color: var(--secondary-bg);
    color: var(--light-text);
    padding: 50px 0; /* Remove horizontal padding */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the content */
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1010px;
    width: 100%;
}

.hero-content, .hero-image {
    padding: 0 20px; /* Add padding inside hero elements */
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 5px;
}

.hero h1 {
    color: var(--accent-color);
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 15px;
    font-size: 18px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--light-text);
    border-bottom: 1px solid var(--light-text);
}

/* Main Content Styles */
.main-content {
    padding: 50px 20px;
    max-width: 1010px;
    margin: 0 auto;
    flex: 1 0 auto; /* This makes the content grow to push footer down */
}

.section-title {
    color: var(--secondary-bg);
    font-size: 36px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.accent-title {
    color: var(--accent-color);
}

/* Project Section */
.project {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.project:last-child {
    border-bottom: none;
}

.project-image {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.project-content {
    flex: 2;
    min-width: 300px;
}

.project-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.project-title a {
    color: var(--secondary-bg);
    text-decoration: underline;
}

/* About Page Sections */
.bio-section, .education-section, .work-section {
    margin-bottom: 40px;
}

.section-heading {
    color: var(--secondary-bg);
    font-size: 24px;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    margin: 40px 0;
    text-align: right;
}

.social-links a {
    margin-left: 15px;
    font-size: 20px;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-bg);
    color: var(--light-text);
    padding: 20px;
    text-align: center;
    flex-shrink: 0; /* Prevents the footer from shrinking */
    margin-top: auto; /* Pushes footer to bottom when content is short */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .project {
        flex-direction: column;
    }
    
    .project-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    nav {
        justify-content: space-between;
    }
    
    nav a {
        margin-left: 15px;
    }
    
    .social-links {
        text-align: center;
    }
}