/* RESET & BASE -------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #05070b;
    --bg-soft: #080d13;
    --card: rgba(255, 255, 255, 0.045);
    --card-strong: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(103, 232, 249, 0.55);
    --text: #f5f7fa;
    --text-soft: #d8e2ea;
    --text-muted: #b8c7d1;
    --text-dim: #9baab6;
    --accent: #67e8f9;
    --accent-soft: rgba(103, 232, 249, 0.12);
    --accent-strong: rgba(103, 232, 249, 0.9);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 26px;
    --max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
video,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.22s ease;
}

a:hover {
    color: #ffffff;
}

/* TYPOGRAPHY ---------------------------------------------------- */

h1 {
    font-size: 2.7rem;
    line-height: 1.05;
    letter-spacing: -0.6px;
    color: var(--text);
}

h2 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text);
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

p {
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-subtitle {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 620px;
}

.hero-highlight-box {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-width: 560px;
}

.hero-highlight-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.hero-highlight-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-soft);
}

.centered-heading {
    text-align: center;
    margin-bottom: 26px;
}

/* LAYOUT -------------------------------------------------------- */

.homepage-shell {
    max-width: var(--max-width);
    width: min(100%, var(--max-width));
    margin: 20px auto 40px;
    padding: 0 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 7, 11, 0.95);
    border-bottom: 1px solid var(--border-soft);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

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

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--text-soft);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent);
}

.hero-card,
.content-card {
    margin-top: 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-card {
    padding: 28px 28px 30px;
    margin-top: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.role-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.role-row span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(103, 232, 249, 0.35);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.18), rgba(103, 232, 249, 0.08));
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-copy h1 {
    margin-bottom: 6px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.primary-btn,
.secondary-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid var(--border-accent);
    background: rgba(255, 255, 255, 0.04);
    color: #d9fbff;
}

.primary-btn {
    background: rgba(103, 232, 249, 0.16);
}

.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover {
    background: rgba(103, 232, 249, 0.22);
    border-color: var(--accent-strong);
    color: #ffffff;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 12px;
    text-align: center;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.hero-media {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow-md);
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
}

.panel-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero-video {
    width: 100%;
    min-height: 340px;
    max-height: 460px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #000;
}

.panel-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.content-card {
    margin-top: 20px;
    padding: 22px 24px 24px;
    background: rgba(255, 255, 255, 0.045);
}

/* ABOUT --------------------------------------------------------- */

.about-preview-card {
    margin-top: 26px;
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.about-preview-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.about-photo-stack {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.about-name {
    margin: 24px 0 6px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
    color: var(--text);
}

.about-credentials {
    margin: 0;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-muted);
}

.about-badge {
    position: absolute;
    right: -12px;
    bottom: -46px;
    width: 144px;
    height: 144px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    transform: rotate(8deg);
    animation: badge-fly-in 1.2s ease-out forwards;
}

@keyframes badge-fly-in {
    0% {
        opacity: 0;
        transform: translate(70px, -70px) scale(0.65) rotate(24deg);
    }
    60% {
        opacity: 1;
        transform: translate(-6px, 8px) scale(1.02) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(8deg);
    }
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }
    50% {
        transform: translateY(-6px) rotate(-6deg);
    }
}

.about-preview-content h2 {
    margin-bottom: 8px;
}

.about-preview-content p {
    font-size: 0.98rem;
    line-height: 1.7;
}

.about-preview-action {
    display: flex;
    justify-content: flex-end;
    align-self: start;
}

/* RESEARCH ------------------------------------------------------ */

.research-card {
    margin-top: 26px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.research-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    padding: 18px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.research-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.research-item h3 {
    margin-bottom: 8px;
}

.research-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.research-item--split {
    display: grid;
    grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.research-item--split h3 {
    margin-bottom: 0;
    line-height: 1.25;
}

.research-item--split p {
    margin: 0;
}
/* SPLIT SECTIONS ------------------------------------------------ */

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-top: 0;
}

.feature-panel h2,
.publications-panel h2,
.recognition-panel h2,
.speaking-panel h2,
.full-about-card h2 {
    margin-bottom: 16px;
}

.feature-book-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.book-cover-box {
    border-radius: var(--radius-md);
    border: 1px solid rgba(103, 232, 249, 0.28);
    background:
        radial-gradient(circle at 30% 20%, rgba(103, 232, 249, 0.12), transparent 40%),
        rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 210px;
}

.book-cover-image {
    width: 100%;
    max-width: 140px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-book-content h3 {
    margin-bottom: 6px;
}

.book-subtitle {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}

/* GALLERY ------------------------------------------------------ */

.gallery-section {
    padding: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.gallery-item {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    padding: 12px;
}

.gallery-item-wide {
    grid-column: auto;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #0b1118;
    border-radius: 4px;
    transition: transform 0.35s ease;
}

.gallery-item-wide img {
    height: 320px;
}

.gallery-pair {
    display: flex;
    flex-flow: row nowrap;
    gap: 16px;
    align-items: stretch;
}

.gallery-pair img {
    flex: 1 1 0;
    width: 0;
    height: 320px;
}

.gallery-trio {
    display: flex;
    flex-flow: row nowrap;
    gap: 16px;
    align-items: stretch;
}

.gallery-trio img {
    flex: 1 1 0;
    width: 0;
    height: 320px;
}

.gallery-pair img,
.gallery-trio img {
    min-width: 0;
    object-fit: contain;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item figcaption {
    padding: 12px 2px 2px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* PUBLICATIONS -------------------------------------------------- */

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.publication-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    padding: 10px 12px;
}

.pub-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.pub-content h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.pub-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mini-link {
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
}

.mini-link:hover {
    border-color: var(--border-accent);
    background: var(--accent-soft);
    color: #ffffff;
}

/* LIST PANELS --------------------------------------------------- */

.icon-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.icon-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.65;
}

.icon-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* FULL ABOUT ---------------------------------------------------- */

.full-about-card {
    margin-top: 26px;
}

.full-about-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1.8fr);
    gap: 26px;
    align-items: flex-start;
}

.photo-container {
    position: relative;
    width: 260px;
    height: 260px;
}

.profile-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.94);
    animation: headshotFadeIn 0.9s ease-out forwards;
}

.badge {
    position: absolute;
    width: 96px;
    height: 96px;
    right: 0;
    bottom: 10px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: badgeFlyIn 1.8s cubic-bezier(0.2, 0.9, 0.25, 1.2) 0.1s forwards;
}

.about-text p + p {
    margin-top: 16px;
}

/* FOOTER -------------------------------------------------------- */

.footer-profiles-card {
    margin-top: 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.footer-grid h3 {
    margin-bottom: 8px;
    font-size: 0.98rem;
}

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

.profile-links a {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

.profile-links a:hover {
    border-color: var(--border-accent);
    background: var(--accent-soft);
    color: #ffffff;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
}

.footer-list a {
    color: var(--text-soft);
}

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

.footer {
    border-top: 1px solid var(--border-soft);
    padding: 20px 24px 30px;
    text-align: center;
    background: #05070b;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-view-counter {
    margin-top: 10px;
    font-size: 0.9rem;
}

.page-view-counter strong {
    font-weight: 700;
}

/* ANIMATIONS ---------------------------------------------------- */

@keyframes headshotFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes badgeFlyIn {
    0% {
        opacity: 0;
        transform: translate(120vw, -45vh) rotate(28deg) scale(0.65);
    }
    60% {
        opacity: 1;
        transform: translate(-8px, 10px) rotate(-6deg) scale(1.06);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* ACCESSIBILITY ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .profile-photo,
    .badge,
    .about-badge {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* RESPONSIVE ---------------------------------------------------- */

@media (max-width: 960px) {
    .hero-grid,
    .about-preview-grid,
    .full-about-layout,
    .split-section,
    .footer-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-preview-action {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

@media (max-width: 700px) {
    .homepage-shell {
        padding: 0 16px 24px;
    }

    .navbar {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .hero-card,
    .content-card {
        padding: 18px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .feature-book-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wide {
        grid-column: auto;
    }

    .gallery-item img,
    .gallery-item-wide img {
        height: 240px;
    }

    .gallery-pair img,
    .gallery-trio img {
        height: 240px;
    }

    .gallery-pair {
        flex-direction: column;
    }

    .gallery-trio {
        flex-direction: column;
    }

    .publication-row {
        grid-template-columns: 32px 1fr;
    }

    .publication-row .mini-link {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    .photo-container,
    .profile-photo,
    .about-photo-stack {
        width: 220px;
        height: 220px;
    }
}
