/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Bio Section */
.bio {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

/* Links Section */
.links {
    margin-bottom: 3rem;
}

.links h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Projects Section */
.projects h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
} 

.social-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #2d3748;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.5px;
}

.social-link:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
} 

/* Add these styles for the card image */
.card-image {
    width: auto;
    height: 120px;
    max-width: 250px;
    border-radius: 8px;
    margin: 1rem auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: contain;
}

.card a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    padding-top: 1rem;
}

.card a:hover {
    text-decoration: underline;
} 

/* Add a specific class for portrait images */
.card-image.portrait {
    height: 160px;
    width: auto;
    max-width: 250px;
} 

.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tagline {
    font-style: italic;
    color: #4a5568;
    font-size: 1.2rem;
} 

.bio p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.bio p:last-child {
    margin-bottom: 0;
}

/* Make the Part headers stand out more */
.bio b {
    color: #2d3748;
    font-size: 1.1rem;
} 

/* Add more space between major sections */
.bio, .links, .projects {
    margin-bottom: 3rem;
} 

/* Add hover effect to images */
.card-image {
    transition: transform 0.2s ease-in-out;
}

.card-image:hover {
    transform: scale(1.05);
} 

/* Add specific styling for wide images like the books logo */
.card-image.wide-image {
    height: 80px;  /* Shorter height for wide images */
    max-width: 300px;  /* Allow slightly wider width for the books logo */
} 