/* ncbd.dev - Mid-Century Distributed Design */
/* Palette: gold-black-luxury */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0D0D0D;
    color: #C8B89A;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Organic Blobs */
.blob {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.blob.visible {
    opacity: 1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: 5%;
    right: 5%;
}

.blob-2 {
    width: 280px;
    height: 280px;
    top: 45%;
    left: 2%;
}

.blob-3 {
    width: 160px;
    height: 160px;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: #1A1A1A;
    border-top: 4px solid #D4A843;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(-260px);
    transition: transform 500ms ease-out;
}

#sidebar.visible {
    transform: translateX(0);
}

.sidebar-inner {
    padding: 40px 24px;
}

.sidebar-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #D4A843;
    letter-spacing: 0.01em;
    margin-bottom: 48px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 16px;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #C8B89A;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 300ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #D4A843;
    transition: width 300ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: #D4A843;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.tapered-legs {
    width: 100%;
    height: 40px;
    display: block;
    padding: 0 0 8px 0;
}

/* Main Content */
#main-content {
    margin-left: 260px;
    padding: 80px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.content-section {
    max-width: 720px;
    width: 100%;
    margin-bottom: 48px;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Domain Title */
.domain-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #D4A843;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    overflow: hidden;
}

.domain-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.domain-name .letter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms ease, transform 300ms ease;
}

/* Tagline */
.tagline {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
    color: #C8B89A;
    opacity: 0;
    transition: opacity 400ms ease;
    margin-bottom: 48px;
}

.tagline.visible {
    opacity: 1;
}

/* Headings */
h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #D4A843;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

p {
    margin-bottom: 20px;
}

/* Mono text */
.mono-text {
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    font-size: 14px;
    color: #8B7355;
    line-height: 2;
    padding: 24px;
    background-color: #1A1A1A;
    border-left: 3px solid #D4A843;
    margin: 24px 0;
}

/* Line Illustrations */
.line-illustration {
    width: 100%;
    max-width: 400px;
    margin: 32px auto;
    display: block;
}

.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.line-illustration.drawn .draw-path {
    stroke-dashoffset: 0;
}

.node-circle {
    transform-origin: center;
    transform: scale(1);
    transition: transform 400ms ease;
}

.line-illustration.drawn .node-circle {
    animation: nodePulse 400ms ease 1.5s both;
}

@keyframes nodePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Footer */
#footer {
    width: 100%;
    height: 120px;
    background-color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 260px;
    position: relative;
    z-index: 1;
}

.footer-starburst {
    width: 60px;
    height: 60px;
    animation: starburstRotate 60s linear infinite;
}

@keyframes starburstRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        width: 200px;
        transform: translateX(-200px);
    }

    #sidebar.visible {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
        padding: 40px 20px;
    }

    #footer {
        margin-left: 0;
    }

    .domain-name {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }
}
