/* ============================================================
   Amit Roth — Academic Personal Page
   ============================================================ */

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

:root {
    --bg:           #ffffff;
    --bg-alt:       #f7f7f5;
    --accent:       #1a56db;
    --accent-light: #eaf0fd;
    --text:         #111111;
    --text-muted:   #6b7280;
    --border:       #e5e5e0;
    --radius:       8px;
    --max-width:    760px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HERO — full-viewport first page
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    padding: 0 24px;
}

.hero-parallax-bg {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(ellipse at 18% 55%, rgba(26, 86, 219, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 18%, rgba(26, 86, 219, 0.045) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(26, 86, 219, 0.03) 0%, transparent 45%);
    will-change: transform;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    /* push content slightly above center */
    margin-top: -60px;
}

/* ---- Profile block: photo left, text right ---- */

.profile-block {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-name {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg);
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease;
}

.social-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.15);
}

/* ---- Divider ---- */

.hero-divider {
    width: 48px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

/* ---- About text inside hero ---- */

.about-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}

.about-text a {
    color: var(--accent);
}

/* ---- Scroll hint ---- */

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    animation: bounce 2.2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   FADE-IN
   ============================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */

.publications {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 72px 0;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: var(--text);
}

.pub-list {
    display: flex;
    flex-direction: column;
}

/* Each publication: thin full-width row */
.pub-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.pub-row:first-child { padding-top: 0; }
.pub-row:last-child  { border-bottom: none; padding-bottom: 0; }

.pub-meta {
    padding-top: 2px;
}

.pub-year {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.pub-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pub-title {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.pub-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pub-title a:hover { color: var(--accent); }

.pub-venue {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pub-authors {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pub-equal {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pub-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 560px) {
    .profile-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pub-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .pub-meta { display: none; }

    .pub-venue::before {
        content: attr(data-year) ' · ';
    }
}
