:root {
    --primary-color: #ff5757; /* Pokéball red */
    --secondary-color: #3b5998; /* Deep blue */
    --accent-color: #ffc107; /* Pokemon yellow */
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #e74c3c;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #324b80;
    color: white;
}

.btn-discord {
    background-color: #7289da;
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background-color: #677bc4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.4);
}

.btn-discord i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

section {
    padding: 4rem 0;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.prize-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.prize-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.prize-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.prize-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Content List Styling */
.card ul, .card ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.card ul {
    list-style-type: disc;
}

.card ol {
    list-style-type: decimal;
}

.card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.card ul ul, .card ol ul, .card ul ol, .card ol ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* PokéAgent Showdown Content Styling */
.showdown-content {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 2.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.showdown-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.showdown-content ul {
    margin-bottom: 2rem;
    padding-left: 0;
}

.showdown-content li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.showdown-content li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.showdown-content li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.showdown-content a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

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

.showdown-content em {
    color: #666;
    font-style: italic;
}

.showdown-content p:first-of-type {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.showdown-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.showdown-content h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.showdown-content h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.showdown-content ol {
    margin-bottom: 2rem;
    padding-left: 0;
    counter-reset: item;
}

.showdown-content ol li {
    padding-left: 2rem;
    position: relative;
    counter-increment: item;
}

.showdown-content ol li::before {
    content: counter(item) ".";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.showdown-content code {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e9ecef;
}

.showdown-content a code {
    color: var(--secondary-color);
    background-color: #e8f4f8;
    border: 1px solid #b8daff;
    transition: all 0.3s ease;
}

.showdown-content a:hover code {
    color: var(--primary-color);
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.dataset-table {
    margin: 2rem auto;
    overflow-x: auto;
    max-width: 800px;
}

.dataset-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    table-layout: fixed;
}

.dataset-table th,
.dataset-table td {
    padding: 1rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    line-height: 1.5;
}

.dataset-table th {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #e9ecef;
}

.dataset-table td:first-child {
    font-weight: 500;
    width: 25%;
    word-wrap: break-word;
}

.dataset-table td:nth-child(2) {
    width: 75%;
    word-wrap: break-word;
}

.dataset-table tr:nth-child(even) {
    background-color: #fafafa;
}

.dataset-table tr:hover {
    background-color: #f0f8ff;
}

.dataset-table a code {
    color: var(--secondary-color);
    background-color: #e8f4f8;
    border: 1px solid #b8daff;
    transition: all 0.3s ease;
}

.dataset-table a:hover code {
    color: var(--primary-color);
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.showdown-content .track-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.showdown-content .track-links .track-image {
    width: 320px;
    height: 224px;
    object-fit: cover;
}

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

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

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

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

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
}

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

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    background: radial-gradient(ellipse 150% 100% at 50% 30%, #f3f9ff, #90caf9);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
    padding: 2rem 0;
    position: relative;
    mask: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    mask: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--dark-color);
    font-weight: 400;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

.track-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.track-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.track-link {
    display: block;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.track-link:hover {
    transform: translateY(-10px) scale(1.05);
}

.track-links .track-image {
    width: 500px;
    height: 350px;
    display: block;
    border-radius: var(--border-radius);
    transition: filter 0.3s ease;
    object-fit: cover;
}

.track-link:hover .track-image {
    filter: brightness(1.1) saturate(1.2);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
}

/* Tracks */
.track-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.track-card h3 {
    color: var(--primary-color);
}

.track-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    background-color: #f0f0f0;
}

.team-member h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #666;
}

.team-member a {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.team-member a:hover {
    transform: scale(1.05);
}

.team-member a:hover img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Resources */
.resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    padding: 1rem;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #e0e0e0;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-question.active + .faq-answer {
    display: block;
}

/* Footer */
footer {
    background-color: #3a3a3a;
    color: white;
    padding: 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-column {
    flex: 1;
    min-width: 0;
}

.footer-column a {
    color: white;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
}

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

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        text-align: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 999;
        display: none;
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 0;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        color: var(--dark-color);
        font-weight: 500;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 1.5rem 2rem;
        max-width: 95%;
    }
    
    /* Enhanced track links mobile styling */
    .track-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        padding: 0 0.5rem;
    }
    
    .track-links .track-image {
        width: 280px;
        height: 200px;
    }

    /* Better spacing for track link divs */
    .track-links div {
        margin: 0 !important;
        width: calc(100% - 2rem);
        max-width: 300px;
        padding: 0 1rem;
    }

    /* Mobile-specific section padding */
    section {
        padding: 2rem 0;
    }

    /* Improved hero section for mobile */
    .hero {
        padding: 2rem 0 !important;
        margin-top: 60px;
    }

    /* Better container padding on mobile */
    .container {
        padding: 0 0.75rem;
    }

    /* Card padding adjustment */
    .card {
        padding: 1rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .prize-card {
        padding: 1.5rem;
    }
    
    .prize-icon {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3 {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .citation-box {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .citation-box pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    /* Countdown timer styling for mobile */
    .countdown-container {
        padding: 1rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-segment {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }

    /* Enhanced mobile styling for showdown content */
    .showdown-content {
        font-size: 1.05rem;
        padding: 1.2rem;
        line-height: 1.7;
    }

    .showdown-content p:first-of-type {
        font-size: 1.1rem;
    }

    .showdown-content li {
        margin-bottom: 1.2rem;
        padding-left: 1.2rem;
    }

    .showdown-content h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .showdown-content h4 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .showdown-content ol li {
        padding-left: 1.5rem;
    }

    /* Better table responsiveness */
    .dataset-table {
        margin: 1.5rem 0;
        font-size: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataset-table th,
    .dataset-table td {
        padding: 0.6rem 0.4rem;
        white-space: nowrap;
        min-width: 80px;
    }

    .dataset-table th {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .dataset-table td:first-child {
        min-width: 120px;
    }

    .showdown-content code {
        font-size: 0.8em;
        padding: 0.1rem 0.3rem;
        word-break: break-all;
    }

    /* Improved track links mobile layout */
    .showdown-content .track-links {
        gap: 1rem;
        margin: 1.5rem 0;
        flex-direction: column;
        padding: 0 1rem;
    }

    .showdown-content .track-links .track-image {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Better mobile typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    /* Improved button sizing on mobile */
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Better timeline spacing */
    .timeline-content {
        padding: 1rem 1.5rem;
    }

    .timeline-date {
        font-size: 0.9rem;
    }

    /* Improved list spacing */
    .showdown-content ul li {
        margin-bottom: 1rem;
    }

    .showdown-content ol li {
        margin-bottom: 1rem;
    }

    /* Better hero image sizing */
    .hero img {
        max-width: 90% !important;
        height: auto !important;
    }

    /* Improved caption sizing */
    .showdown-content .track-links p {
        font-size: 1rem !important;
        margin-top: 0.75rem !important;
        text-align: center;
        word-wrap: break-word;
        max-width: 100%;
    }

         /* Ensure no horizontal overflow */
     body {
         overflow-x: hidden;
     }

     /* Additional safety for track link containers */
     .track-links div {
         box-sizing: border-box;
         overflow: hidden;
     }

     /* Mobile Code Block Improvements */
     .code-block-container {
         margin: 1rem 0;
         border-radius: 6px;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
     }

     .code-block-container pre {
         padding: 1rem;
         font-size: 0.8rem;
         line-height: 1.5;
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
         white-space: pre;
         word-wrap: normal;
         word-break: normal;
     }

     pre {
         padding: 0.8rem;
         font-size: 0.75rem;
         line-height: 1.4;
         margin: 0.8rem 0;
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
         white-space: pre;
         word-wrap: normal;
         word-break: normal;
         border-radius: 6px;
     }

     /* Mobile Image Improvements */
     .responsive-image {
         margin: 0.8rem 0;
         border-radius: 6px;
         box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
     }

     .figure-image {
         margin: 0.8rem auto;
         border-radius: 6px;
         box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
         max-width: 95%;
     }

     .centered-image {
         margin: 1rem auto;
         max-width: 95%;
         border-radius: 6px;
     }

     /* Hero image mobile optimization */
     .hero-image {
         max-width: 95%;
         margin: 0 auto 1.5rem;
     }

     /* FAQ images mobile optimization */
     .faq-answer img {
         max-width: 100% !important;
         height: auto !important;
         border-radius: 6px;
         box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
         margin: 1rem auto !important;
         display: block !important;
     }

     /* Team member images mobile optimization */
     .team-member img {
         width: 80px;
         height: 80px;
         border-radius: 50%;
         object-fit: cover;
         margin-bottom: 0.5rem;
         background-color: #f0f0f0;
         box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
     }

     /* Track images mobile optimization */
     .track-image {
         border-radius: 8px;
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
         transition: transform 0.3s ease, box-shadow 0.3s ease;
     }

     .track-link:hover .track-image {
         transform: scale(1.02);
         box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
     }

     /* Inline code improvements for mobile */
     .showdown-content code {
         font-size: 0.75em;
         padding: 0.15rem 0.3rem;
         word-break: break-all;
         white-space: pre-wrap;
         border-radius: 4px;
     }

     /* Code in links mobile optimization */
     .showdown-content a code {
         word-break: break-all;
         white-space: pre-wrap;
     }

     /* Dataset table code mobile optimization */
     .dataset-table code {
         font-size: 0.7em;
         padding: 0.1rem 0.2rem;
         word-break: break-all;
         white-space: pre-wrap;
     }

     /* Citation box mobile optimization */
     .citation-box {
         margin: 0 0.5rem;
         padding: 1.5rem;
     }

     .citation-box pre {
         padding: 1rem;
         font-size: 0.75rem;
         line-height: 1.3;
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
         white-space: pre;
         word-wrap: normal;
     }

     /* Server configuration code block mobile optimization */
     div[style*="display: flex; justify-content: center"] pre {
         font-size: 0.8rem !important;
         padding: 1rem 1.5rem !important;
         margin: 1rem 0 !important;
         max-width: 100% !important;
         box-sizing: border-box !important;
         overflow-x: auto !important;
         -webkit-overflow-scrolling: touch !important;
         white-space: pre !important;
         word-wrap: normal !important;
     }

     /* General image container mobile optimization */
     div[style*="text-align: center"] img {
         max-width: 95% !important;
         height: auto !important;
         border-radius: 6px !important;
         box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
         margin: 1rem auto !important;
     }

     /* Sponsor logo mobile optimization */
     .sponsor-item img,
     .deepmind-icon,
     .deepmind-text {
         max-width: 100% !important;
         height: auto !important;
     }
     
     .sponsor-tier {
         margin-bottom: 2rem;
     }
     
     .tier-label {
         font-size: 1.1rem;
     }
     
     .gold-tier .sponsor-item,
     .silver-tier .sponsor-item {
         transform: scale(1);
     }
     
     .aij-logo {
         max-width: 200px;
     }

     /* Ensure all images are responsive */
     img {
         max-width: 100%;
         height: auto;
     }

     /* Timeline content images */
     .timeline-content img {
         max-width: 100% !important;
         height: auto !important;
         border-radius: 6px;
         margin: 0.5rem 0;
     }
 }

/* Code Block Improvements */
.code-block-container {
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.code-block-container pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
    white-space: pre;
    word-wrap: normal;
    -webkit-overflow-scrolling: touch;
}

.code-block-container code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    word-break: normal;
    white-space: pre;
}

/* Generic pre styling for all code blocks */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
    white-space: pre;
    word-wrap: normal;
    -webkit-overflow-scrolling: touch;
}

/* Image Responsiveness Improvements */
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 1rem 0;
}

.figure-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 1rem auto;
    display: block;
}

.centered-image {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
}

/* Hero image improvements */
.hero-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    mask: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, #ffe4e4 0%, #ffd6d6 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 87, 87, 0.1);
}

.countdown-title {
    color: #cc3333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-segment {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.countdown-segment:hover {
    transform: translateY(-3px);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff5757;
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-message {
    color: #666;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Phase Indicators */
.phase-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.phase-indicator.active {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.phase-indicator.completed {
    opacity: 0.7;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.phase-indicator.active .phase-dot {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    animation: pulse 2s infinite;
}

.phase-indicator.completed .phase-dot {
    background: #fbbf24;
}

.phase-name {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px #4ade80;
    }
    50% {
        box-shadow: 0 0 20px #4ade80;
    }
    100% {
        box-shadow: 0 0 5px #4ade80;
    }
}

/* Citation Section */
.citation-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

.citation-box pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
}

.citation-box code {
    background: none;
    padding: 0;
    color: inherit;
}

.btn-copy {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background-color: #324b80;
    transform: translateY(-1px);
}

.btn-copy i {
    font-size: 1rem;
}

/* Sponsorship Section */
.sponsors-container {
    max-width: 900px;
    margin: 0 auto;
}

.current-sponsors {
    margin-bottom: 3rem;
}

.sponsor-tier {
    margin-bottom: 2.5rem;
}

.tier-label {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.gold-tier .tier-label {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.silver-tier .tier-label {
    color: #C0C0C0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.sponsor-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
}

.sponsor-logo {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    color: #4285f4; /* Google DeepMind blue color */
}

.deepmind-logo-combined {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.deepmind-icon {
    color: #4285f4; /* Google DeepMind blue color */
    flex-shrink: 0;
}

.deepmind-text {
    color: #4285f4; /* Google DeepMind blue color */
    flex-shrink: 0;
}

.sponsor-name {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.aij-logo {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

.gold-tier .sponsor-item {
    transform: scale(1.1);
}

.silver-tier .sponsor-item {
    transform: scale(0.95);
}

.gold-tier .sponsor-item:hover {
    transform: scale(1.15) translateY(-5px);
}

.silver-tier .sponsor-item:hover {
    transform: scale(1) translateY(-5px);
}

.sponsor-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.sponsor-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.sponsor-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.sponsor-cta .btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.sponsor-cta .btn:hover {
    background-color: transparent;
    color: white;
}

/* Mobile responsiveness for sponsors */
@media screen and (max-width: 768px) {
    .sponsors-container {
        padding: 0 1rem;
    }
    
    .sponsor-logos {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .sponsor-item {
        width: 100%;
        max-width: 300px;
        padding: 1.5rem;
    }
    
    .deepmind-logo-combined {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .deepmind-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .deepmind-text {
        width: 200px !important;
        height: 40px !important;
    }
    
    .sponsor-cta {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .sponsor-cta p {
        font-size: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .sponsor-cta .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .sponsor-item {
        padding: 1rem;
    }
    
    .deepmind-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .deepmind-text {
        width: 160px !important;
        height: 32px !important;
    }
    
    .sponsor-cta {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .sponsor-cta p {
        font-size: 0.95rem !important;
    }
    
    .sponsor-cta .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Tab Styles */
.tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.1);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.format-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.format-selector label {
    font-weight: 600;
    color: var(--dark-color);
}

.format-selector select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.format-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Mobile responsiveness for tabs */
@media screen and (max-width: 768px) {
    .tab-container {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        text-align: left;
    }
    
    .format-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .format-selector select {
        width: 100%;
        max-width: 300px;
    }
}

p, .showdown-content p {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}