body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a0a0a;
    font-size: 3rem;
}

h2 b {
    color: #3b82f6;
}

h2 small {
    display: block;
    font-size: 0.5em;
    color: #6b7280;
    margin-top: 10px;
    font-weight: 500;
}

h3 {
    font-weight: 600;
    color: #1f2937;
    margin-top: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
    font-size: 1.75rem;
}

.row {
    margin-bottom: 15px;
}

.row:nth-of-type(2) {
    margin-top: 0;
    padding-top: 0;
}

.list-inline li {
    padding: 0 10px;
}

.list-inline a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.list-inline a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.nav-pills > li > a {
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 15px;
}

.nav-pills > li > a:hover {
    background-color: #ecf0f1;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-pills > li > a image {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.nav-pills > li > a:hover image {
    filter: grayscale(0%);
}

video {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 10px 0;
}

img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-justify {
    text-align: justify;
    hyphens: auto;
}

#bibtex {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    min-height: 150px;
    resize: vertical;
}

.container {
    max-width: 1200px;
}

p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    .nav-pills > li {
        margin-bottom: 10px;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve link styles in acknowledgements */
.acknowledgements a {
    color: #3498db;
    font-weight: 500;
}

/* Add spacing after sections */
.row + .row {
    margin-top: 10px;
}

/* Navigation buttons styling */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.nav-button {
    display: inline-block;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.button.is-dark {
    background-color: #363636;
    color: white;
}

.button.is-dark:hover {
    background-color: #242424;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.button .icon {
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
}

.button span {
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 200px;
    }
}

/* Video Tabs styling */
.video-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: none;
}

.video-tabs li {
    margin: 0;
}

.video-tabs li a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #6b7280;
    background-color: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.video-tabs li a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    transform: translateY(-2px);
}

.video-tabs li.active a,
.video-tabs li.active a:hover,
.video-tabs li.active a:focus {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tab-content {
    margin-top: 20px;
}

.tab-content video {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.video-nav-buttons .btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #363636;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.video-nav-buttons .btn:hover:not(:disabled) {
    background-color: #242424;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-nav-buttons .btn:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .video-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .video-tabs li {
        width: 100%;
    }

    .video-tabs li a {
        display: block;
        text-align: center;
    }
}
