/* ==================== */
/* Table of Contents:
   1. CSS Variables & Root
   2. Global Reset & Base Styles
   3. Typography
   4. Layout & Containers
   5. Navigation
   6. Hero Section
   7. Section Styles
   8. Components (Cards, Timeline, etc.)
   9. Dark Mode / Background Variations
   10. Utility Classes
   11. Media Queries
   12. Table of Contents Styles
*/
/* ==================== */

/* ---------- 1. CSS Variables & Root ---------- */
:root {
    /* Color scheme */
    --primary-color: #39B67F;
    --primary-color-dark: #2a8a5e;
    --secondary-color: #0E110F;
    --accent-color: #575760;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --text-color: #444;
    --border-color: #e1e1e1;
    
    /* Spacing scale (in rem) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 5rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --h1-size: 3rem;
    --h2-size: 2.2rem;
    --h3-size: 1.5rem;
    --h4-size: 1.25rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Common properties */
    --transition: all 0.3s ease;
    --box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
    --border-radius: 0.5rem;
    --button-radius: 3.125rem;
    
    /* Site layout */
    --container-max-width: 75rem;
    --container-padding: 0.9375rem;
    --section-spacing: 5rem;
}

/* ---------- 2. Global Reset & Base Styles ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    padding-top: 4.5rem;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: var(--line-height-normal);
    background-color: #fff;
}

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

button, input, select, textarea {
    font: inherit;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

a {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    box-shadow: inset 0 -0.125rem 0 0 var(--primary-color);
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.125rem 0.25rem;
}

a:hover {
    color: white;
    background-color: var(--primary-color);
    box-shadow: none;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 0.125rem solid var(--primary-color);
    outline-offset: 0.125rem;
}

/* Skip to content for keyboard users */
.skip-to-content {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    top: auto;
    overflow: hidden;
    z-index: -999;
}

.skip-to-content:focus, .skip-to-content:active {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 1500;
    padding: var(--space-3);
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: bold;
    text-decoration: none;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
    position: relative;
    padding-bottom: var(--space-4);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 0.1875rem;
    background-color: var(--primary-color);
}

h3 {
    font-size: var(--h3-size);
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--h4-size);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    line-height: var(--line-height-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- 4. Layout & Containers ---------- */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.section-content {
    max-width: 50rem;
    margin: 0 auto;
}

/* ---------- 5. Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 9999;
    box-shadow: var(--box-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
}

.logo {
    flex-shrink: 0;
    min-width: 140px;
}

.logo img {
    height: 2.5rem;
}

.logo a {
    box-shadow: none;
    padding: 0;
}

.logo a:hover {
    background-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-3);
    margin-left: auto;
    margin-right: var(--space-3);
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: var(--space-2) var(--space-3);
    border-radius: 0;
    transition: var(--transition);
    box-shadow: inset 0 -0.125rem 0 0 var(--primary-color);
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: white;
    background-color: var(--primary-color);
    box-shadow: none;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: var(--space-2);
}

.menu-toggle span {
    display: block;
    width: 1.5625rem;
    height: 0.125rem;
    background-color: var(--dark-color);
    margin: 0.25rem 0;
    transition: var(--transition);
}

/* Add gap before contact button in nav */
.nav-links li:last-child {
    margin-left: var(--space-2);
    margin-right: var(--space-2); /* Creates extra space before the contact button */
}

/* ---------- 6. Hero Section ---------- */
.modern-hero {
    position: relative;
    padding: 4.5rem 0 20rem 0;
    overflow: visible;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.hero-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 2;
}

.hero-container h1 {
    width: 100%;
    margin-bottom: var(--space-5);
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-text-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.hero-main-text {
    flex: 1;
    min-width: 18.75rem;
}

.hero-bio p {
    font-size: 2rem;
    line-height: 1.4;
}

.hero-details {
    flex: 1;
    min-width: 18.75rem;
}

/* ---------- 7. Section Styles ---------- */
.wide-image-container {
    position: relative;
    margin-top: -25rem;
    margin-bottom: 4rem;
    z-index: 10;
    text-align: right;
    transition: all 0.5s ease;
}

.wide-image-container img {
    width: 62.5rem;
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin-right: 0;
    margin-left: auto;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.15);
    transform-origin: top right;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
}

.about-text {
    width: 100%;
    line-height: 1.8;
}

/* ---------- 8. Components ---------- */
/* Timeline */
.timeline {
    position: relative;
    max-width: 50rem;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.125rem;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.3125rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--box-shadow-md);
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Expertise Items */
.expertise-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.expertise-item {
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.expertise-item i {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.expertise-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--box-shadow-md);
}

/* Semantic items (light background) */
.semantic-items .expertise-item {
    background-color: rgba(0, 0, 0, 0.03);
    border: 0.0625rem solid rgba(0, 0, 0, 0.05);
}

.semantic-items .expertise-item i {
    color: var(--primary-color);
}

/* Speech items */
.speech-items .expertise-item {
    background-color: rgba(0, 0, 0, 0.03);
    border: 0.0625rem solid rgba(0, 0, 0, 0.05);
}

.speech-items .expertise-item i {
    color: var(--primary-color);
}

.speech-items .speech-venue {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.speech-items .speech-date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

/* Video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* Certification list */
.cert-list {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: var(--space-4);
}

.cert-list li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.cert-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Contact list */
.contact-list {
    margin-bottom: var(--space-5);
    list-style-type: none;
}

.contact-list li {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    font-size: var(--text-lg);
}

/* ---------- 9. Dark Mode / Background Variations ---------- */
.light-bg {
    background-color: var(--light-color);
}

.dark-bg {
    position: relative;
    background-color: var(--secondary-color);
    color: white;
}

.dark-bg .section-content {
    position: relative;
    z-index: 5;
}

.dark-bg h2, 
.dark-bg h3, 
.dark-bg p, 
.dark-bg li {
    color: white;
}

.dark-bg h2::after {
    background-color: var(--primary-color);
}

.dark-bg a {
    color: white;
    box-shadow: inset 0 -0.125rem 0 0 var(--primary-color);
}

.dark-bg a:hover {
    color: white;
    background-color: var(--primary-color);
    box-shadow: none;
}

/* Dark background items */
.dark-bg .expertise-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
}

.dark-bg .expertise-item i {
    color: var(--primary-color);
}

.dark-bg .expertise-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.3);
}

/* Dark timeline */
.dark-bg .timeline::before {
    background-color: var(--primary-color);
}

.dark-bg .timeline-item::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(57, 182, 127, 0.2);
}

.dark-bg .timeline-content {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.2);
    border: none;
}

.dark-bg .timeline h3 {
    color: white;
}

/* ---------- 10. Utility Classes ---------- */
/* Text utilities */
.text-white {
    color: white !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: var(--space-1) !important; }
.ml-2 { margin-left: var(--space-2) !important; }
.ml-3 { margin-left: var(--space-3) !important; }
.ml-4 { margin-left: var(--space-4) !important; }
.ml-5 { margin-left: var(--space-5) !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: var(--space-1) !important; }
.mr-2 { margin-right: var(--space-2) !important; }
.mr-3 { margin-right: var(--space-3) !important; }
.mr-4 { margin-right: var(--space-4) !important; }
.mr-5 { margin-right: var(--space-5) !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: var(--space-1) !important; padding-bottom: var(--space-1) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-5 { padding-top: var(--space-5) !important; padding-bottom: var(--space-5) !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: var(--space-1) !important; padding-right: var(--space-1) !important; }
.px-2 { padding-left: var(--space-2) !important; padding-right: var(--space-2) !important; }
.px-3 { padding-left: var(--space-3) !important; padding-right: var(--space-3) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-5 { padding-left: var(--space-5) !important; padding-right: var(--space-5) !important; }

/* Display utilities */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

/* Flexbox utilities */
.flex-column {
    flex-direction: column !important;
}

.align-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

/* Width utilities */
.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

/* ---------- 11. Media Queries ---------- */
/* Mobile navigation */
@media (max-width: 850px) {
    body {
        padding-top: 3.5rem;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: var(--space-4) 0;
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: none;
        z-index: 9998;
        margin-right: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: var(--space-2) 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li:last-child {
        margin: var(--space-2) 0;
    }
    
    .nav-links a {
        display: inline-block;
        padding: var(--space-2) var(--space-3);
        width: auto;
    }
    
    /* Other styles not related to navigation can stay */
    /* ... */
}

/* Large screens */
@media (min-width: 87.5rem) {
    .section.dark-bg .container {
        max-width: 75rem;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 62rem) {
    :root {
        --section-spacing: 4rem;
    }
    
    .modern-hero {
        padding-bottom: 15rem;
    }
    
    .wide-image-container {
        margin-top: -18.75rem;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-bio p {
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 48rem) {
    :root {
        --section-spacing: 3rem;
        --text-lg: 1rem;
    }
    
    .modern-hero {
        padding-top: 2.5rem;
    }
    
    .wide-image-container {
        margin-top: -12.5rem;
        text-align: center;
    }
    
    .wide-image-container img {
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-bio p {
        font-size: 1.5rem;
    }
    
    .two-column-container {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .section.dark-bg {
        padding-top: 6rem;
    }
    
    .container, .hero-container {
        width: 92%;
        padding: 0 var(--container-padding);
    }
    
    .section-content {
        width: 100%;
    }
}

/* Small mobile */
@media (max-width: 36rem) {
    .modern-hero {
        padding-bottom: 4rem;
    }
    
    .wide-image-container {
        margin-top: -9.375rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-bio p {
        font-size: 1.25rem;
    }
}

/* Very small mobile */
@media (max-width: 30rem) {
    .modern-hero {
        padding-bottom: 2rem;
    }
    
    .wide-image-container {
        margin-top: -8.75rem;
    }
}

/* Update the styling for the entrepreneur projects and other projects sections */

/* Remove the two-column layout specific to these sections and replace with expertise-list */
#projects .two-column-container,
#seo-meetups .two-column-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

/* Add light background styling similar to speech items */
#projects .expertise-item,
#seo-meetups .expertise-item {
    background-color: rgba(0, 0, 0, 0.03);
    border: 0.0625rem solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

#projects .expertise-item i,
#seo-meetups .expertise-item i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

#projects .expertise-item:hover,
#seo-meetups .expertise-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--box-shadow-md);
}

/* Project details styling */
.project-details {
    margin-bottom: var(--space-3);
}

.image {
    margin-top: var(--space-3);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer styles */
footer {
    padding-bottom: 4rem;
}

footer .container {
    text-align: center;
}

/* Footer Legal Accordions */
.footer-legal {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-accordion {
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.footer-accordion summary {
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: 500;
    display: inline-block;
    margin-right: 1.5rem;
}

.footer-accordion summary:hover {
    text-decoration: underline;
}

.footer-accordion summary::-webkit-details-marker {
    display: none;
}

.legal-content {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    max-width: 50rem;
}

.legal-content p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

@media (min-width: 48rem) {
    .footer-legal {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
}

/* ---------- 12. Table of Contents Styles ---------- */
/* TOC Button */
.toc-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 98;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: var(--button-radius);
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
    font-weight: 500;
}

.toc-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.toc-button i {
    font-size: 1.2rem;
}

/* TOC Container */
.toc-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: white;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 60vh; /* Mobile default */
    overflow: hidden;
}

.toc-container.active {
    transform: translateY(0);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.toc-header h3 {
    margin: 0;
    color: white;
}

.toc-close {
    color: white;
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.toc-close:hover {
    transform: scale(1.1);
}

/* TOC Content */
.toc-content {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    max-height: calc(60vh - 4rem); /* Subtract header height */
}

/* Custom scrollbar */
.toc-content::-webkit-scrollbar {
    width: 0.5rem;
}

.toc-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.toc-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.toc-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

/* TOC Nav and Links */
.toc-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.toc-nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: var(--transition);
    box-shadow: none;
}

.toc-nav a:hover {
    background-color: rgba(57, 182, 127, 0.1);
    color: var(--primary-color);
}

.toc-nav a.active {
    background-color: rgba(57, 182, 127, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.toc-nav .toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

/* Overlay */
.toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 97;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toc-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (min-width: 48rem) {
    .toc-container {
        max-height: 50vh;
    }
    
    .toc-content {
        max-height: calc(50vh - 4rem);
    }
}

@media (min-width: 62rem) {
    .toc-container {
        max-width: 25rem;
        right: 2rem;
        left: auto;
        max-height: 40vh;
        border-radius: var(--border-radius);
    }
    
    .toc-content {
        max-height: calc(40vh - 4rem);
    }
}

@media (max-width: 36rem) {
    .toc-button {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .toc-button span {
        font-size: 0.9rem;
    }
}

/* Contact button styling */
.contact-item {
    display: inline-block;
}

.toc-button-style {
    display: inline-block;
    background-color: var(--accent-color, #4a90e2);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.toc-button-style:hover {
    background-color: var(--accent-hover, #357abd);
    text-decoration: none;
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
    .contact-item {
        display: block;
        margin: 10px 0;
    }
}

/* CTA Button Styling */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25em;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--primary-color-dark);
    color: white;
    transform: translateY(-3px);
}

/* Nav-specific CTA button overrides */
.nav-links a.cta-button {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--button-radius);
    box-shadow: var(--box-shadow);
    box-shadow: none;
}

.nav-links a.cta-button:hover {
    background-color: var(--primary-color-dark);
    color: white;
    transform: translateY(-3px);
}