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

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: #2c1810;
    background-color: #fcfcf7;
    min-height: 100vh;
    font-size: 0.8rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    gap: 4rem;
}

.sidebar {
    width: 150px;
    flex-shrink: 0;
    padding-top: 2rem;
    position: fixed;
    top: 3rem;
    left: 10px;
}

.sidebar a {
    display: block;
    color: #8b3538;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #a64247;
    text-decoration: underline;
}

.sidebar a.active {
    text-decoration: underline;
    color: #a64247;
}

.main-content {
    flex: 1;
    text-align: center;
    margin-left: 150px;
    position: relative;
    padding-bottom: 4rem;
}

.main-content::after {
    content: "© 2025 Vamsi Varanasi. All rights reserved.";
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 0.9rem;
    color: #999999;
    width: 100%;
    text-align: left;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    background-color: #e8e0d6;
    border: 3px solid #8b3538;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b3538;
    font-style: italic;
}

/* Typography */
h1 {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    color: #8b3538;
    font-weight: 400;
}

h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #8b3538;
    font-weight: 400;
}

h3 {
    font-size: 0.9rem;
    margin: 0;
    color: #8b3538;
    font-weight: 600;
}

h4 {
    font-size: 0.8rem;
    margin: 0 0 1rem 0;
    color: #8b3538;
    font-weight: 400;
}

p {
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
    text-align: left;
}

.intro {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: #4a2c2a;
}

.section {
    padding: 1rem 0 0.5rem 0;
    text-align: left;
    border-top: 1px solid #8b3538;
}

.vita {
    border-top: 1px solid #8b3538;
    padding: 1rem 0 2rem 0;
}

.vita-item {
    margin-bottom: 1rem;
}

.vita-item[style*="margin-top"] {
    margin-top: 0 !important;
}

.vita-item strong {
    color: #8b3538;
}

a {
    color: #8b3538;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #a64247;
}

.contact-links {
    margin: 0;
    text-align: left;
}

.contact-links a {
    margin: 0 1rem;
}

.contact-links a:first-child {
    margin-left: 0;
}

.copyright {
    margin-top: 1rem !important;
    font-style: normal !important;
    font-size: 0.9rem;
    color: #999999;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding-top: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .sidebar a {
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    h4 {
        font-size: 0.9rem;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

/* Additional styles from business.html */
.company-note {
    font-style: italic;
    color: #4a2c2a;
    margin-bottom: 1rem;
}

/* Additional styles from io.html */
.book-title {
    font-style: italic;
}

.coming-soon {
    color: #6b4423;
    font-style: italic;
}

/* Additional styles from science.html */
li {
    margin-bottom: 0;
}

/* Additional styles from index.html */
.vita-item strong {
    color: #8b3538;
}

.bookshelf-list {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.bookshelf-list li {
    margin-bottom: 0;
}
