/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern navy/indigo palette */
    --primary-color: #4f46e5;   /* indigo-600 */
    --primary-dark: #3730a3;    /* indigo-800 */
    --secondary-color: #0ea5e9; /* sky-500 */

    --text-dark: #0b1220;       /* deep navy */
    --text-light: #475569;      /* slate-600 */
    --bg-light: #f6f8fc;        /* cool off-white */
    --bg-white: #ffffff;
    --border-color: #e5eaf3;    /* cool border */

    /* Extra helpers (used in hero/buttons/tags) */
    --surface-glass: rgba(255, 255, 255, 0.10);
    --surface-glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 2000;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    left: 12px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    flex: 0 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; /* prevents underline clipping on some browsers */
    flex: 1 1 auto;
    min-width: 0; /* allow flex item to shrink so overflow works */
    justify-content: flex-start;
    padding-left: 0.5rem; /* prevent first item from looking clipped */
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.86rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

/* Hide horizontal scrollbar but keep scroll */
.nav-menu::-webkit-scrollbar {
    height: 0;
}
.nav-menu {
    scrollbar-width: none;
}

/* Slightly tighter nav on mid-width screens to avoid clipping */
@media (max-width: 1100px) {
    .nav-container {
        padding: 0.85rem 1rem;
    }

    .nav-menu {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.82rem;
    }
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.25rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 15% 10%, rgba(14, 165, 233, 0.35), transparent 55%),
                radial-gradient(900px 500px at 85% 20%, rgba(79, 70, 229, 0.55), transparent 60%),
                linear-gradient(135deg, #0b1220 0%, #111b34 55%, #1b1f4a 100%);
    color: white;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-split {
    max-width: 1100px;
    width: 100%;
    align-items: stretch;
}

.hero-left,
.hero-right {
    width: 100%;
}

.hero-right {
    margin-top: 1.5rem;
    text-align: left;
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.25rem;
    backdrop-filter: blur(6px);
}

.hero-about-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
}

.hero-about {
    font-size: 1.0rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: -0.25rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.18);
}

.hero-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-button.primary {
    background: rgba(79, 70, 229, 0.78);
    border-color: rgba(79, 70, 229, 0.95);
}

.hero-button.primary:hover {
    background: rgba(79, 70, 229, 0.92);
}

.hero-photo {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    margin: 0 auto 1.5rem auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.award-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.award-year {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.award-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.award-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.publication-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

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

.publication-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.publication-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.publication-badge.journal {
    background: #dbeafe;
    color: #1e40af;
}

.publication-badge.conference {
    background: #fef3c7;
    color: #92400e;
}

.publication-year {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.publication-venue {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.publication-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-box .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.book-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: #f0f9ff;
    color: #1e40af;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.book-publisher {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.book-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-full-title {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Service Grid */
.service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Force 4-up layout on wide screens */
@media (min-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.service-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.service-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-note {
    margin: 0 0 1rem 0;
    text-align: left;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-sublist {
    margin-top: 0.5rem;
}

/* Speaking Grid */
.speaking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.speaking-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.speaking-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.speaking-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.speaking-role {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.speaking-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Experience */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Balanced 2x2 layout on desktop */
@media (min-width: 900px) {
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.experience-card {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.experience-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.experience-dates {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

.experience-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: var(--text-dark);
    line-height: 1.35;
}

.experience-bullets {
    margin: 0 0 1rem 1rem;
    color: var(--text-light);
}

.experience-bullets li {
    margin-bottom: 0.5rem;
}

.experience-tags {
    margin-top: 0.25rem;
}

/* Projects / Case Studies */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.project-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.project-problem,
.project-approach,
.project-outcome {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0.6rem;
}

.project-tags {
    margin-top: 0.75rem;
}

/* Open Source Repos */
.repo-section {
    margin-top: 2.5rem;
}

.repo-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.repo-card {
    display: block;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

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

.repo-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.repo-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.repo-cta {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.repo-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.repo-tags {
    margin-top: 0.25rem;
}

/* Videos Page */
.video-page .section-title {
    margin-top: 1rem;
}

.video-section {
    margin-top: 3rem;
}

.video-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: left;
}

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

.video-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.video-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.video-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.video-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    color: rgba(11, 18, 32, 0.92);
    white-space: nowrap;
}

.video-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0 0.75rem 0;
    line-height: 1.35;
}

.video-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.video-links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.video-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.video-link:hover {
    text-decoration: underline;
}

.video-footer-note {
    margin-top: 2.5rem;
}

.video-quotes {
    margin-top: 1rem;
}

.video-quote {
    margin: 0.75rem 0 0 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid rgba(79, 70, 229, 0.55);
    background: rgba(79, 70, 229, 0.06);
    border-radius: 10px;
    color: var(--text-dark);
    line-height: 1.6;
}

.video-quote + .video-quote {
    margin-top: 0.6rem;
}

.work-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.work-org {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.work-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.work-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
}

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

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(79, 70, 229, 0.10);
    color: rgba(11, 18, 32, 0.92);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.contact-sep {
    color: var(--text-light);
    opacity: 0.8;
}

.contact-link {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Podcast Container */
.podcast-container {
    max-width: 900px;
    margin: 0 auto;
}

.podcast-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.podcast-header {
    margin-bottom: 1rem;
}

.podcast-card .speaking-title {
    margin-bottom: 0.75rem;
}

.podcast-card .speaking-description {
    margin-bottom: 0.5rem;
}

.podcast-card .video-container {
    margin: 2rem 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-right {
        margin-top: 1.25rem;
        padding: 1rem;
        text-align: left;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .awards-grid,
    .publications-grid,
    .books-grid,
    .speaking-grid,
    .work-grid,
    .repo-grid,
    .experience-grid,
    .project-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .publication-stats,
    .service-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-container {
        margin: 1rem 0;
    }

    .podcast-card {
        padding: 1.5rem;
    }
}

@media (min-width: 900px) {
    .hero {
        text-align: left;
    }

    .hero-split {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.25rem;
        align-items: center;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-photo {
        margin: 0 0 1.5rem 0;
    }

    .hero-stats {
        grid-column: 1 / -1;
        margin-top: 1.5rem;
    }

    .scroll-indicator {
        grid-column: 1 / -1;
        margin-top: 1.25rem;
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .publication-stats,
    .service-stats {
        grid-template-columns: 1fr;
    }
}
