/* Main Content & Cards - Subtle iOS Glass Effect */
section {
    background: rgba(255, 255, 255, 0.04); /* Light mode - very subtle white glass */
    backdrop-filter: blur(5px) saturate(120%) brightness(1.01);
    -webkit-backdrop-filter: blur(5px) saturate(120%) brightness(1.01);
    padding: clamp(15px, 3vw, 30px); /* Reduced fluid padding */
    border-radius: 12px;
    border: 2px solid transparent; /* Thicker border for neon effect */
    box-shadow: var(--aura-glow);
    transition: all 0.3s ease;
}

/* Contact Section with Profile Image */
.contact-section {
    background: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    grid-column: 1;
    grid-row: 1;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px; /* soft rectangular, same as cards */
    object-fit: cover;
    border: none; /* remove all borders */
    background: none; /* pure image, no background */
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.15), /* inner shadow for depth */
        0 1px 2px rgba(0, 0, 0, 0.1); /* subtle outer shadow */
    transition: box-shadow 0.3s ease;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.profile-photo:hover {
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.2), /* slightly darker inner shadow */
        0 2px 8px rgba(0, 0, 0, 0.15); /* more pronounced outer shadow */
}

.contact-info h2 {
    margin-bottom: 1rem;
}

section h2, section h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Links */
a {
    color: var(--link-light);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Blog Post Specifics */
.blog-post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border-light);
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-meta {
    color: var(--secondary-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: 1px solid var(--card-border-light);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 1rem auto 0;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    border-color: var(--link-light);
    color: var(--link-light);
}

/* Project Filter Buttons */
#category-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 10px;
}

#category-filters button {
    background-color: transparent;
    border: 1px solid var(--card-border-light);
    color: var(--nav-link-light);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

#category-filters button:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--nav-link-hover-light);
    border-color: var(--link-light);
}

.category-button {
    background-color: transparent;
    border: 1px solid var(--card-border-light);
    color: var(--nav-link-light);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-button:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--nav-link-hover-light);
    border-color: var(--link-light);
}

.back-button {
    border-color: var(--secondary-text-light) !important;
    color: var(--secondary-text-light) !important;
}

.back-button:hover {
    background-color: rgba(108, 117, 125, 0.1) !important;
    border-color: var(--secondary-text-light) !important;
    color: var(--secondary-text-light) !important;
}

/* Certificate Year-Based Organization */
.year-container {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px) saturate(120%) brightness(1.01);
    border: 2px solid transparent;
    box-shadow: var(--aura-glow);
    border-radius: 12px;
}

html.dark-mode .year-container {
    background: rgba(15, 15, 15, 0.15);
    border-color: rgba(187, 134, 252, 0.2);
}

.year-header {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(187, 134, 252, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

html.dark-mode .year-header {
    color: var(--text-dark);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Modern Certificate Cards */
.cert-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(187, 134, 252, 0.8), rgba(0, 200, 255, 0.8));
    transition: left 0.4s ease;
}

.cert-card:hover::before {
    left: 0;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    border-color: rgba(187, 134, 252, 0.3);
}

html.dark-mode .cert-card {
    background: rgba(15, 15, 15, 0.12);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.cert-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0.5rem;
    display: block;
}

.cert-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
}

html.dark-mode .cert-card h4 {
    color: var(--text-dark);
}

.cert-card p {
    color: var(--secondary-text-light);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

html.dark-mode .cert-card p {
    color: var(--secondary-text-dark);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(187, 134, 252, 0.1);
    color: rgba(187, 134, 252, 0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(187, 134, 252, 0.2);
    transition: all 0.2s ease;
}

.cert-link:hover {
    background: rgba(187, 134, 252, 0.2);
    border-color: rgba(187, 134, 252, 0.4);
    color: rgba(187, 134, 252, 1);
    transform: translateX(2px);
}

.cert-link.disabled {
    background: rgba(100, 116, 139, 0.1);
    color: rgba(100, 116, 139, 0.7);
    border-color: rgba(100, 116, 139, 0.2);
    cursor: not-allowed;
    opacity: 0.7;
}

.cert-link.disabled:hover {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: rgba(100, 116, 139, 0.7);
    transform: none;
}

html.dark-mode .cert-link {
    background: rgba(187, 134, 252, 0.12);
    border-color: rgba(187, 134, 252, 0.25);
    color: rgba(187, 134, 252, 0.95);
}

html.dark-mode .cert-link:hover {
    background: rgba(187, 134, 252, 0.2);
    border-color: rgba(187, 134, 252, 0.4);
}

html.dark-mode .cert-link.disabled {
    background: rgba(100, 116, 139, 0.2);
    color: rgba(100, 116, 139, 0.8);
}

/* Compact Years Row - Display years side by side */
.compact-years-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.compact-year-container {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px) saturate(120%) brightness(1.01);
    border: 2px solid transparent;
    box-shadow: var(--aura-glow);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
}

html.dark-mode .compact-year-container {
    background: rgba(15, 15, 15, 0.15);
    border-color: rgba(187, 134, 252, 0.2);
}

/* Responsive design for compact years */
@media (max-width: 768px) {
    .compact-years-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Make year containers responsive for small certificate counts */
.year-container:has(.cert-grid > :nth-child(2):not(:last-child)) {
    /* Year with exactly 1 certificate - make more compact */
    padding: 1.5rem;
}

.year-container:has(.cert-grid > :nth-child(2):not(:last-child)) .year-header {
    /* Smaller header for years with few certificates */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Special layout for years with very few certificates */
.year-container:has(.cert-grid > :only-child) {
    /* Year with only 1 certificate */
    max-width: 400px;
    margin: 2rem auto;
}

.year-container:has(.cert-grid > :nth-child(2):last-child) {
    /* Year with 2 certificates */
    max-width: 900px;
    margin: 2rem auto;
}

/* Compact years styling */
.compact-year {
    /* No extra styling needed - uses default cert-card styling */
}

.compact-year-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(187, 134, 252, 0.2);
}

html.dark-mode .compact-year-header {
    color: var(--text-dark);
}

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

.modal-content {
    background-color: var(--card-bg-light);
    color: var(--text-light);
    margin: 10% auto;
    padding: 25px;
    border: 1px solid var(--card-border-light);
    border-radius: 12px;
    width: 80%;
    max-width: 700px;
    position: relative;
    box-shadow: var(--aura-glow);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}

.close-button {
    color: var(--secondary-text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--link-light);
    text-decoration: none;
}

.project-card {
    background-color: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--aura-glow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

/* Dark mode project and certificate cards - Glass effect */
html.dark-mode .project-card {
    background: rgba(15, 15, 15, 0.15) !important;
    backdrop-filter: blur(5px) saturate(120%) brightness(1.01) !important;
    -webkit-backdrop-filter: blur(5px) saturate(120%) brightness(1.01) !important;
    border: 1px solid var(--card-border-dark) !important;
    box-shadow: var(--aura-glow-dark) !important;
}

html.dark-mode .cert-card {
    background: rgba(15, 15, 15, 0.15) !important;
    backdrop-filter: blur(5px) saturate(120%) brightness(1.01) !important;
    -webkit-backdrop-filter: blur(5px) saturate(120%) brightness(1.01) !important;
    border: 1px solid var(--card-border-dark) !important;
    box-shadow: var(--aura-glow-dark) !important;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--link-light);
}

.project-card p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.project-card a {
    display: inline-block;
    background-color: var(--link-light);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.project-card a:hover {
    background-color: var(--nav-link-hover-light);
    text-decoration: none;
}

/* Windows Start Menu Style Tile Glow Effects */
section:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--aura-glow),
        0 0 25px rgba(187, 134, 252, 0.15),
        inset 0 0 15px rgba(187, 134, 252, 0.08);
}

.project-card:hover {
    transform: translateY(-3px);
}

.wiki-card {
    background-color: var(--card-bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wiki-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Dark mode wiki cards */
html.dark-mode .wiki-card {
    background: rgba(15, 15, 15, 0.15);
    border-color: rgba(187, 134, 252, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .wiki-card:hover {
    box-shadow: 0 4px 20px rgba(187, 134, 252, 0.2);
}

.wiki-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--link-light);
    font-size: 1.3em;
}

html.dark-mode .wiki-card h3 {
    color: var(--link-dark);
}

.wiki-card ul {
    margin: 0;
    padding-left: 20px;
}

.wiki-card li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.wiki-card a {
    color: var(--link-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

html.dark-mode .wiki-card a {
    color: var(--link-dark);
}

.wiki-card a:hover {
    color: var(--nav-link-hover-light);
    text-decoration: underline;
}

html.dark-mode .wiki-card a:hover {
    color: var(--nav-link-hover-dark);
}

/* Blog-specific styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Make entire blog card clickable */
.blog-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.blog-card-link:hover {
    transform: translateY(-2px);
}

.blog-card {
    background-color: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--aura-glow);
    height: 100%;
    cursor: pointer;
}

.blog-card:hover {
    border-color: rgba(187, 134, 252, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

html.dark-mode .blog-card {
    background: rgba(15, 15, 15, 0.15);
    backdrop-filter: blur(5px) saturate(140%) brightness(1.02);
    border-color: rgba(187, 134, 252, 0.3);
}

html.dark-mode .blog-card:hover {
    border-color: rgba(187, 134, 252, 0.5);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.1);
}

.blog-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--link-light);
    font-size: 1.3rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.blog-card-link:hover h3 {
    color: var(--nav-link-hover-light);
}

html.dark-mode .blog-card h3 {
    color: var(--link-dark);
}

html.dark-mode .blog-card-link:hover h3 {
    color: var(--nav-link-hover-dark);
}

.blog-card .post-meta {
    color: var(--secondary-text-light);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

html.dark-mode .blog-card .post-meta {
    color: var(--secondary-text-dark);
}

/* Scientific article styling */
.abstract-preview {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
}

html.dark-mode .abstract-preview {
    color: var(--text-dark);
}

.read-article-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .read-article-section {
    border-top-color: rgba(187, 134, 252, 0.2);
}

.article-type {
    font-size: 0.8rem;
    color: var(--secondary-text-light);
    font-weight: 500;
    opacity: 0.8;
}

html.dark-mode .article-type {
    color: var(--secondary-text-dark);
}

/* Smaller, more subtle tags */
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tag {
    background: rgba(187, 134, 252, 0.08);
    color: rgba(187, 134, 252, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    opacity: 0.8;
}

html.dark-mode .post-tag {
    background: rgba(187, 134, 252, 0.15);
    color: rgba(187, 134, 252, 0.85);
}

/* iOS 26 Style Glassy Read More Button */
.ios-read-more-btn {
    background: rgba(187, 134, 252, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 16px;
    color: rgba(187, 134, 252, 0.9);
    padding: 0.6rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(187, 134, 252, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.ios-read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s;
}

.ios-read-more-btn:hover {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(187, 134, 252, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    color: rgba(187, 134, 252, 1);
}

.ios-read-more-btn:hover::before {
    left: 100%;
}

.ios-read-more-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(187, 134, 252, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

html.dark-mode .ios-read-more-btn {
    background: rgba(187, 134, 252, 0.08);
    border-color: rgba(187, 134, 252, 0.25);
    color: rgba(187, 134, 252, 0.95);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

html.dark-mode .ios-read-more-btn:hover {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.35);
    box-shadow:
        0 8px 20px rgba(187, 134, 252, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

/* Make post-meta smaller and add hover effect for relative dates */
.blog-relative-date {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.blog-relative-date:hover {
    opacity: 0.8;
}

/* Scientific Article Styling - Applied to .scientific-article class */
.scientific-article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

html.dark-mode .scientific-article {
    color: var(--text-dark);
}

.scientific-article h1,
.scientific-article h2,
.scientific-article h3,
.scientific-article h4,
.scientific-article h5,
.scientific-article h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

html.dark-mode .scientific-article h1,
html.dark-mode .scientific-article h2,
html.dark-mode .scientific-article h3,
html.dark-mode .scientific-article h4,
html.dark-mode .scientific-article h5,
html.dark-mode .scientific-article h6 {
    color: var(--text-dark);
}

/* Abstract styling - key for scientific format - FIRST H2 gets special treatment */
.scientific-article h2:first-of-type {
    background: rgba(187, 134, 252, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid rgba(187, 134, 252, 0.8);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html.dark-mode .scientific-article h2:first-of-type {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.9);
}

/* Keywords section - any element containing "Keywords" or "keywords" */
.scientific-article h2:contains("Keywords"),
.scientific-article h3:contains("Keywords"),
.scientific-article h2:contains("keywords"),
.scientific-article h3:contains("keywords") {
    background: rgba(34, 197, 94, 0.1);
    color: rgba(34, 197, 94, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

html.dark-mode .scientific-article h2:contains("Keywords"),
html.dark-mode .scientific-article h3:contains("Keywords"),
html.dark-mode .scientific-article h2:contains("keywords"),
html.dark-mode .scientific-article h3:contains("keywords") {
    background: rgba(34, 197, 94, 0.15);
    color: rgba(34, 197, 94, 0.9);
}

/* Section headings get nice underlines */
.scientific-article h2:not(:first-of-type),
.scientific-article h3 {
    border-bottom: 2px solid rgba(187, 134, 252, 0.2);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.scientific-article h1 {
    font-size: 2rem;
    text-align: center;
    border-bottom: 3px solid rgba(187, 134, 252, 0.4);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

/* Code blocks in scientific articles */
.scientific-article pre {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

html.dark-mode .scientific-article pre {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(187, 134, 252, 0.2);
}

/* Tables in scientific articles */
.scientific-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .scientific-article table {
    background: rgba(15, 15, 15, 0.05);
    border-color: rgba(187, 134, 252, 0.2);
}

.scientific-article th,
.scientific-article td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scientific-article th {
    background: rgba(187, 134, 252, 0.1);
    color: var(--text-light);
    font-weight: 600;
}

html.dark-mode .scientific-article th {
    background: rgba(187, 134, 252, 0.15);
    color: var(--text-dark);
}

/* References section - special styling */
.scientific-article h2:contains("References"),
.scientific-article h3:contains("References") {
    border-bottom: 2px solid rgba(187, 134, 252, 0.3);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    background: none;
    color: var(--text-light);
    border-radius: 0;
    border-left: 0;
    padding-left: 0;
}

html.dark-mode .scientific-article h2:contains("References"),
html.dark-mode .scientific-article h3:contains("References") {
    color: var(--text-dark);
}

/* Blockquotes for citations */
.scientific-article blockquote {
    border-left: 4px solid rgba(187, 134, 252, 0.6);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(187, 134, 252, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

html.dark-mode .scientific-article blockquote {
    background: rgba(187, 134, 252, 0.08);
    border-color: rgba(187, 134, 252, 0.7);
}

.scientific-article blockquote::before {
    content: '"';
    font-size: 3rem;
    color: rgba(187, 134, 252, 0.3);
    position: absolute;
    left: -10px;
    top: -10px;
    font-family: serif;
}

/* Lists in scientific articles */
.scientific-article ul,
.scientific-article ol {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.scientific-article li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Links in scientific articles */
.scientific-article a {
    color: rgba(187, 134, 252, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.scientific-article a:hover {
    color: rgba(187, 134, 252, 1);
}

/* Paragraphs */
.scientific-article p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Images and figures */
.scientific-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scientific-article figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

html.dark-mode .scientific-article figcaption {
    color: var(--secondary-text-dark);
}

/* Blog Categories - Redesigned for subtlety */
.blog-categories {
    margin-bottom: 1.5rem;
    text-align: center;
}

.blog-categories h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

html.dark-mode .blog-categories h3 {
    color: var(--text-dark);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Subtle category filter buttons like projects page */
.category-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--nav-link-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.category-filter-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: var(--link-light);
    color: var(--nav-link-hover-light);
    transform: translateY(-1px);
}

.category-filter-btn.active {
    background: var(--link-light);
    border-color: var(--link-light);
    color: white !important;
}

html.dark-mode .category-filter-btn {
    background: rgba(15, 15, 15, 0.08);
    border-color: rgba(187, 134, 252, 0.3);
    color: var(--nav-link-dark);
}

html.dark-mode .category-filter-btn:hover {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.5);
    color: var(--nav-link-hover-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0 1rem 0;
    padding: 2rem;
}

.pagination-link {
    background-color: var(--link-light);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.pagination-link:hover {
    background-color: var(--nav-link-hover-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.pagination-info {
    color: var(--text-light);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

html.dark-mode .pagination-info {
    color: var(--text-dark);
    background: rgba(15, 15, 15, 0.1);
    border: 1px solid rgba(187, 134, 252, 0.2);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin: 2rem 0;
}

html.dark-mode .no-posts {
    background: rgba(15, 15, 15, 0.05);
    border: 1px solid rgba(187, 134, 252, 0.1);
}

.no-posts p {
    color: var(--secondary-text-light);
    font-size: 1.1rem;
    margin: 0;
}

html.dark-mode .no-posts p {
    color: var(--secondary-text-dark);
}

/* Mobile responsiveness for blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-info {
        order: 1;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-tags {
        justify-content: center;
    }
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow:
        var(--aura-glow),
        inset 0 0 18px rgba(0, 123, 255, 0.12),
        0 0 25px rgba(0, 123, 255, 0.15);
}

/* Neon Border States - Subtle Green Effect */
.neon-active {
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    box-shadow:
        0 0 8px rgba(0, 255, 136, 0.08),
        0 0 15px rgba(0, 255, 136, 0.05),
        0 0 25px rgba(0, 255, 136, 0.03),
        inset 0 0 10px rgba(0, 255, 136, 0.02) !important;
}

.neon-project {
    border: 1px solid rgba(0, 255, 136, 0.25) !important;
    box-shadow:
        inset 0 0 8px rgba(0, 255, 136, 0.05),
        0 0 12px rgba(0, 255, 136, 0.15) !important;
}

.neon-cert {
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    box-shadow:
        inset 0 0 6px rgba(0, 255, 136, 0.04),
        0 0 10px rgba(0, 255, 136, 0.12) !important;
}

/* VSCode Quiz Styles */
.quiz-container {
    margin: 2rem 0;
    padding: clamp(20px, 4vw, 35px);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
    border: 2px solid transparent;
    box-shadow: var(--aura-glow);
    transition: all 0.3s ease;
}

.quiz-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-align: center;
}

.quiz-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--secondary-text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 1rem;
    color: var(--text-light);
}

.quiz-question-container {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: clamp(15px, 3vw, 25px);
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.4;
}

.quiz-option {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: clamp(10px, 2vw, 15px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quiz-option:hover {
    background: rgba(187, 134, 252, 0.1);
    border-color: rgba(187, 134, 252, 0.3);
    transform: translateY(-1px);
}

.quiz-option.correct {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.explanation-text {
    margin-top: 1rem;
    padding: clamp(10px, 2vw, 15px);
    border-radius: 6px;
    background: rgba(187, 134, 252, 0.05);
    border-left: 3px solid var(--accent-light);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-light);
    line-height: 1.5;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-btn {
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
    background: var(--link-light);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-btn:hover {
    background: var(--nav-link-hover-light);
    transform: translateY(-1px);
}

.quiz-result {
    text-align: center;
    padding: clamp(20px, 4vw, 30px);
}

.quiz-result h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.score-display {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: clamp(15px, 3vw, 25px);
    margin: 1.5rem 0;
}

.score-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--link-light);
    display: block;
}

.score-percentage {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--secondary-text-light);
    margin-top: 0.5rem;
}

.score-message {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin: 1rem 0;
}

/* Dark mode quiz styles */
html.dark-mode .quiz-container {
    background: rgba(15, 15, 15, 0.15);
    backdrop-filter: blur(5px) saturate(140%) brightness(1.02);
}

html.dark-mode .quiz-option {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dark) !important;
}

html.dark-mode .quiz-option:hover {
    background: rgba(187, 134, 252, 0.15);
    color: var(--text-dark) !important;
}

html.dark-mode .quiz-option.correct {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
    color: var(--text-dark) !important;
}

html.dark-mode .quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: var(--text-dark) !important;
}

html.dark-mode .quiz-question-container {
    background: rgba(0, 0, 0, 0.05);
}

html.dark-mode .score-display {
    background: rgba(255, 255, 255, 0.03);
}

html.dark-mode .quiz-title,
html.dark-mode .question-text,
html.dark-mode .explanation-text,
html.dark-mode .quiz-description,
html.dark-mode .quiz-progress,
html.dark-mode .score-display,
html.dark-mode .score-number,
html.dark-mode .score-percentage,
html.dark-mode .score-message,
html.dark-mode .quiz-btn {
    color: var(--text-dark);
}

html.dark-mode .quiz-btn {
    background: rgba(34, 197, 94, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .quiz-btn:hover {
    background: rgba(34, 197, 94, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
}

html.dark-mode .quiz-btn:focus {
    background: rgba(34, 197, 94, 0.9) !important;
    border: 1px solid rgba(34, 197, 94, 1.0) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3) !important;
    color: white !important;
}

/* Platform Selection Styles */
.platform-selection {
    margin-top: 1.5rem;
    text-align: center;
}

.platform-selection h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: 1rem;
}

.platform-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 160px;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 24px);
}

.platform-btn:hover {
    transform: translateY(-2px);
}

/* Dark mode platform selection */
html.dark-mode .platform-selection h4 {
    color: var(--text-dark);
}

html.dark-mode .platform-btn {
    background: rgba(59, 130, 246, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .platform-btn:hover {
    background: rgba(59, 130, 246, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
}

/* Portfolio Homepage Styles */
.homepage-hero {
    min-height: 50vh;
    display: block;
    padding: 6rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 960px; /* This is the max-width from your .container class */
    margin: 0 auto;
    text-align: center; /* Ensures text is centered */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.hero-content h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--secondary-text-light);
    font-weight: 400;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--secondary-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Preview Grid and Cards */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    padding: 0 clamp(1rem, 2vw, 2rem);
    margin-bottom: 3rem;
}

/* Individual Preview Sections */
.preview-section {
    margin-bottom: clamp(3rem, 6vw, 4rem);
    text-align: center;
}

.section-title {
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(187, 134, 252, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.preview-card {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg,
            transparent 0%,
            rgba(187, 134, 252, 0.08) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.preview-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(187, 134, 252, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.15);
    border-color: rgba(187, 134, 252, 0.4);
}

.preview-card:hover::before {
    opacity: 1;
}

.preview-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1), rgba(79, 172, 254, 0.1));
    position: relative;
}

.card-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.preview-content {
    padding: 1.5rem;
}

.preview-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--text-light);
    font-weight: 600;
}

.preview-content p {
    margin: 0 0 1.25rem 0;
    color: var(--secondary-text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(187, 134, 252, 0.15);
    color: rgba(187, 134, 252, 1);
    border: 1px solid rgba(187, 134, 252, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    cursor: pointer;
}

.cta-button:hover {
    background: rgba(187, 134, 252, 0.25);
    border-color: rgba(187, 134, 252, 0.5);
    transform: translateX(4px);
}

.preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    background: rgba(187, 134, 252, 0.1);
    color: rgba(187, 134, 252, 1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: clamp(0.8rem, 1.2vw, 0.85rem);
    font-weight: 500;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

/* Homepage Footer Stats */
.homepage-footer {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
    margin: 2rem auto;
    max-width: 900px;
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

.stat p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--secondary-text-light);
    margin: 0;
}

/* Dark mode adjustments for homepage */
html.dark-mode .homepage-hero {
    background: rgba(15, 15, 15, 0.08);
    backdrop-filter: blur(10px);
}

html.dark-mode .hero-content h1 {
    color: var(--text-dark) !important;
}

html.dark-mode .hero-content h2 {
    color: var(--secondary-text-dark) !important;
}

html.dark-mode .hero-description {
    color: var(--secondary-text-dark) !important;
}

html.dark-mode .preview-card {
    background: rgba(15, 15, 15, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark-mode .preview-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(187, 134, 252, 0.3);
}

html.dark-mode .badge {
    background: rgba(187, 134, 252, 0.15);
    color: rgba(187, 134, 252, 0.9);
    border-color: rgba(187, 134, 252, 0.3);
}

html.dark-mode .section-title {
    color: var(--text-dark);
}

html.dark-mode .homepage-footer {
    background: rgba(15, 15, 15, 0.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .preview-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .homepage-hero {
        min-height: 40vh;
        padding: 1rem;
    }
}

/* Compact GitHub Stats Grid - Smaller and More Efficient */
.compact-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 1rem 0;
  padding: 0 15px;
}

.compact-stats-widget {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-stats-widget:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 123, 255, 0.15),
    inset 0 0 10px rgba(0, 123, 255, 0.05);
}

.compact-stats-widget img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0;
}

/* Dark theme adjustments for compact stats */
html.dark-mode .compact-stats-widget {
  background: rgba(30, 30, 30, 0.15);
  border-color: rgba(0, 200, 255, 0.2);
}

html.dark-mode .compact-stats-widget:hover {
  box-shadow:
    0 4px 12px rgba(0, 200, 255, 0.2),
    inset 0 0 10px rgba(0, 200, 255, 0.08);
}

/* Mobile responsiveness for compact stats */
@media (max-width: 768px) {
  .compact-stats-grid {
    grid-template-columns: 1fr;
    padding: 0 8px;
    gap: 8px;
  }

  .compact-stats-widget {
    padding: 4px;
  }
}
