body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa; /* Lighter, cleaner background */
    color: #333333; /* Softer text color */
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

/* --- IMAGE PREVIEW (Unchanged but retained for functionality) --- */
.image-preview {
    position: fixed;
    display: none;
    z-index: 9999;
    pointer-events: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Softer shadow */
    padding: 8px;
    transition: opacity 0.15s;
    min-width: 120px;
    min-height: 80px;
    max-width: 240px;
    max-height: 160px;
}
.image-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- LEFT SECTION & HEADER --- */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 0 40px 40px;
    position: relative;
    min-width: 0;
}

header {
    width: 100%;
}

.logo {
    font-weight: 700; /* Bolder for more emphasis */
    font-size: 1.6rem;
    letter-spacing: -0.5px; /* Tighter letter spacing */
    margin-bottom: 32px;
    color: #2c3e50;
}

/* --- NAVIGATION --- */
nav {
    position: absolute;
    top: 32px;
    right: 48px;
    z-index: 10;
    background: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px; /* Increased gap */
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #555; /* Slightly muted link color */
    font-weight: 500; /* Medium weight */
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: #0057ff; /* New accent color */
    font-weight: 600;
    position: relative;
}

.nav-links li a.active::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #0057ff; /* New accent color */
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px; /* Adjusted position */
}

/* --- GREETING & FOOTER --- */
.greeting {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.greeting h1 {
    font-family: 'Courgette', cursive;
    color: #0057ff; /* New accent color */
    font-size: 3rem; /* Slightly larger */
    font-weight: 400;
    margin: 0;
}

#right-content {
    opacity: 1;
    transition: opacity 0.5s;
}

.left-section footer {
    position: absolute;
    left: 0;
    bottom: 24px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-left: 16px;
    background: transparent;
    box-shadow: none;
}

.social-pile {
    background: #ffffff; /* Clean white */
    border-radius: 16px; /* More rounded */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* Softer, modern shadow */
    padding: 10px 16px;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 16px; /* Increased gap */
}

.social-icons a {
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #0057ff;
    transform: translateY(-2px); /* Subtle hover effect */
}

/* --- RIGHT SECTION & CONTENT --- */
.right-section {
    flex: 1.2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 40px 40px 40px 0;
    min-width: 0;
    box-sizing: border-box;
}

.content {
    background: #ffffff; /* Clean white background */
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08); /* Softer, diffused shadow */
    padding: 40px 36px;
    width: 100%;
    max-width: 700px;
    min-width: 350px;
    margin-top: 6rem;
    margin-left: auto;
    margin-right: 0;
    box-sizing: border-box;
}

.works-section {
    display: flex;
    flex-direction: column;
    gap: 28px; /* Slightly reduced gap */
}

.work-item {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    border-bottom: 1px solid #eeeeee; /* Lighter border */
    padding-bottom: 20px;
    transition: background-color 0.3s ease;
}

.work-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.work-item:hover {
    background-color: #f8f9fa; /* Subtle hover background */
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Better alignment */
}

.work-header h2 {
    font-family: 'Courgette', cursive;
    font-size: 1.8rem; /* Slightly larger */
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #2c3e50; /* Dark slate blue for titles */
}

.year {
    font-size: 1rem;
    color: #777; /* Muted color for less emphasis */
    font-weight: 500;
}

.work-description {
    font-size: 1rem;
    color: #555;
    margin: 0 0 0 2px;
    font-weight: 400; /* Regular weight */
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    .right-section, .left-section {
        padding: 24px 0 0 0;
        align-items: center;
        justify-content: center;
    }
    .content {
        max-width: 95vw;
        min-width: 0;
        padding: 24px 18px; /* Adjusted padding */
    }
    .nav-links {
        position: static;
        justify-content: center; /* Center links on mobile */
        padding-top: 16px;
    }
    .greeting {
        padding: 48px 0;
    }
    .left-section footer {
        position: static;
        padding: 24px 0;
    }
}