/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #1A1A2E;
    border-radius: 0 0 20px 20px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    box-shadow: 0 0 30px rgba(26, 26, 46, 0.8), 0 0 20px rgba(79, 207, 141, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;
}

/* Navigation items container */
.nav-items {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Individual navigation item */
.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

/* Navigation icon */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation text */
.nav-text {
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

/* PerpDEX button */
.perpdex-button {
    background-color: #2A2A4A;
    border-radius: 15px;
    padding: 12px 20px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perpdex-button:hover {
    background-color: #3A3A5A;
    transform: translateY(-1px);
}

/* LIVE tag */
.live-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #00FF00;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        padding: 15px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-items {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .perpdex-button {
        margin-top: 10px;
    }
}

/* Project Documentation Section */
.project-docs-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    padding: 200px 20px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid #4FCF8D;
    position: relative;
}

.project-docs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.docs-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.docs-title {
    font-size: 4rem;
    font-weight: 800;
    color: #4FCF8D;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.docs-description {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 50px;
}

.github-button {
    background-color: #1A1A2A;
    border: 1px solid #4FCF8D;
    border-radius: 12px;
    padding: 15px 25px;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.github-button:hover {
    background-color: #2A2A3A;
    border-color: #5FDF9D;
    transform: translateY(-2px);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.github-icon {
    color: #FFFFFF;
    flex-shrink: 0;
}

.button-text {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.external-icon {
    color: #FFFFFF;
    flex-shrink: 0;
}

/* Responsive Project Documentation */
@media (max-width: 768px) {
    .project-docs-section {
        padding: 100px 15px 30px;
        min-height: calc(100vh - 140px);
    }
    
    .docs-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .docs-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .github-button {
        padding: 12px 20px;
    }
    
    .button-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .docs-title {
        font-size: 2rem;
    }
    
    .docs-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .github-button {
        padding: 10px 18px;
    }
    
    .button-content {
        gap: 10px;
    }
    
    .button-text {
        font-size: 0.8rem;
    }
}

/* Completed Features Section */
.completed-features-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border-bottom: 1px solid #4FCF8D;
    padding: 80px 20px;
    position: relative;
}

.completed-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.features-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.features-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.features-icon {
    width: 40px;
    height: 40px;
    background-color: #4FCF8D;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.features-column {
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

.check-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #4FCF8D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FCF8D;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Responsive Completed Features */
@media (max-width: 768px) {
    .completed-features-section {
        padding: 60px 15px;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .features-header {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .features-icon {
        width: 35px;
        height: 35px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-list li {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    
    .check-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .completed-features-section {
        padding: 40px 10px;
    }
    
    .features-title {
        font-size: 1.8rem;
    }
    
    .features-header {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .features-icon {
        width: 30px;
        height: 30px;
    }
    
    .features-grid {
        gap: 25px;
    }
    
    .features-list li {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .check-icon {
        width: 16px;
        height: 16px;
    }
}

/* Technology Stack Section */
.tech-stack-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border-bottom: 1px solid #4FCF8D;
    padding: 80px 20px;
    position: relative;
}

.tech-stack-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.tech-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FCF8D;
}

.tech-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.tech-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    background-color: #1A1A2A;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 207, 141, 0.1);
}

.card-icon {
    color: #4FCF8D;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.card-description {
    color: #CCCCCC;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Technology Stack */
@media (max-width: 768px) {
    .tech-stack-section {
        padding: 60px 15px;
    }
    
    .tech-title {
        font-size: 2rem;
    }
    
    .tech-header {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
    }
    
    .tech-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-card {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-section {
        padding: 40px 10px;
    }
    
    .tech-title {
        font-size: 1.8rem;
    }
    
    .tech-header {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .tech-icon {
        width: 30px;
        height: 30px;
    }
    
    .tech-cards {
        gap: 15px;
    }
    
    .tech-card {
        padding: 20px 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
}

/* Design Invariants Section */
.design-invariants-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border-bottom: 1px solid #4FCF8D;
    padding: 80px 20px;
    position: relative;
}

.design-invariants-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.invariants-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.invariants-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.invariants-icon {
    color: #4FCF8D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invariants-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.invariants-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.invariant-subsection {
    flex: 1;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4FCF8D;
    margin-bottom: 20px;
}

.invariant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invariant-list li {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.invariant-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4FCF8D;
    font-weight: bold;
}

/* Anti-Toxicity Mechanisms Section */
.anti-toxicity-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border-bottom: 1px solid #4FCF8D;
    padding: 80px 20px;
    position: relative;
}

.anti-toxicity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.toxicity-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.toxicity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.toxicity-icon {
    color: #4FCF8D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toxicity-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mechanisms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mechanism-card {
    background-color: #1A1A2A;
    border: 1px solid #4FCF8D;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.mechanism-card:hover {
    border-color: #5FDF9D;
    transform: translateY(-3px);
}

.mechanism-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4FCF8D;
    margin-bottom: 12px;
}

.mechanism-description {
    color: #CCCCCC;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Back to Home Button */
.back-button-container {
    background-color: #1A1A2E;
    padding: 40px 20px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1A1A2A;
    border: 1px solid #4FCF8D;
    border-radius: 8px;
    padding: 12px 20px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #2A2A3A;
    border-color: #5FDF9D;
    transform: translateY(-2px);
}

.back-button svg {
    color: #4FCF8D;
}

/* Responsive Design Invariants & Anti-Toxicity */
@media (max-width: 768px) {
    .design-invariants-section,
    .anti-toxicity-section {
        padding: 60px 15px;
    }
    
    .invariants-title,
    .toxicity-title {
        font-size: 2rem;
    }
    
    .invariants-header,
    .toxicity-header {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .invariants-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .subsection-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .invariant-list li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .mechanisms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mechanism-card {
        padding: 20px;
    }
    
    .mechanism-title {
        font-size: 1.2rem;
    }
    
    .mechanism-description {
        font-size: 0.9rem;
    }
    
    .back-button-container {
        padding: 30px 15px;
    }
    
    .back-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .design-invariants-section,
    .anti-toxicity-section {
        padding: 40px 10px;
    }
    
    .invariants-title,
    .toxicity-title {
        font-size: 1.8rem;
    }
    
    .invariants-header,
    .toxicity-header {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .invariants-content {
        gap: 25px;
    }
    
    .subsection-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .invariant-list li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .mechanisms-grid {
        gap: 15px;
    }
    
    .mechanism-card {
        padding: 15px;
    }
    
    .mechanism-title {
        font-size: 1.1rem;
    }
    
    .mechanism-description {
        font-size: 0.85rem;
    }
    
    .back-button-container {
        padding: 25px 10px;
    }
    
    .back-button {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Architecture Section */
.architecture-section {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border-bottom: 1px solid #4FCF8D;
    padding: 80px 20px;
    position: relative;
}

.architecture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.architecture-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.architecture-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.architecture-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.architecture-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.architecture-intro {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.5;
}

.programs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.program-box {
    background-color: #1A1A2A;
    border: 1px solid #4FCF8D;
    border-radius: 12px;
    padding: 25px;
    transition: border-color 0.3s ease;
}

.program-box:hover {
    border-color: #5FDF9D;
}

.program-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4FCF8D;
    margin-bottom: 10px;
}

.program-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #AAAAAA;
    margin-bottom: 15px;
    word-break: break-all;
}

.program-description {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.5;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #FFFFFF;
    font-size: 0.9rem;
    line-height: 1.4;
}

.check-icon {
    color: #4FCF8D;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-name {
    font-weight: 600;
    color: #FFFFFF;
}


/* Mobile View - Show background image only */
@media (max-width: 768px) {
    /* Hide all content */
    nav, section, div, main, article, aside, header, footer, .navbar, .project-docs-section, .architecture-section, .completed-features-section, .tech-stack-section, .design-invariants-section, .anti-toxicity-section, .back-button-container {
        display: none !important;
    }
    
    /* Set up the mobile view with background image */
    html, body {
        background: url('mb-screen-bg.png') center center / cover no-repeat !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        z-index: 999999 !important;
    }
}