/* ===========================
   Google Fonts
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #4a9eff;
    --accent-hover: #3b8ae6;
    --text-primary: #0a0a0a;
    --text-secondary: #6b6b6b;
    --text-muted: #9b9b9b;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --code-bg: #f8f9fa;
    --mono-font: 'JetBrains Mono', 'Courier New', monospace;
    --sans-font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--sans-font);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background-color: var(--accent-color);
    color: white;
}

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

ul {
    list-style: none;
}

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

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.nav-brand a {
    font-family: var(--mono-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    position: relative;
}

.nav-brand a::before {
    content: '>';
    margin-right: 0.5rem;
    color: var(--accent-color);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--mono-font);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-menu a::before {
    content: '//';
    margin-right: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    opacity: 1;
    color: var(--accent-color);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.03) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.greeting {
    font-family: var(--mono-font);
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
}

.greeting::before {
    content: '$ ';
}

.name {
    display: block;
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-family: var(--mono-font);
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-subtitle::before {
    content: '[ ';
    color: var(--accent-color);
}

.hero-subtitle::after {
    content: ' ]';
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: var(--mono-font);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 0.5px;
    position: relative;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Social Links in Hero */
.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.social-link {
    font-family: var(--mono-font);
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.social-link::before {
    content: '//';
    color: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* ===========================
   Overview Section
   =========================== */
.overview {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::before {
    content: '# ';
    font-family: var(--mono-font);
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.section-subtitle {
    font-family: var(--mono-font);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    letter-spacing: 0.3px;
}

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

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.3s ease;
}

.overview-card:hover::before {
    height: 100%;
}

.overview-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.overview-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.overview-card:hover .icon {
    filter: grayscale(0%);
    opacity: 1;
}

.overview-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.overview-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 4rem 0 3rem;
    text-align: left;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.page-header h1::before {
    content: '# ';
    font-family: var(--mono-font);
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.page-header p {
    font-family: var(--mono-font);
    font-size: 0.9375rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.page-header p::before {
    content: '// ';
    color: var(--accent-color);
}

/* ===========================
   Content Section
   =========================== */
.content-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

/* ===========================
   Timeline (Experience & Education)
   =========================== */
.timeline {
    position: relative;
    padding-left: 3rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-dot {
    position: absolute;
    left: -3.25rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border-color);
    z-index: 1;
}

.timeline-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    flex: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.timeline-date {
    font-family: var(--mono-font);
    font-size: 0.8125rem;
    color: var(--accent-color);
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: var(--code-bg);
    border-radius: 0.375rem;
    border: 1px solid var(--border-light);
    letter-spacing: 0.3px;
}

.timeline-content h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.location::before {
    content: '📍 ';
    margin-right: 0.25rem;
}

.experience-list,
.education-highlights ul {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.experience-list li,
.education-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    list-style: none;
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
}

.experience-list li::before,
.education-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.education-focus,
.education-thesis,
.education-advisor {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.education-highlights,
.education-coursework {
    margin-top: 1.5rem;
}

.education-highlights h4,
.education-coursework h4,
.project-details h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--mono-font);
    letter-spacing: 0.3px;
}

.education-coursework p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    font-family: var(--mono-font);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===========================
   Projects Grid
   =========================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.3s ease;
}

.project-card:hover::before {
    height: 100%;
}

.project-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    flex: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-link {
    font-family: var(--mono-font);
    color: var(--accent-color);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: var(--transition);
    background: var(--code-bg);
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.project-details {
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-details ul {
    padding-left: 1.5rem;
}

.project-details li {
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    list-style: none;
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
}

.project-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ===========================
   Skills Section
   =========================== */
.skills-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.skill-category h3 {
    font-family: var(--mono-font);
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    font-family: var(--mono-font);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===========================
   Publications
   =========================== */
.filter-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--mono-font);
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-secondary);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.publication-item {
    display: flex;
    gap: 2rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.publication-item:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.publication-item.hidden {
    display: none;
}

.publication-year {
    font-family: var(--mono-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 60px;
}

.publication-content {
    flex: 1;
}

.publication-status-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.publication-title {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.3px;
    flex: 1;
}

/* Status Badges */
.status-badge {
    font-family: var(--mono-font);
    padding: 0.375rem 0.875rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.published {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.under-review {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.publication-authors {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.publication-venue {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.venue-badge {
    font-family: var(--mono-font);
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 0.75rem;
    letter-spacing: 0.5px;
}

.venue-badge.conference {
    background-color: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.venue-badge.journal {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.venue-badge.workshop {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.publication-abstract {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-link {
    font-family: var(--mono-font);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--code-bg);
    transition: var(--transition);
}

.pub-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.pagination-btn {
    font-family: var(--mono-font);
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-secondary);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    font-family: var(--mono-font);
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-secondary);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.page-number:hover,
.page-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===========================
   Certifications
   =========================== */
.certifications-section {
    background-color: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.certification-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certification-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-family: var(--mono-font);
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.3px;
}

.footer-text::before {
    content: '// ';
    color: var(--accent-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    /* Typography adjustments for mobile */
    html {
        font-size: 14px; /* Reduce base font size */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        text-align: left;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        overflow-y: auto;
        z-index: 1000;
    }

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

    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--accent-color);
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Hero section mobile */
    .greeting {
        font-size: 0.8125rem;
    }

    .name {
        font-size: 2rem;
        letter-spacing: -1px;
    }

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

    .hero-description {
        font-size: 0.9375rem;
    }

    .hero-social {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        font-size: 0.8125rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.8125rem;
    }

    /* Page header */
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 0.8125rem;
    }

    /* Overview cards */
    .overview-card h3 {
        font-size: 1.125rem;
    }

    .overview-card p {
        font-size: 0.875rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 2.5rem;
    }

    .timeline-dot {
        left: -2.9rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-header h3 {
        font-size: 1.125rem;
    }

    .timeline-date {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .location {
        font-size: 0.8125rem;
    }

    .experience-list li,
    .education-highlights li {
        font-size: 0.875rem;
    }

    .education-highlights h4,
    .education-coursework h4,
    .project-details h4 {
        font-size: 0.9375rem;
    }

    /* Skills */
    .skill-category h3 {
        font-size: 0.875rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    /* Projects */
    .project-header h3 {
        font-size: 1.0625rem;
    }

    .project-description {
        font-size: 0.875rem;
    }

    .project-details li {
        font-size: 0.875rem;
    }

    .project-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    /* Publications */
    .publication-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .publication-year {
        min-width: auto;
        font-size: 1rem;
    }

    .publication-title {
        font-size: 1rem;
    }

    .publication-authors {
        font-size: 0.8125rem;
    }

    .publication-venue {
        font-size: 0.8125rem;
    }

    .venue-badge,
    .status-badge {
        font-size: 0.625rem;
        padding: 0.3rem 0.625rem;
    }

    .publication-abstract {
        font-size: 0.875rem;
    }

    .pub-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    /* Filter buttons */
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .page-number {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        min-width: 35px;
    }

    /* Buttons */
    .btn {
        font-size: 0.8125rem;
        padding: 0.75rem 1.5rem;
    }

    /* Tags */
    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    /* General spacing */
    .container {
        padding: 0 1.25rem;
    }

    .overview-grid,
    .skills-grid,
    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* Content sections */
    .content-section {
        padding: 3rem 0;
    }

    .overview,
    .skills-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - even smaller text */
    html {
        font-size: 13px;
    }

    .name {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        font-size: 0.8125rem;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        text-align: center;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    .publication-title {
        font-size: 0.9375rem;
    }
}