

#home-page .about-description p,
#home-page p.white-text {
    color: white;
}

#latent-cta::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-pattern);
    background-size: auto;
    background-position: 0 0;
    background-repeat: repeat;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
    opacity: 0.6;
}

/* Content wrapper - controls max-width on big screens */
.content-wrapper {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#latent-cta {
    position: relative;
    padding: 20px;
    text-align: center;
    background: rgba(13, 13, 13, 0.16);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6) inset;
    opacity: 0.9;
    transition: all 0.3s ease;
}
#latent-cta:hover {
    opacity: 1;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.7) inset;
}

#latent-cta p{
    position: relative;
    z-index: 2;
    font-weight: 700;
    transition: all 0.3s ease;
    color: white;
    margin: 0 0 1rem;
}

#latent-cta:hover p{
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
}


#latent-cta button {
    position: relative;
    z-index: 2;
    background-color: var(--single-bg-color-trans);
    color: black;
    cursor: pointer;
    border: none;
}

#not-found-message::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-pattern);
    background-size: auto;
    background-position: 0 0;
    background-repeat: repeat;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
    opacity: 0.6;
}

#not-found-message {
    position: relative;
    padding: 20px;
    text-align: center;
    background: rgba(141, 140, 140, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6) inset;
    opacity: 0.9;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

#not-found-message:hover {
    opacity: 1;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.7) inset;
}

#not-found-message h1 {
    position: relative;
    z-index: 2;
    font-weight: 700;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

#not-found-message p {
    position: relative;
    z-index: 2;
    font-weight: 700;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

#not-found-message:hover h1,
#not-found-message:hover p {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
}

#not-found-message:hover button {
    background: var(--single-bg-color);
    color: var(--single-text-color);
    cursor: pointer;
}

#not-found-message button {
    position: relative;
    z-index: 2;
    background: var(--single-bg-color-trans);
    color: var(--single-text-color);
    cursor: pointer;
}

#not-found-message .button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

#not-found-message .button-group .about-button {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    height: auto;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#not-found-message .about-button-primary {
    flex: 1;
    min-width: 200px;
}

@media (min-width: 1023px) {
    #home-page .about-content {
        padding: 0 20px;
    }

} 



/* Semitransparent glass overlay for article container */
.search-article-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

/* Search suggestions container */
.search-suggestions {
    position: fixed;
    top: calc(var(--navbar-height, 60px) + var(--search-overlay-height, 60px));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1024px;
    bottom: 0;
    height: calc(100vh - var(--navbar-height, 60px) - var(--search-overlay-height, 60px));
    max-height: calc(100vh - var(--navbar-height, 60px) - var(--search-overlay-height, 60px));
    overflow-y: auto;
    z-index: 1001;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

/* Search suggestion card */
.search-suggestion-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    border-color: var(--article-color-dimmed, rgba(255, 255, 255, 0.1));
}

.search-suggestion-card:last-child {
    margin-bottom: 0;
}

.search-suggestion-card:hover,
.search-suggestion-card.selected {
    background: rgba(52, 52, 52, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--article-color, rgba(255, 255, 255, 0.2));
}

/* Suggestion thumbnail */
.suggestion-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.suggestion-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Suggestion content */
.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.suggestion-title {
    color: var(--article-color, #f2f2f2);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
    opacity: 0.85;
}

.search-suggestion-card:hover .suggestion-title,
.search-suggestion-card.selected .suggestion-title {
    opacity: 1;
}

.suggestion-description {
    color: var(--article-color, #d0d0d0);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.search-suggestion-card:hover .suggestion-description,
.search-suggestion-card.selected .suggestion-description {
    opacity: 0.85;
}

/* No suggestions message */
.search-no-suggestions {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-suggestions-header {
    color: rgba(242, 242, 242, 0.7);
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
}

.no-suggestions-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.no-suggestions-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(242, 242, 242, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.no-suggestions-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(242, 242, 242, 0.95);
    opacity: 1;
    transform: translateY(-1px);
}

/* No results error message */
.search-no-results {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.no-results-error {
    color: rgba(255, 100, 100, 0.9);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 6px;
}


/* Article container with grey background */
.article-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--single-bg-color);
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    margin-top: 0;
    opacity: 0.9;
    flex: 1 0 auto;
}

#home-page .article-container {
    opacity: 1;
    background-color: var(--single-bg-color-trans);
}

#home-page .article-container .about-body {
    padding: 0;
}

/* Project search hints */
.project-search-hints {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-search-hints p {
    color: var(--single-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    opacity: 0.75;
}

.project-search-hints p:first-child {
    font-weight: 500;
    opacity: 0.85;
    font-size: 1rem;
}

.search-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin: 0 4px;
}

.search-icon-inline .fab-icon {
    width: 100%;
    height: 100%;
}

.search-icon-inline .fab-icon-stroke {
    stroke: var(--single-text-color);
    stroke-width: 1.2;
    fill: none;
    opacity: 0.85;
}

/* Projects filters */
.projects-filters {
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects-filters-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.projects-filters-message {
    color: var(--single-text-color);
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    opacity: 0.85;
    font-weight: 400;
}

.projects-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Contact section */
.contact-section {
    width: 100%;
    padding: 2.5rem;
    background-color: var(--single-bg-color);
    text-align: center;
    z-index: 10;
    opacity: 0.95;
}

.contact-section h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.contact-section p {
    color: var(--single-text-color);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.85;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--single-text-color);
    text-decoration: none;
    transition: all 0.25s ease;
    width: 100%;
    justify-content: center;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-link-icon .social-icon {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .contact-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-link {
        flex: 0 1 auto;
        min-width: 200px;
    }
}

/* Article footer */
.article-footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #d0d0d0;
    background-color: var(--single-bg-color);
    font-size: 0.875rem;
    flex-shrink: 0;
    z-index: 10;
}

.article-footer p {
    margin: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-link {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-social .social-link {
    color: #d0d0d0;
    transition: color 0.2s ease;
}

.footer-social .social-link:hover {
    color: #ffffff;
}

.footer-social .social-icon {
    width: 20px;
    height: 20px;
}

/* Typography */
.article-container h1 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.article-container .about-hero h1{
    margin-bottom: 0;
}

.single-article-container p {
    color: #d0d0d0;
    margin: 1rem 0 1rem;
}

.article-container p a,
.article-container ul a,
.article-container ol a {
    color: inherit;
    background-color: #ffffff1a;
    padding: 0 0.2rem;
}

.article-container ul, .article-container ol {
    margin: 0.5rem 2rem;
}


.article-container p a:hover {
    background-color: #ffffff33;
}

.article-container code {
    font-family: monospace;
    background-color: #3e3e3ec4;
    padding: 0 0.2rem;
 }

.article-container img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Article pills */
.article-pills {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-pills-section {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-pills-label {
    color: var(--single-text-color);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding-top: 0.25rem;
}

.article-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-pill, .projects-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 11px;
    font-size: 0.75rem;
    color: var(--single-bg-color);
    background:  var(--single-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
}

.article-pill:hover, .projects-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.article-pill-technology, .projects-pill-technology {
    font-weight: 700;
    opacity: 0.9;
}

.article-pill-tag, .projects-pill-tag {
    font-weight: 400;
}

.after-article-container {
    margin-top: 1px;
    padding: 2.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--single-bg-color-trans);
}

.after-article-container h2 {
    margin-bottom: 1.2rem;
    color: rgba(168, 168, 168, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
}

#similar-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
}

#similar-pills-container .no-suggestions-item {
    text-decoration: none;
    display: inline-block;
}

#container-3d {
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    cursor: pointer;
    /* align-items: center; */
}

#container-3d canvas {
    border-radius: 10px;
    opacity: 1.1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#container-3d:hover canvas {
    opacity: 0.6;
    transform: scale(0.98);
}

#container-3d::before {
    content: 'Open 3D viewer';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#container-3d:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}


/*  ============ Responsive adjustments ============ */

@media (max-width: 1024px) {
    .content-wrapper {
        width: 100%;
        max-width: 80%;
    }
    
    .search-suggestions {
        max-width: 80%;
    }
}


@media (max-width: 600px) {
    body {
        padding: 0 0.5rem;
    }
    
    .content-wrapper {
        max-width: 96%;
    }
    
    .article-container {
        padding: 1.5rem;
    }
    
    .article-container h1 {
        font-size: 1.5rem;
    }
    
    .projects-filters {
        gap: 1rem;
    }
    
    .projects-filters-message {
        font-size: 0.9rem;
    }
    
    .article-pill, .projects-pill {
        padding: 0.15rem 0.4rem;
        border-radius: 8px;
        font-size: 0.65rem;
    }
    
    
    .project-search-hints p {
        font-size: 0.85rem;
    }
    
    .project-search-hints p:first-child {
        font-size: 0.9rem;
    }
    
    .search-icon-inline {
        width: 14px;
        height: 14px;
    }
    
    .search-suggestions {
        max-width: 96%;
        padding: 0 1rem;
    }
    
    .search-suggestion-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .suggestion-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .suggestion-title {
        font-size: 1rem;
    }
    
    .suggestion-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .search-suggestions {
        padding: 0 1rem;
    }
    
    .search-suggestion-card {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .suggestion-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .suggestion-title {
        font-size: 0.95rem;
    }
    
    .suggestion-description {
        font-size: 0.8rem;
    }
    .article-pill, .projects-pill {
        padding: 0.1rem 0.3rem;
        border-radius: 6px;
        font-size: 0.6rem;
    }
    .article-pills-label {
        font-size: 0.8rem;
    }
}


/* Responsive adjustments */
@media (max-width: 320px) {
    body {
        padding: 0 0.5rem;
    }
    
    .content-wrapper,
    .after-article-container {
        max-width: 96%;
    }
}