/* Modern CSS - No JavaScript Required */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #3182ce;
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text);
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 1rem + 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
h4 { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); }

p { margin-bottom: 1rem; }

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

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

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li { margin-bottom: 0.5rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* Header & Navigation */
.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 60px;
}

.nav-toggle {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Mobile Navigation - CSS Only */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform var(--transition);
    }

    .nav-toggle span::before,
    .nav-toggle span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle span::before { transform: translateY(-7px); }
    .nav-toggle span::after { transform: translateY(7px); }

    .nav-checkbox {
        display: none;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-checkbox:checked ~ .nav-list {
        display: flex;
    }

    .nav-checkbox:checked ~ .nav-toggle span {
        background: transparent;
    }

    .nav-checkbox:checked ~ .nav-toggle span::before {
        transform: rotate(45deg);
    }

    .nav-checkbox:checked ~ .nav-toggle span::after {
        transform: rotate(-45deg);
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
}

.hero-image {
    width: clamp(120px, 25vw, 160px);
    height: clamp(120px, 25vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    flex-shrink: 0;
}

.hero-text {
    flex: 1;
}

.hero-label {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-bio {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    opacity: 0.95;
    line-height: 1.8;
}

.hero-bio a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-bio a:hover {
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 3rem) 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    margin: 0;
}

/* Sections */
.section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.section-dark {
    background: transparent;
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-light {
    background: var(--bg);
}

.section-title {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

/* Dark section cards */
.section-dark .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.section-dark .card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: none;
}

.section-dark .talk-content h3 {
    color: #fff;
}

.section-dark .talk-content p {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark .talk-meta {
    color: rgba(255, 255, 255, 0.7);
}

.section-dark .talk-links a {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark .section-title {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Talk Cards */
.talk-card {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .talk-card {
        grid-template-columns: 400px 1fr;
    }
}

.talk-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.talk-content {
    padding: 1.5rem;
}

.talk-content h3 {
    margin-bottom: 0.75rem;
}

.talk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.talk-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* Resume */
.resume-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.resume-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .resume-header {
        flex-direction: row;
        text-align: left;
        padding: 2.5rem;
    }
}

.resume-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    flex-shrink: 0;
}

.resume-header h1 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
}

.resume-title {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.resume-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.resume-contact li {
    margin-bottom: 0.25rem;
}

.resume-contact a {
    color: #fff;
}

.resume-body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section:last-child {
    margin-bottom: 0;
}

.resume-section-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-4px);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.timeline-title {
    font-size: 1.1rem;
    margin: 0;
}

.timeline-company {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.timeline-content ul {
    margin: 0;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 3rem) 0;
    text-align: center;
}

.contact-section h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.contact-section p {
    opacity: 0.95;
    margin: 0;
}

.contact-section a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Legal Pages */
.legal-content {
    background: var(--bg-white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Print Styles */
@media print {
    .header, .contact-section {
        display: none;
    }

    body {
        font-size: 12pt;
        background: #fff;
    }

    .resume-wrapper {
        box-shadow: none;
    }
}
