/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin: 5% auto;
    padding: 48px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.modal-content a {
    pointer-events: auto;
    cursor: pointer;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-primary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
}

.close:hover,
.close:focus {
    opacity: 1;
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

/* Enhanced Modal Content Styles */
.project-modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 0, 128, 0.2);
}

.project-icon-large {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.project-role {
    color: rgba(255, 0, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 10px;
}

.project-description {
    background: rgba(255, 0, 128, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid rgba(255, 0, 128, 0.5);
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(0, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.modal-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(0, 255, 255, 0.2));
    border: 1px solid rgba(255, 0, 128, 0.5);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.modal-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4);
}

/* Primary modal button - Launch Dapp style */
.modal-btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 255, 0.2)) !important;
    border-color: rgba(0, 255, 136, 0.6) !important;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.5), rgba(0, 255, 255, 0.3)) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Secondary modal button - Docusaurus style */
.modal-btn-secondary {
    background: rgba(0, 255, 255, 0.15) !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
}

.modal-btn-secondary:hover {
    background: rgba(0, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.project-links {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Navigation Styles */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(6, 0, 3, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
    font-weight: 400;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
    color: var(--blue);
}

/* Adjust main content for fixed nav */
body {
    padding-top: 80px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--blue);
    border: 4px solid var(--black);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--gray);
    position: relative;
    border-radius: 6px;
}

.timeline-date {
    color: var(--blue);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.timeline-content h4 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 16px;
    opacity: 0.8;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    padding: 30px;
    background-color: var(--gray);
    border-radius: 8px;
    border: 1px solid rgba(142, 110, 234, 0.2);
}

.value-item h4 {
    color: var(--blue);
    margin-bottom: 15px;
    font-size: 20px;
}

/* About Hero */
.about-hero {
    text-align: center;
    padding: 120px 40px 80px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--blue);
    margin-top: 20px;
    opacity: 1;
}

/* Story Section */
.story-content p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
}

/* Mission Section */
.mission-statement {
    background-color: var(--gray);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--blue);
}

.mission-statement h3 {
    color: var(--blue);
    margin-bottom: 20px;
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px 15px;
        width: 95%;
        max-width: 95vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .modal {
        padding: 10px;
        box-sizing: border-box;
    }

    .resume-modal-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .resume-modal-content iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tech-stack-grid {
        gap: 8px;
    }

    .tech-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}


/* Glossary Actions Fix */
.glossary-actions {
    margin-top: 20px;
    position: relative;
    z-index: 10001;
}

.glossary-actions a,
.glossary-actions button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10002;
}

.glossary-actions a:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.modal-actions a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Glossary and Term Modal Width Fixes */
.glossary-entry,
.glossary-modal,
.term-modal {
    max-width: 500px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Make modal-content narrower when showing glossary terms */
.modal-content:has(.term-modal),
.modal-content:has(.glossary-modal),
.modal-content:has(.glossary-entry) {
    max-width: 550px !important;
    width: auto !important;
}

.glossary-entry h3,
.term-modal h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.glossary-entry p,
.term-modal p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.modal-actions a:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

/* Wallet Status Badge */
.wallet-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wallet-status-badge.disconnected {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
}

.wallet-status-badge.connected {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.quick-donate-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-donate-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Donate Modal Styles */
.donate-modal {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Constrain modal-content when showing donate modal */
.modal-content:has(.donate-modal) {
    max-width: 650px !important;
    width: auto !important;
}

/* Constrain modal-content when showing ACIM modal */
.modal-content:has(.acim-modal) {
    max-width: 720px !important;
    width: auto !important;
}

/* Constrain modal-content when showing meditation modal */
.modal-content:has(.meditation-modal) {
    max-width: 720px !important;
    width: auto !important;
}

/* Constrain modal-content when showing manifesto modal */
.modal-content:has(.manifesto-modal-full) {
    max-width: 720px !important;
    width: auto !important;
}

.donate-modal h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.donate-modal p {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.payment-section h4 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.payment-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

.payment-btn.paypal-btn {
    background: linear-gradient(135deg, #003087, #009cde);
    color: white;
    border: none;
}

.payment-btn.paypal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 156, 222, 0.4);
}

.payment-btn.venmo-btn {
    background: linear-gradient(135deg, #008CFF, #3D95CE);
    color: white;
    border: none;
}

.payment-btn.venmo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 140, 255, 0.4);
}

.crypto-addresses {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crypto-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.crypto-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.address-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.address-container input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 255, 255, 0.3));
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    color: var(--accent-cyan);
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.copy-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(0, 255, 255, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

/* Ensure all modal buttons are clickable */
.modal-content button,
.modal-content a,
.modal-content input {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 100;
}

.modal-content input[type="text"] {
    cursor: text !important;
}

.resume-modal-content {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.resume-modal-content iframe {
    pointer-events: auto !important;
    user-select: auto !important;
    position: relative;
    z-index: 50;
}

.modal-content {
    overflow: visible !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10001;
}

.modal {
    pointer-events: auto !important;
    z-index: 10000 !important;
    cursor: pointer;
}

/* Ensure modal content doesn't pass clicks through to backdrop */
.modal-content {
    cursor: default;
}

#modal-body {
    position: relative;
    z-index: 10002;
}

#modal-body * {
    position: relative;
}

@media (max-width: 768px) {
    .resume-modal-content iframe {
        height: 60vh !important;
    }
}

/* Blog Post Modal Styling */
.blog-post-full {
    padding: 20px;
    max-width: 100%;
}

.blog-post-full .post-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 20px;
}

.blog-post-full .post-header h2 {
    color: #00ffff;
    font-size: 1.8rem;
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.blog-post-full .post-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(255, 0, 128, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ff0080;
}

.blog-post-full .post-meta-full {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.blog-post-full .post-content {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-full .post-content p {
    margin-bottom: 1.2em;
}

.blog-post-full .post-content strong {
    color: #00ffff;
}

.blog-post-full .post-content li {
    margin-left: 20px;
    margin-bottom: 0.5em;
    list-style-type: disc;
}

.blog-post-full .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.blog-post-full .post-tag {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.4);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #00ffff;
}

/* Cash App Button */
.cashapp-btn {
    background-color: #00D632 !important; /* Official Brand Green */
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.cashapp-btn:hover {
    background-color: #00a82a !important; /* Darker green for hover */
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 214, 50, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Venmo Button */
.venmo-btn {
    background-color: #008CFF !important; /* Official Venmo Blue */
    color: #ffffff !important;
    border: none !important;
}

.venmo-btn:hover {
    background-color: #0070cc !important;
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Ensures the icon and text are perfectly centered */
.payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Payment button icons */
.payment-btn i {
    font-size: 1.2rem;
}
