/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Menlo, monospace;
    overflow-x: hidden;
    background-color: var(--background-primary);
}

/* Colors */
:root {
   /* --background-primary: #2D2D2D; */
   --background-primary: #070707;
    --background-secondary: #1a1a1a;
    --text-primary: #d7ccbd;
    --text-secondary: #808080;
    --accent: #FF9F1C;
    --accent-light: #FFE5CC;
}

/* Typography */
.title {
    color: #ff9f1c;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    font-weight: 300;
    margin-top: 2rem;
}

.title span {
    opacity: 0.7;
    color: var(--text-secondary);
}

h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: lowercase;
    font-weight: normal;
}

p {
    color: #cdbba1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    text-align: center;
    font-size: 14px;
}

/* Layout */
.landing-section,
.content-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #2d2d2d00;
}

.content-section {
    padding: 4rem 0rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Add this new class for the frosted container */



.content-section p {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 1rem auto;
    opacity: 0.8;
    text-transform: lowercase;
    line-height: 1.6;
}

.content-section h2 {
    text-align: center;
    text-transform: lowercase;
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Concept Visualization */
.concept-visualization {
    width: 500px;
    height: 500px;
    margin: 2rem auto;
}

.concept-visualization svg {
    width: 100%;
    height: 100%;
}

/* Content Styling */
.intro-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.8;
    text-align: left;
    font-family: Menlo, monospace;
    text-transform: lowercase;
}

.section-content {
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-box {
    background: var(--background-secondary);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin: 1rem auto;
    color: white;
    opacity: 0.8;
    font-family: Menlo, monospace;
    font-size: 0.9rem;
    text-transform: lowercase;
    max-width: 800px;
}

/* Navigation and Sidebar */
.dot-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 350px;
    border-radius: 0px;
    background-color: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(5px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(0);
    transition: transform 0.3s ease-out;
    z-index: 1000;
}

.dot-nav.collapsed {
    transform: translateX(-350px); /* Show 30px peek */
}

/* Logo Button */
.nav-logo {
    position: absolute;
    top: 0.7rem;
    right: -55px;
    width: 45px;
    height: 45px;
    z-index: 1201;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    background: none;
    border: none;
    padding: 0;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo svg {
    width: 100%;
    height: 100%;
    background-color: #030303;
    border-radius: 50px;
    padding: 8px;
    box-sizing: border-box;
}

/* Remove the logo transition rule since it's now part of the sidebar */

/* Sidebar Header */
.sidebar-header {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */

}

.site-title {
    color: var(--accent); /* Use the orange accent color */
    font-family: Menlo, monospace;
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-align: center;
}

.site-title:hover {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0; /* Changed to vertical padding only */
    margin: 0;
    font-family: Menlo, monospace;
    font-size: 0.7rem;
    color: var(--text-primary);
    opacity: 0.8;
    text-align: center;
    background-color: rgba(26, 26, 26, 0.3); /* Match sidebar background */
}

.donation-text {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.btc-address {
    color: var(--accent);
    word-break: break-all;
    font-size: 0.65rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btc-address:hover {
    opacity: 0.8;
}

/* SVG and Animation */
.satoshi-line {
    stroke: var(--accent);
    stroke-width: 4.5;
    opacity: 0.9;
}

.moving-dot {
    fill: var(--accent-light);
    opacity: 0.95;
}

/* Navigation Content */
.nav-content {
    display: flex;
    flex-direction: column;
    text-transform: lowercase;
    padding: 0;
    height: calc(100vh - 240px); /* Adjusted to make room for social icons */
    overflow-y: auto;
    margin-right: 0px;
    margin-bottom: 1rem;
    
}

/* Category Styles */
.category-group {
    margin: 0;
    margin-top: -1px; /* Negative margin to overlap borders */
}

.category-group:first-child {
    margin-top: 0; /* Remove negative margin for first item */
}

.category-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(71, 67, 60, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    padding: 1.2rem 1rem;
    width: 100%;
    text-align: left;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative; /* For z-index to work */
}

.category-toggle:hover {
    opacity: 1;
    color: var(--accent);
    /* border-color: var(--accent); */ /* This line is removed or commented out */
    z-index: 1; /* Bring hovered item to front */
}



.category-toggle i {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.category-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
    opacity: 1;
}






.category-toggle[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
    z-index: 1; /* Keep expanded item on top */
}




.category-name {
    font-size: 0.7rem;
    text-transform: lowercase;
    opacity: 0.9;
    font-family: monospace;
    letter-spacing: 0px;
}
.category-items {
    padding-left: 2.5rem;
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

/* Add vertical connecting line */
.category-items::before {
    content: '';
    position: absolute;
    left: 1.25rem; /* Aligns with the dots (half of padding-left) */
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--accent);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

/* Show line when category is expanded */
.category-toggle[aria-expanded="true"] + .category-items::before {
    opacity: 0.4;
}

/* Individual nav items */
.dot-nav-item {
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: transparent;
    display: block;
    text-decoration: none;
    margin: 0.95rem 0;
}

/* Add horizontal connecting line */
.dot-nav-item::after {
    content: '';
    position: absolute;
    left: -16px; /* Length of the horizontal line */
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--accent);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

/* Hover states */
.dot-nav-item:hover::after {
    opacity: 0.6;
}

.dot-nav-item:hover {
    background-color: var(--accent);
}

/* Active states */
.dot-nav-item.active::after {
    opacity: 0.8;
}

.dot-nav-item.active,
.dot-nav-item.active:hover {
    background-color: white !important;
    border-color: var(--accent) !important;
}

/* Label styles */
.dot-nav-item::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    padding: 6px 20px 6px 6px;
    cursor: pointer;
}

.dot-nav-item:hover::before {
    opacity: 1;
}

.dot-nav-item.active::before {
    opacity: 0.8;
    color: var(--accent);
}

.dot-nav-item::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    padding: 6px 20px 6px 6px;
    cursor: pointer;
}

.dot-nav-item:hover::before {
    opacity: 1;
}

.dot-nav-item.active::before {
    opacity: 0.8;
}

.dot-nav-item::after {
   display: none;

}


/* Journey Button */
.begin-journey {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.begin-journey:hover {
    transform: translateY(5px);
}

.begin-journey-text {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.arrow-down {
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translate(-5px, -5px); }
    50% { transform: rotate(45deg) translate(0, 0); }
}

/* Next Section */
.next-section {
    margin-top: 2rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.next-section:hover {
    opacity: 1;
}

/* Utilities */
.denominator {
    color: #ff9f1c;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0rem;
    letter-spacing: 0.05em;
}

.coming-soon {
    margin-top: 4rem;
    color: #4A5568;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.coming-soon:hover {
    opacity: 1;
}

/* Updated Page Container and Content Styles */
.page-container {
    position: relative;
    margin-left: 350px;
    width: calc(100% - 350px);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: rgba(38, 38, 38, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transition: all 0.3s ease-out;
    transform: translateX(0);
}

.page-container.transitioning {
    pointer-events: none;
}

.page-container.home {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
}


/* When sidebar is collapsed */
.dot-nav.collapsed ~ .page-container {
    margin-left: 175px;
    width: calc(100% - 175px);
    transition: all 0.3s ease;
    padding-left: 0;
}

.page-content {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    margin: 0 auto;
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body > .nav-logo {
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        right: auto !important;
        width: 28px !important;
        height: 28px !important;
        z-index: 9999 !important;
    }

    .page-container {
        margin-left: 0;
        width: 100%;
        transform: translateX(0);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }
    
    .page-content {
        padding: 2rem;  /* Consistent padding for content */
    }

    /* Adjust SVG size for mobile */
    .concept-visualization {
        width: 300px;
        height: 300px;
        margin: 2rem auto;
    }

    /* Adjust highlight box padding */
    .highlight-box {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }

    .dot-nav {
        transform: translateX(-350px);
        transition: transform 0.3s ease-out;
    }

    .dot-nav.open {
        transform: translateX(0);
    }

    /* Ensure the button stays visible when menu is open */
    .dot-nav.open ~ .nav-logo {
        left: calc(350px + 1rem) !important;
    }

    .dot-nav.collapsed ~ .nav-logo,
    .dot-nav:not(.open) ~ .nav-logo {
        right: 60px !important;
    }

    .dot-nav.open ~ .page-container {
        transform: translateX(350px);
    }

    .dot-nav ~ .nav-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Content spacing adjustments */
    h2 {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    p {
        padding: 0 1rem;
    }

    /* Nav adjustments */
    .nav-content {
        padding-top: 1rem;
        height: calc(100vh - 240px); /* Adjusted for all sections */
        max-height: calc(100vh - 285px);
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .about-section {
        padding: 10px 0;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(26, 26, 26, 0.3);
    }

    .category-items {
        padding-left: 2rem;
    }

    .category-toggle {
        padding: 0.75rem;
    }

    .dot-nav-item {
        width: 12px;
        height: 12px;
        margin-left: 0;
    }

    .dot-nav-item::before {
        opacity: 0.7;
        left: 24px;
    }

    .social-icons {
        padding: 0.75rem 0;
        margin-bottom: 60px; /* Space for footer */
    }

    .sidebar-footer {
        height: 60px; /* Fixed height for footer */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .page-navigation {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
}

/* Social Icons Styles */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: none;
}

.social-icon svg {
    transition: all 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon:hover svg path,
.social-icon:hover svg rect,
.social-icon:hover svg circle {
    stroke: var(--accent);
    stroke-width: 2.5;
}


canvas#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Page Navigation Styles */
.page-navigation {
    /* display: flex; */
    display: none !important;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 159, 28, 0.2);
    font-family: Menlo, monospace;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 159, 28, 0.1);
}

.nav-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.nav-text {
    font-size: 0.875rem;
    text-transform: lowercase;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px; /* Ensures consistent spacing */
}

.text-right {
    align-items: flex-end; /* Right aligns the text */
}

.text-left {
    align-items: flex-start; /* Left aligns the text */
}


.nav-direction {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 0.75rem;
}

.nav-link:hover .nav-direction {
    opacity: 1;
}

.nav-arrow {
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-arrow {
    transform: translateX(-2px);
}

.next-link:hover .nav-arrow {
    transform: translateX(2px);
}

.nav-page-name {
    color: var(--accent);
}

.nav-link:hover .nav-page-name {
    color: var(--text-primary);
}

.highlight-box a {
    color: var(--text-primary);  /* This will make links white */
    transition: opacity 0.3s ease;
}

.highlight-box a:hover {
    opacity: 0.8;               /* Slight fade on hover */
}

/* About section styles */
.about-section {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.about-section a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-family: Menlo, monospace;
}

.about-section a:hover {
    opacity: 1;
    color: white; /* Changes to white on hover */
    transform: scale(1.02); /* Subtle scale effect */
}

.begin-journey-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-top: 2rem;
    font-family: Menlo, monospace;
}

.begin-journey-link,
.begin-journey-link:visited,
.begin-journey-link:hover,
.begin-journey-link:active {
    color: #FF9F1C;
    opacity: 0.8;
    text-decoration: none;
}

.begin-journey-link:hover {
    opacity: 1;
}

.journey-text {
    font-size: 0.875rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.journey-arrow {
    transition: transform 0.5s ease;
}

.begin-journey-link:hover .journey-arrow {
    transform: translateX(8px);
}