/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean, modern typography */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #44403C; /* Deep brown text */
    background-color: #FEFDF8; /* Cream background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header and Navigation */
header {
    background-color: #FFFFFF; /* Clean white */
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Subtle warm shadow */
}

nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem; /* Increased gap for more whitespace */
}

.nav-link {
    color: #F97316; /* Warm orange accent */
    text-decoration: none;
    font-weight: 600; /* Slightly bolder */
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F97316;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 3rem 2rem; /* More padding for whitespace */
    max-width: 1000px; /* Slightly wider content area */
    margin: 2.5rem auto; /* More margin */
    background-color: #FFFFFF; /* Clean white */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Subtle warm shadow */
    border-radius: 12px; /* Softer corners */
}

/* About Page Specifics */
.about-page .hero {
    text-align: center;
    padding: 2rem 0;
}

.about-page h1 {
    color: #44403C; /* Deep brown */
    margin-bottom: 0.75rem;
    font-size: 2.8rem; /* Larger heading */
    font-weight: 700;
}

.about-page .tagline {
    font-size: 1.4rem; /* Larger tagline */
    color: #F97316; /* Warm orange accent */
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-page p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto;
    color: #555; /* Slightly lighter brown for body text */
}

/* Projects Page Specifics */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger cards */
    gap: 2.5rem; /* More gap */
    padding-top: 1.5rem;
}

.projects-grid h2 {
    grid-column: 1 / -1;
    text-align: center;
    color: #F97316; /* Warm orange accent */
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.project-card {
    background-color: #FFFFFF; /* Clean white */
    border: none; /* No explicit border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Subtle warm shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px); /* Lift cards slightly */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.project-card img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: contain; /* Ensure full image is visible */
    background-color: #FDFBF6; /* Light cream background for whitespace */
    display: block;
    border-bottom: 3px solid #F97316; /* Orange line under image */
}

.project-card h3 {
    color: #44403C; /* Deep brown */
    padding: 1.2rem 1.5rem 0.5rem;
    margin-bottom: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.project-card p {
    padding: 0 1.5rem 1.2rem;
    flex-grow: 1;
    color: #555;
    font-size: 1rem;
}

.project-links {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-start; /* Align links to start */
    gap: 1.5rem;
    background-color: #FDFBF6; /* Very light cream for link background */
}

.project-links a {
    color: #F97316; /* Warm orange accent */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #E06000; /* Darker orange on hover */
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #44403C; /* Deep brown footer */
    color: #FEFDF8; /* Cream text */
    margin-top: auto;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    main {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .about-page h1 {
        font-size: 2.2rem;
    }

    .about-page .tagline {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 180px;
    }
}

/* Profile Image Styling */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid #F97316; /* Warm orange border */
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); /* Subtle warm glow */
}
