/* Enhanced Styles for Token Project Section */

.token-project-enhanced {
    padding: 80px 0;
    margin-bottom: 80px;
}

.project-subsection {
    background-color: var(--accent-color);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); /* Slightly deeper shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smoother transition */
    position: relative; /* Needed for pseudo-element */
    overflow: hidden; /* Ensure pseudo-element stays within bounds */
}

/* Add a subtle top border accent */
.project-subsection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Height of the accent line */
    background: linear-gradient(90deg, rgba(0, 170, 255, 0.5), rgba(0, 170, 255, 0)); /* Gradient accent */
}

.project-subsection:hover {
    transform: translateY(-8px); /* Slightly more lift */
    box-shadow: 0 10px 24px rgba(0, 170, 255, 0.15); /* Brighter glow on hover */
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.0rem; /* Increased size */
    color: var(--primary-color);
    margin-bottom: 35px; /* Increased spacing */
    font-weight: 600;
    line-height: 1.3; /* Adjusted line height */
}

.subsection-icon {
    /* Using Unicode symbols */
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color); /* Match title color */
}

/* Specific Icons (Using Unicode) */
.icon-mission::before { content: "\25CE"; } /* Bullseye ◎ */
.icon-products::before { content: "\2699"; } /* Gear ⚙ */
.icon-roadmap::before { content: "\1F4CD"; } /* Round Pushpin 📍 */
.icon-impact::before { content: "\1F310"; } /* Globe with Meridians 🌐 */
.icon-security::before { content: "\1F6E1"; } /* Shield 🛡 */

/* Enhanced paragraph styling */
.project-subsection p {
    line-height: 1.8; /* Improved readability */
    margin-bottom: 1.2em; /* Consistent paragraph spacing */
    color: #e0e0e0; /* Slightly lighter than default body text */
}

.mission-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 25px; /* Increased padding */
    margin: 35px 0; /* Adjusted margin */
    font-style: italic;
    font-size: 1.15rem; /* Slightly larger quote */
    color: #f0f0f0; /* Lighter text for quote */
    line-height: 1.7;
}

.project-table {
    width: 100%;
    margin-top: 25px; /* Adjusted spacing */
    border-collapse: separate; /* Use separate for border-radius */
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; /* Clip content to border-radius */
    font-size: 0.95rem;
}

.project-table th,
.project-table td {
    padding: 14px 18px; /* Adjusted padding */
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle; /* Ensure vertical alignment */
}

.project-table th {
    background: linear-gradient(rgba(0, 170, 255, 0.15), rgba(0, 170, 255, 0.05)); /* Subtle gradient */
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color); /* Use primary color for border */
    font-size: 1rem; /* Slightly larger header text */
}

.project-table td {
     color: #dcdcdc; /* Slightly lighter table data text */
}

.project-table tbody tr:last-child td {
    border-bottom: none; /* Remove border from last row */
}

.project-table tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle striping */
}

.project-table tbody tr:hover {
    background-color: rgba(0, 170, 255, 0.08); /* Slightly stronger hover highlight */
}

.impact-list,
.security-list {
    list-style: none;
    padding-left: 5px; /* Slight indent */
    margin-top: 20px; /* Spacing above list */
}

.impact-list li,
.security-list li {
    margin-bottom: 15px; /* Increased spacing between items */
    position: relative;
    padding-left: 30px; /* Increased padding for icon */
    line-height: 1.6; /* Improved line height for list items */
    color: #e0e0e0; /* Match paragraph color */
}

.impact-list li::before,
.security-list li::before {
    content: "✓"; /* Checkmark */
    color: var(--primary-color);
    position: absolute;
    left: 5px; /* Align icon */
    top: 2px; /* Fine-tune vertical alignment */
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive Table */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 25px; /* Add margin to wrapper */
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Remove border from table inside wrapper */
.table-wrapper .project-table {
    border: none;
    margin-top: 0;
    border-radius: 0;
}

/* Adjust wrapper border radius if table has one */
.table-wrapper .project-table:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.table-wrapper .project-table:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


@media (max-width: 768px) {
    .project-subsection {
        padding: 30px;
    }
    .subsection-title {
        font-size: 1.8rem; /* Adjusted responsive size */
    }
    .project-table {
        font-size: 0.9rem;
    }
    .project-table th,
    .project-table td {
        padding: 12px 14px; /* Adjusted padding */
    }
}

@media (max-width: 480px) {
    .project-subsection {
        padding: 25px 20px; /* Adjusted padding */
    }
    .subsection-title {
        font-size: 1.6rem; /* Adjusted responsive size */
        gap: 10px;
    }
    .project-table {
        font-size: 0.85rem;
    }
    .project-table th,
    .project-table td {
        padding: 10px 12px; /* Adjusted padding */
    }
    .impact-list li::before,
    .security-list li::before {
        font-size: 1em; /* Adjusted icon size */
        top: 1px;
    }
    .impact-list li,
    .security-list li {
        padding-left: 25px; /* Adjust padding */
    }
}




/* Interactive Roadmap Table Rows */
.project-table tbody tr {
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; /* Add transform transition */
}

.project-table tbody tr:hover {
    background-color: rgba(0, 170, 255, 0.12); /* Slightly darker hover highlight */
    transform: scale(1.02); /* Slightly scale up the row on hover */
    cursor: default; /* Indicate it's not clickable, just interactive */
}

/* Ensure hover effect works well with existing styles */
.project-table tbody tr:nth-of-type(even):hover {
    background-color: rgba(0, 170, 255, 0.12); /* Override even row background on hover */
}




/* Core Products Card Layout */
.product-cards-grid {
    margin-top: 30px; /* Add some space above the cards */
}

.product-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    height: 100%; /* Make cards in the same row equal height */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.1);
}

.product-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-description {
    color: #dcdcdc;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take up remaining space */
}



/* Core Products Card Layout */
.core-products-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: #2a2a3a; /* Slightly lighter than section background */
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card h4 {
    color: #00AAFF; /* Accent color */
    margin-bottom: 0.75rem;
    font-weight: 600; /* Poppins semi-bold */
}

.product-card p {
    color: #ccc; /* Lighter text color */
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

/* Ensure icons are vertically aligned with headings */
#token-project h3 i {
    margin-right: 0.5rem;
    vertical-align: middle;
    font-size: 1.2em; /* Adjust icon size if needed */
    color: #00AAFF; /* Match accent color */
}

/* List styling with icons */
.impact-list li i,
.security-list li i {
    color: #00AAFF; /* Accent color for checkmarks */
    margin-right: 0.5rem;
}

/* Roadmap Table Hover Effect */
.roadmap-table tbody tr {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.roadmap-table tbody tr:hover {
    background-color: #3a3a4a; /* Slightly lighter background on hover */
    transform: scale(1.01);
    cursor: default; /* Indicate non-clickable hover */
}



/* Roadmap Timeline Styling */
.roadmap-timeline {
    position: relative;
    padding: 2rem 0;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* The vertical line */
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Adjust based on dot size and position */
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00AAFF; /* Accent color */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 50px; /* Space for the dot and line */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 10px; /* Center the dot on the line (20px - (20px / 2)) */
    top: 5px; /* Adjust vertical alignment */
    width: 20px;
    height: 20px;
    background-color: #1a1a2e; /* Dark background */
    border: 3px solid #00AAFF; /* Accent color border */
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: #2a2a3a; /* Slightly lighter background */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #444;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.25);
}

.timeline-date {
    display: block;
    font-weight: 600; /* Poppins semi-bold */
    color: #00AAFF; /* Accent color */
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Remove the old table container if it exists */
.roadmap-table-container {
    display: none; /* Hide the old table structure */
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 15px; /* Adjust line position */
    }
    .timeline-item {
        padding-left: 40px; /* Adjust padding */
    }
    .timeline-dot {
        left: 5px; /* Adjust dot position */
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .roadmap-timeline::before {
        left: 10px;
    }
    .timeline-item {
        padding-left: 30px;
    }
    .timeline-dot {
        left: 0px;
        width: 16px;
        height: 16px;
    }
    .timeline-content {
        padding: 0.8rem 1rem;
    }
    .timeline-date {
        font-size: 1rem;
    }
}


/* Simulation Details Styling */
.simulation-details {
    background-color: #1f1f38; /* Slightly darker than card background */
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 0.9rem;
    color: #bbb;
}

.simulation-details ol,
.simulation-details ul {
    padding-left: 1.5rem; /* Indent lists */
    margin-bottom: 1rem;
}

.simulation-details li {
    margin-bottom: 0.5rem;
}

.simulation-details strong {
    color: #e0e0e0; /* Slightly brighter for emphasis */
}

.simulation-details em {
    color: #00AAFF; /* Accent color for sub-points/examples */
    font-style: normal;
}

.simulation-details p:last-child em {
    color: #ccc; /* Final summary emphasis */
    font-style: italic;
}

/* Learn More Button */
.btn-learn-more {
    background-color: #007bff; /* Bootstrap primary blue */
    border-color: #007bff;
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-learn-more:hover {
    background-color: #0056b3;
    border-color: #004085;
    color: #fff;
}

.btn-learn-more .bi {
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* Adjust card padding if needed to accommodate button */
.product-card {
    padding-bottom: 1rem; /* Ensure space for button */
}

