/* style.css for rohit-patel.com */
:root {
    --font-primary: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 4rem);
    color: #333;
    background-color: white;
    font-size: clamp(1rem, 1rem + 0.2vw, 1.125rem);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    display: grid;
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
    margin-bottom: clamp(1rem, 3vw, 3rem);
}

.profile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.social-links a:hover {
    text-decoration: underline;
}

.section {
    margin: clamp(1rem, 2vw, 2.5rem) 0;
}

h1 {
    color: #1e1e1e;
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    color: #1e1e1e;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0 0 1rem 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

li {
    margin-bottom: 0rem;
    padding-left: 1.5rem;
    position: relative;
}

li::before {
    content: "—";
    color: #2563eb;
    position: absolute;
    left: 0;
}

.publication {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 768px) {
    .header {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img {
        width: min(280px, 70%);
        margin: 0 auto;
    }

    .header-content {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    li {
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .profile-img {
        width: min(240px, 80%);
    }

    li {
        margin-bottom: 1.25rem;
    }
}

@media print {
    body {
        padding: 1rem;
    }

    .social-links a {
        text-decoration: none;
        color: #333;
    }
}

/* Add this media query to make the image slightly larger on mobile */
@media (max-width: 640px) {
    .profile-img {
        width: min(300px, 80%);
    }
}

/* Add this media query to make the image slightly smaller on web */
@media (min-width: 641px) {
    .profile-img {
        width: min(250px, 70%);
    }
}

.subtle-link {
    text-decoration: underline;
    color: inherit;
}

.subtle-link:hover {
    color: inherit;
}

.tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    .tab-buttons {
        gap: 0.5rem;
    }
}

.tab-button.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
