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

html {
    font-size: 22px;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #fff;
    color: #000;
    line-height: 2;
    padding: 80px 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme */
body.dark {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark .subtitle {
    color: #999;
}

body.dark h2 {
    color: #ccc;
}

body.dark .project {
    border-bottom: 2px solid #333;
}

body.dark .project-desc {
    color: #bbb;
}

body.dark .project-tech {
    color: #888;
}

body.dark a {
    color: #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

body.dark footer {
    border-top: 2px solid #333;
    color: #999;
}

body.dark .social-links a {
    background: #333;
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark .social-links a:hover {
    background: #e0e0e0;
    color: #333;
}

body.dark .nav-links a {
    background: #333;
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark .nav-links a:hover {
    background: #e0e0e0;
    color: #333;
}

body.dark .nav-links a.active {
    background: #e0e0e0;
    color: #333;
}

body.dark .avatar {
    border-color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark .avatar:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.dark .theme-toggle {
    background: #fff;
    color: #000;
}

body.dark .theme-toggle:hover {
    background: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation styles */
.main-nav {
    margin-bottom: 60px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    border-bottom: 2px solid #333;
}

.nav-links a:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

.nav-links a.active {
    background: #333;
    color: #fff;
}

/* Section Navigation Menu */
.section-nav {
    margin: 40px 0 60px 0;
    text-align: center;
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #333;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark theme for section navigation */
body.dark .section-nav {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark .nav-link {
    background: #333;
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark .nav-link:hover {
    background: #e0e0e0;
    color: #333;
}

/* Avatar styles */
.avatar-container {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 60px;
}

section {
    margin-bottom: 90px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #999;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/** 
 * Enhanced banner styles with modern design
 * Generic class utility (for decorative callouts, eg: <free>, <note>, <tip>)
 * Usage: <span class="generic">...</span>
 */
.banner {
    display: block;
    padding: 2em 2.5em 1.8em 2.5em;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    color: #1e293b;
    font-size: 1.1rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    font-family: 'JetBrains Mono', monospace;
    margin: 0 0 40px 0;
    line-height: 1.7;
    font-weight: 500;
    box-shadow: 
      0 10px 40px rgba(15, 23, 42, 0.08),
      0 4px 16px rgba(15, 23, 42, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.banner:hover {
    transform: translateY(-4px);
    box-shadow: 
      0 20px 60px rgba(15, 23, 42, 0.12),
      0 8px 24px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.banner h3, .banner h4 {
    margin: 0 0 8px 0;
    position: relative;
    z-index: 2;
}

.banner h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0f172a;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.banner h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    opacity: 0.8;
}

.banner h4 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #475569;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    opacity: 0.9;
}

/* Enhanced dark mode styles for .banner */
body.dark .banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid transparent;
    color: #f1f5f9;
    box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.3),
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark .banner::before {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #22d3ee, #34d399);
}

body.dark .banner:hover {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 8px 24px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark .banner h3 {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark .banner h3::after {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

body.dark .banner h4 {
    color: #cbd5e1;
    opacity: 0.9;
}

/* Special banner variants for different sections */
.banner[id="self-hosted"] {
    border-left: 4px solid #10b981;
}

.banner[id="p2p-networking"] {
    border-left: 4px solid #3b82f6;
}

.banner[id="utility-libraries"] {
    border-left: 4px solid #8b5cf6;
}

.banner[id="blockchain-defi"] {
    border-left: 4px solid #f59e0b;
}

/* Enhanced banner animations */
.banner {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner icon support */
.banner-icon {
    display: inline-block;
    margin-right: 12px;
    font-size: 1.2em;
    vertical-align: middle;
}



.project {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 2px solid #eee;
}

.project:last-child {
    border-bottom: none;
}

.project-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 13px;
}

.project-desc {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
}

.project-tech {
    font-size: 1.1rem;
    color: #888;
}

.project-image {
    width: 180px;
    height: 180px;
    display: block;
    margin-bottom: 20px;
    margin-top: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    padding: 10px;
}

a {
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #000;
    transition: opacity 0.2s;
    font-size: 1.1rem;
}

a:hover {
    opacity: 0.7;
}

.links {
    display: flex;
    gap: 40px;
}

.links a {
    border-bottom: none;
    font-size: 1.25rem;
    padding: 6px 12px;
}

/* Tunecamp specific styles */
.logo {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    display: block;
}

.tagline {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

.download-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    border-bottom: none;
}

.btn:hover {
    background: #0056b3;
    opacity: 1;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.features {
    margin: 60px 0;
}

.feature-section {
    margin: 40px 0;
}

.feature-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.feature-section p {
    color: #666;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #666;
}

.feature-list li:before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    margin-right: 10px;
}

.example-sites {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.example-sites h3 {
    margin-bottom: 20px;
    color: #333;
}

.site-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.site-link {
    display: block;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: none;
}

.site-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    opacity: 1;
}

.principles {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.principles h3 {
    margin-bottom: 20px;
    color: #333;
}

.principles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    list-style: none;
}

.principles-list li {
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #333;
}

.code-block code {
    color: #e83e8c;
}

.code-block .string {
    color: #28a745;
}

.code-block .comment {
    color: #6c757d;
}

footer {
    margin-top: 100px;
    padding-top: 25px;
    border-top: 2px solid #eee;
    font-size: 1.15rem;
    color: #999;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.social-links a {
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid #333;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-links a:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

.footer-note {
    font-size: 1rem;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    text-align: center;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    border-bottom: none;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-note {
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 1000px) {
    html {
        font-size: 19px;
    }
    .container {
        max-width: 97vw;
    }
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    body {
        padding: 25px 8px;
    }
    h1 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .links {
        gap: 20px;
    }
    .project-title {
        font-size: 1.15rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .site-links {
        grid-template-columns: 1fr;
    }
    
    .principles-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
