/* ───────────────────────────────────────────────────────────────────────────── */
/* VARIABLES                                                                  */
/* ───────────────────────────────────────────────────────────────────────────── */

:root {
    /* Colors - Deep dark theme with copper/gold accent */
    --bg-base: #020408;
    --bg-surface: #0a0d12;
    --bg-card: #0f1218;
    --bg-card-hover: #14181f;
    --border: #1e293b;
    --border-light: #334155;
    --border-accent: rgba(200, 155, 60, 0.3);

    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-accent: #c89b3c;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Layout */
    --nav-height: 65px;
    --sidebar-width: 320px;
    --max-width: 1200px;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* RESET                                                                      */
/* ───────────────────────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul {
    list-style: none;
}

.text-muted {
    color: var(--text-muted);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* NAVIGATION                                                                 */
/* ───────────────────────────────────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(2, 4, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav > div {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-accent);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ───────────────────────────────────────────────────────────────────────────── */
/* LAYOUT                                                                     */
/* ───────────────────────────────────────────────────────────────────────────── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xxl);
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* SIDEBAR                                                                    */
/* ───────────────────────────────────────────────────────────────────────────── */

.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tech List */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border);
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.tech-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* Education */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.edu-degree {
    font-size: 0.9375rem;
    font-weight: 600;
}

.edu-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Connect */
.connect-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.connect-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.connect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-accent);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* MAIN CONTENT                                                               */
/* ───────────────────────────────────────────────────────────────────────────── */

.main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--text-accent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    background: rgba(200, 155, 60, 0.05);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--text-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-title-accent {
    font-weight: 100;
    font-style: italic;
    color: var(--text-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-subtitle em {
    color: var(--text);
    font-style: normal;
}

.hero-subtitle strong {
    color: var(--text-accent);
    font-weight: 600;
}

.hero-metrics {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.hero-ctas {
    display: flex;
    gap: var(--space-sm);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    opacity: 0.3;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* SECTIONS                                                                   */
/* ───────────────────────────────────────────────────────────────────────────── */

.section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* CARDS                                                                      */
/* ───────────────────────────────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.card-primary {
    border-color: var(--border-accent);
}

.card-highlight {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200, 155, 60, 0.05) 100%);
    border-color: var(--border-accent);
}

.card-marker {
    position: absolute;
    left: -1px;
    top: var(--space-lg);
    width: 3px;
    height: 32px;
    background: var(--text-accent);
    border-radius: 0 2px 2px 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.card-title-sm {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.card-org {
    color: var(--text-accent);
    font-size: 0.875rem;
}

.card-period {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.card-list li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding-left: var(--space-md);
    position: relative;
}

.card-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-accent);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.card-tags span {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Cards in grid */
.cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.card-span-2 {
    grid-column: span 2;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* PUBLICATIONS                                                               */
/* ───────────────────────────────────────────────────────────────────────────── */

.pub-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pub-item {
    display: flex;
    gap: var(--space-md);
}

.pub-year {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pub-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.pub-title {
    font-size: 1rem;
    font-weight: 600;
}

.pub-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* SPEAKING                                                                   */
/* ───────────────────────────────────────────────────────────────────────────── */

.speaking-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.speaking-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.speaking-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.speaking-conf {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text);
    font-weight: 600;
}

.speaking-topic {
    font-size: 0.75rem;
    color: var(--text-accent);
    text-align: right;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* ABOUT TEXT                                                                 */
/* ───────────────────────────────────────────────────────────────────────────── */

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text-accent);
    font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* VIDEO                                                                      */
/* ───────────────────────────────────────────────────────────────────────────── */

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* CV DOWNLOADS                                                               */
/* ───────────────────────────────────────────────────────────────────────────── */

.cv-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cv-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cv-link:hover {
    border-color: var(--text-accent);
    background: var(--bg-card-hover);
}

.cv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--text-accent);
    color: var(--bg-base);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cv-link > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.cv-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* INSTRUCTION STATS                                                          */
/* ───────────────────────────────────────────────────────────────────────────── */

.instruction-stats {
    text-align: center;
    padding: var(--space-md) 0;
}

.instruction-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-accent);
    line-height: 1;
}

.instruction-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* COURSES                                                                    */
/* ───────────────────────────────────────────────────────────────────────────── */

.courses-single {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.courses-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
    background: var(--text-accent);
    color: var(--bg-base);
    border-radius: 4px;
    margin-bottom: var(--space-md);
}

.courses-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.courses-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.courses-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.courses-stats span {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* BUTTONS                                                                    */
/* ───────────────────────────────────────────────────────────────────────────── */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--text-accent);
    color: var(--bg-base);
    border: none;
}

.btn-primary:hover {
    background: var(--text);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-accent);
    color: var(--text-accent);
}

.btn-large {
    font-size: 1rem;
    padding: 1rem 2rem;
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* CONTACT                                                                    */
/* ───────────────────────────────────────────────────────────────────────────── */

.contact-card {
    text-align: center;
    padding: var(--space-xl);
}

.contact-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

/* ───────────────────────────────────────────────────────────────────────────── */
/* FOOTER                                                                     */
/* ───────────────────────────────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-lg);
    text-align: center;
}

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

/* ───────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                                 */
/* ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-height) + var(--space-lg));
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }

    .hero-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

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

    .card-span-2 {
        grid-column: span 1;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-metrics {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

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