/* style.css (FULL FILE) */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #222;
    --text-primary: #e8e6e3;
    --text-secondary: #b0b0b0;
    --accent: #ff4081;
    --accent-hover: #ff6699;
    --border: #333;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--gradient);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --------------------------
   Tabs navigation
-------------------------- */
.tabs {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 0 0 auto;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    margin: 0 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 85px;
    text-align: center;
}

.tab-button:hover,
.tab-button:focus {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
    outline: none;
}

.tab-button.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

/* --------------------------
   Tab panels
-------------------------- */
.tab-content {
    display: none;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------
   Typography
-------------------------- */
h1 {
    color: var(--accent);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin: 2rem 0;
}

h2 {
    color: var(--accent);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin: 0 0 2rem;
    text-align: center;
}

/* --------------------------
   Home hero
-------------------------- */
.profile-hero {
    text-align: center;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 64, 129, 0.2) 0%, transparent 50%),
        var(--bg-primary);
    border-radius: 20px;
    margin: 2rem 0;
}

.profile-hero blockquote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.profile-img {
    width: clamp(180px, 28vw, 250px);
    height: clamp(180px, 28vw, 250px);
    border-radius: 50%;
    border: 5px solid var(--accent);
    margin: 0 auto 2.5rem;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(255, 64, 129, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.08);
    box-shadow: 0 30px 60px rgba(255, 64, 129, 0.4);
}

.title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.affiliation {
    text-align: center;
    opacity: 0.9;
}

.bio {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --------------------------
   Publications
-------------------------- */
.publication {
    background: rgba(34, 34, 34, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.publication:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 64, 129, 0.2);
    border-color: rgba(255, 64, 129, 0.4);
}

.publication a {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.publication p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

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

.link-grid a {
    display: block;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 64, 129, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.link-grid a:hover {
    background: rgba(255, 64, 129, 0.2);
    transform: translateY(-2px);
}

/* --------------------------
   Research
-------------------------- */
.research-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.research-list li {
    background: rgba(34, 34, 34, 0.8);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 20px;
    border-left: 5px solid var(--accent);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.research-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --------------------------
   Gallery option A: albums (old)
   If you still keep .album cards, THIS prevents click blocking:
-------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.album {
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.album::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1) 0%, rgba(255, 64, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;

    /* IMPORTANT: overlay must not steal clicks */
    pointer-events: none; /* lets clicks pass through [web:42] */
}

.album:hover::before {
    opacity: 1;
}

.album:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 35px 70px rgba(255, 64, 129, 0.3);
}

.album img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.5s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 2;
}

.album:hover img {
    transform: scale(1.1);
}

.album-title {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* --------------------------
   Gallery option B: image lists (new)
-------------------------- */
.gallery-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(34, 34, 34, 0.6);
    border-radius: 20px;
    border-left: 5px solid var(--accent);
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 1;
}

.gallery-image:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(255, 64, 129, 0.25);
}

.section-link {
    display: block;
    max-width: 320px;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: rgba(255, 64, 129, 0.1);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.section-link:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

/* --------------------------
   Modal (fullscreen image)
-------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(255, 64, 129, 0.3);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal-img.show {
    opacity: 1;
}

.modal-caption {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 1rem 0;
    text-align: center; /* FIXED */
    max-width: 90vw;
}

.modal-nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: rgba(255, 64, 129, 0.2);
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}