
:root {
    --primary-color: #254d32;
    --secondary-color: #95A472;
    --background-color: #D9F3B1;
    --text-color: #333;
    --accent-color: #F69B42;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.3px;
}

p, .nav-links a, .skill, .project-info p {
    font-weight: 400;
}

.nav-links a, .skill {
    font-weight: 500;
}

.project-info h3 {
    font-weight: 700;
}

nav {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 128px;
    height: 64px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-wrapper.fade-in {
    opacity: 1;
}

.content-wrapper.fade-out {
    opacity: 0;
}

.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.image-container {
    margin-top:1.5rem;
    flex: 0 0 auto; /* Don't allow this to grow or shrink */
    width: 300px; /* Set a fixed width */
    max-width: 100%; /* Ensure it doesn't overflow on small screens */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-container {
    flex: 1;
    min-width: 0; /* Allow text to wrap within its container */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .image-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }
}

/* Ensure other content sections don't interfere */
#skills, #projects {
    clear: both;
    margin-top: 2rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill:hover {
    background-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    aspect-ratio: 3 / 4;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-card:hover .project-info h3,
.project-card:hover .project-info p {
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    background: white;
    color: var(--text-color);
}

.project-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.project-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 5%;
    margin-top: auto;
}