:root {
    /* Color Palette - Light Mode (Default) */
    --bg-color: #ffffff;
    --text-color: #2d3748;
    --heading-color: #1a202c;
    --accent-color: #4c51bf;
    /* Indigo */
    --accent-hover: #434190;
    --secondary-bg: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-bg: rgba(255, 255, 255, 0.85);

    /* Spacing & Layout */
    --container-width: 1000px;
    --section-padding: 3rem 0;
    --radius: 12px;
}

[data-theme="dark"] {
    --bg-color: #1a202c;
    --text-color: #a0aec0;
    --heading-color: #f7fafc;
    --accent-color: #7f9cf5;
    --accent-hover: #667eea;
    --secondary-bg: #2d3748;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(26, 32, 44, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

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

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 1rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile nav dropdown */
.nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    gap: 1rem;
    z-index: 999;
}

/* Sections */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-content {
    max-width: 500px;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.identity-list {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.bio {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 81, 191, 0.3);
}

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

.secondary-btn:hover {
    border-color: var(--heading-color);
    transform: translateY(-2px);
}

/* Visual Shape Placeholder */
.hero-visual .shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent-color), #f687b3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: var(--radius);
    transition: transform 0.2s;
    align-items: flex-start;
}

.publication-card:hover {
    transform: translateX(5px);
}

.publication-card.highlighted {
    border-left: 4px solid var(--accent-color);
    background: var(--secondary-bg);
}

.pub-image {
    width: 200px;
    /* Fixed width for thumbnail */
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--border-color);
    aspect-ratio: 16/9;
    /* Standard figure ratio */
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.publication-card:hover .pub-image img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.pub-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pub-year {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.pub-content h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    line-height: 1.3;
}

.pub-authors {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pub-venue {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    /* Push to bottom if needed */
}

/* Mobile responsive for pub card */
@media (max-width: 768px) {
    .publication-card {
        flex-direction: column;
    }

    .pub-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

.text-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

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

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-image {
    height: 180px;
    width: 100%;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-bg);
    border-radius: 999px;
    color: var(--text-color);
    font-weight: 600;
}

.project-links a {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-right: 1rem;
}

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

/* Personal/Gallery */
.section-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--secondary-bg);
}

.gallery-item::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cbd5e0;
    color: #4a5568;
    font-weight: 600;
    transition: transform 0.3s;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

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

.email-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.email-separator {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Navigation Active State */
.nav-links a.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* Page Titles for subpages */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer for Contact Page */
.site-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Adjust Section Padding for Pages */
.page-content {
    padding-top: 80px;
    /* Navbar offset */
}

/* Ensure footer is pushed down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Journey Timeline */
.journey-section {
    padding: 3rem 0 2rem;
}

.journey-timeline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding: 1rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.journey-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 110px;
    flex: 1;
}

.stop-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.journey-stop.current .stop-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: scale(1.15);
}

.stop-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.15rem;
}

.stop-period {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
}

.stop-content p {
    font-size: 0.78rem;
    color: var(--text-color);
    line-height: 1.4;
    max-width: 120px;
    margin: 0 auto;
}

.journey-connector {
    flex: 0 0 40px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    margin-top: 19px;
}

.journey-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    border-left: 7px solid var(--border-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

@media (max-width: 600px) {
    .journey-stop {
        min-width: 80px;
    }
    .journey-connector {
        width: 20px;
        flex-shrink: 0;
    }
}

/* Cycling Section */
#cycling-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    z-index: 1;
}

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

.story-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    /* border: 1px solid var(--border-color); optional */
}

.story-card.reverse {
    flex-direction: row-reverse;
}

.story-image {
    flex: 1;
    min-width: 300px;
    /* Ensure image doesn't shrink too much */
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 250px;
}

.story-content {
    flex: 1.2;
    padding: 2rem;
}

.story-content h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.story-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.story-content p {
    color: var(--text-color);
    line-height: 1.6;
}

.other-trips {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
    margin-top: 1rem;
}

/* Cycling Grid for Notable Rides */
.subsection-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 2rem;
    margin-top: 3rem;
    text-align: center;
}

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

.grid-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
}

.grid-image {
    height: 200px;
    width: 100%;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-content h4 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.story-meta.small {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.story-meta.small span {
    gap: 0.3rem;
}

/* Drone Videography Section */
.drone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drone-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
}

.drone-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.drone-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.drone-card:hover {
    transform: scale(1.02);
}

.drone-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.drone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.drone-card:hover .drone-image img {
    opacity: 0.9;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.drone-card:hover .play-overlay {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.drone-card h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Highlights Section (Home) */
.highlights-section {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

.card-content p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-action {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.highlight-card:hover .card-action {
    gap: 0.8rem;
}

/* Add a subtle decorative background blur or gradient */
.research-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
    transition: opacity 0.3s ease;
}

.life-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: #ff7675;
    /* Slightly different tone for Life if desired, or keep primary */
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
    transition: opacity 0.3s ease;
}

.highlight-card:hover::before {
    opacity: 0.1;
}

/* Compact Hero for Single Page Feel */
.hero.compact-hero {
    min-height: unset;
    display: flex;
    align-items: flex-start;
    padding: 2rem 2% 3rem;
    gap: 2rem;
    overflow: hidden;
}

/* Update visual container to hold map */
.hero-visual.map-visual {
    flex: 3;
    /* Even more space for image */
    height: auto;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
}

/* Life Journey Infographic */
.journey-infographic {
    width: 100%;
    height: auto;
    max-height: 98vh;
    /* Maximum vertical space */
    object-fit: contain;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.journey-infographic:hover {
    transform: scale(1.01);
}

/* Update visual container */
/* (Merged above) */

/* Adjust buttons for compact layout */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 968px) {
    .hero.compact-hero {
        flex-direction: column;
        padding-top: 4rem;
        height: auto;
        min-height: auto;
    }

    .hero-visual.map-visual {
        width: 100%;
        height: 400px;
        order: -1;
        /* Maybe show map top? Or not. Default is bottom. Let's keep bottom. */
        order: 1;
    }
}

.timeline-label {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    text-shadow:
        1px 1px 0 #fff, -1px -1px 0 #fff,
        1px -1px 0 #fff, -1px 1px 0 #fff,
        1px 0px 0 #fff, -1px 0px 0 #fff;
    white-space: nowrap;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    z-index: 1;
    /* Ensure it stays below nav on mobile */
}

.full-marathon-label {
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 800;
    color: #000;
    font-size: 0.9rem;
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.8);
    /* Readability */
}

/* Table Styles - Adjusted for spacing */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 520px;
}

.records-table th,
.records-table td {
    padding: 0.45rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.records-table th {
    background-color: var(--secondary-bg);
    color: var(--heading-color);
    font-weight: 700;
}

.records-table tr:hover {
    background-color: var(--secondary-bg);
}

.records-table tbody tr:last-child td {
    border-bottom: none;
}

.ultra-dist {
    font-weight: 800;
    color: var(--accent-color);
}

.marathon-dist {
    font-weight: 700;
    color: #000000;
    /* Bold black as requested */
}

/* Mobile Responsive */
@media (max-width: 768px) {

    :root {
        --section-padding: 2rem 0;
    }

    main {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

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

    .subsection-title {
        font-size: 1.1rem;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .pub-image {
        width: 100%;
    }

    /* Cycling stories */
    .story-card,
    .story-card.reverse {
        flex-direction: column;
    }

    .story-image {
        width: 100%;
        height: 200px;
    }

    /* Cycling grid */
    .cycling-grid {
        grid-template-columns: 1fr;
    }

    /* Drone embeds */
    .drone-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Journey */
    .journey-section {
        padding: 1.5rem 0 1rem;
    }

    .stop-content p {
        display: none;
    }

    /* Social links */
    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}