:root {
    --bg-deep-dark: #0C0C14; /* Deep, rich dark */
    --bg-panel-dark: #14141F; /* For main content panels */
    --bg-card-glass: rgba(25, 25, 40, 0.6); /* Glassmorphism base */
    --text-primary: #ECEFF1; /* Slightly off-white */
    --text-secondary: #B0BEC5; /* Lighter grey */
    --text-tertiary: #78909C; /* Muted grey */
    --node-color: #394c51; /* Muted grey */

    /* Focused Gradient Scheme: Electric Blue & Vibrant Teal/Aqua */
    --grad-main-1: #00A9FF;   /* Electric Blue */
    --grad-main-2: #00E5FF;   /* Bright Aqua/Teal */
    --grad-accent-1: #FFA500; /* Orange - for specific CTAs or highlights */
    --grad-accent-2: #FFD700; /* Gold - for subtle highlights */

    --cta-bg-start: var(--grad-main-1);
    --cta-bg-end: var(--grad-main-2);
    --cta-text: #FFFFFF;

    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    --spotlight-interactive: rgba(0, 169, 255, 0.4); /* For hover spotlights */

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;

    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-code: 'Cutive Mono', monospace; /* Retaining for potential code blocks in articles */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-deep-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body::before {
    content: ''; position: fixed; top:0; left:0; right:0; bottom:0;
    background-image: radial-gradient(var(--text-tertiary) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.03; z-index: -10; pointer-events: none;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.app-header {
    padding: 10px 0; position: sticky; top: 0;
    background-color: rgba(12, 12, 20, 0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid var(--glass-border);
}
.header-content {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px;
}
.logo-icon-header {
    font-size: 2em; /* Or adjust if new icon needs different size */
    text-decoration: none;
    color: var(--grad-main-2);
    display: inline-block; /* Good for transforms on the <a> tag */
    transition: color 0.3s ease, transform 0.4s ease; /* Adjusted transition duration */
}

.logo-icon-header:hover {
    color: var(--grad-main-1);
    transform: rotate(360deg) scale(1.1); /* Example: Full spin and slight scale on hover */
}

.logo-icon-header i { /* If the <i> tag itself needs specific transition for its own transform */
    display: inline-block; /* Helps with consistent transform behavior */
    transition: transform 0.4s ease; /* Match parent or have its own */
}

.hamburger-menu {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2em; /* Adjust to match new logo icon size if needed */
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Ensure it's above other header content if nav overlays */
}

.nav-links ul { list-style: none; padding: 0; margin: 0; display: flex; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; margin-left: 28px;
    font-weight: 500; transition: color 0.3s ease, text-shadow 0.3s ease; font-size: 0.95em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); text-shadow: 0 0 8px var(--grad-main-2); }

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 30px 20px; position: relative;
    /* Container for Three.js canvas if used directly here */
}
#hero-canvas-container { /* If used for Three.js */
    position: fixed; /* Changed from absolute to fixed */
    top: 0; 
    left: 0; 
    width: 100vw; /* Span full viewport width */
    height: 100vh; /* Span full viewport height */
    z-index: -5;  /* Behind most content, but potentially above body::before if that's kept */
    opacity: 0.5; 
    pointer-events: none; /* Ensure it doesn't interfere with clicks on content */
}

.hero-headline {
    font-family: var(--font-secondary); font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 800; margin-bottom: 25px;
    color: var(--text-primary);
    line-height: 1.2; max-width: 900px;
}
.hero-headline .highlight {
    background: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#typewriter-dynamic-phrase {
    display: inline-block;
    min-width: 200px; 
    min-height: 1.2em; 
    border-bottom: 3px solid var(--grad-main-2);
    animation: blinkCursor 0.7s infinite;
}
@keyframes blinkCursor {
    50% { border-bottom-color: transparent; }
}

.hero-subheadline {
    font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--text-secondary);
    max-width: 780px; margin: 0 auto 25px auto;
}
.authority-badge {
    text-align: center; 
    color: var(--text-tertiary);
    font-size: 0.95em;
    font-weight: 500;
    margin: 0 auto 35px auto;
    letter-spacing: 0.5px;
}
.authority-badge span {
    color: var(--grad-main-2);
    font-weight: 600;
}
.hero-ctas { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-button {
    padding: 16px 32px; 
    font-size: 1em;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #f1f5f9; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 169, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #334155 0%, #475569 50%, #64748b 100%);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--grad-main-1);
    color: var(--grad-main-1);
    box-shadow: 
        0 4px 16px rgba(0, 169, 255, 0.1),
        inset 0 1px 0 rgba(0, 169, 255, 0.1);
}

.cta-button.secondary::before {
    background: linear-gradient(90deg, transparent, rgba(0, 169, 255, 0.1), transparent);
}

.cta-button.secondary:hover {
    background: rgba(0, 169, 255, 0.1);
    border-color: var(--grad-main-2);
    color: var(--grad-main-2);
    box-shadow: 
        0 8px 32px rgba(0, 169, 255, 0.2),
        0 0 0 1px rgba(0, 229, 255, 0.5),
        inset 0 1px 0 rgba(0, 169, 255, 0.2);
}

/* General Section Styling */
.content-section { padding: 90px 0; }
.section-title {
    font-family: var(--font-secondary); font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center; margin-bottom: 60px; color: var(--text-primary); position: relative;
}
.section-title span::after { /* For the underline effect if using span inside h2 */
    content: ''; position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%); width: 60%; max-width: 130px; height: 4px;
    background-image: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    border-radius: 2px;
}
/* If not using span, apply directly to .section-title::after */
.section-title::after {
    content: ''; display: block; margin: 10px auto 0;
    width: 60%; max-width: 130px; height: 4px;
    background-image: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    border-radius: 2px;
}


/* Card Styling (for Projects, Tools, Articles) */
.card-grid, .article-grid { /* Apply to both */
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.card, .article-card { /* Apply to both */
    background: var(--bg-card-glass);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    padding: 25px 30px;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 25px var(--glass-shadow);
    position: relative; overflow: hidden;
}
.card::before, .article-card::before { /* Spotlight hover */
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: var(--border-radius-lg);
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 169, 255, 0.15), transparent 50%);
    opacity: 0; transition: opacity 0.4s ease; z-index: 0; pointer-events: none;
}
.card:hover::before, .article-card:hover::before { opacity: 1; }
.card:hover, .article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border-color: var(--grad-main-2);
}
.card-content, .article-card-content { /* Ensure content is above spotlight */
    position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%;
}

.card .icon-feature, .article-card .icon-feature { /* For tool/project specific icons */
    font-size: 2.5em; margin-bottom: 18px; display: inline-block;
    background: linear-gradient(45deg, var(--grad-main-1), var(--grad-main-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.card h3, .article-card h3 {
    font-family: var(--font-secondary); font-size: 1.5em;
    margin-bottom: 12px; color: var(--text-primary);
}
.card p, .article-card p.article-excerpt { /* Target specific p for articles */
    color: var(--text-secondary); font-size: 0.95em; margin-bottom: 20px; flex-grow: 1;
}
.card .card-cta, .article-card .read-more-btn { /* Target specific a for articles */
    display: inline-block; width: auto; align-self: flex-start;
    padding: 10px 20px;
    background-image: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    color: var(--bg-deep-dark) !important; /* Ensure text color contrasts with gradient */
    border: none; border-radius: var(--border-radius-sm);
    font-weight: 600; text-decoration: none; font-size: 0.9em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card .card-cta:hover, .article-card .read-more-btn:hover {
    transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,169,255,0.3);
}
.card .project-tag {
    display: inline-block; background-color: var(--grad-accent-1);
    color: var(--bg-deep-dark); padding: 4px 10px; border-radius: var(--border-radius-sm);
    font-size: 0.8em; font-weight: 700; margin-bottom: 15px;
}
.article-card-image { /* For article listing page */
    width: 100%; height: 200px; object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0; /* Top corners rounded */
    margin-bottom: 20px;
}
.article-meta-card { /* For date on article cards */
    font-size: 0.85em; color: var(--text-tertiary); margin-bottom: 10px !important;
}


/* Interactive Teaser Section */
.interactive-teaser {
    background-color: var(--bg-panel-dark);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px var(--glass-shadow);
    text-align: center;
}
.teaser-question { margin-bottom: 25px; }
.teaser-question label { display:block; font-size:1.1em; margin-bottom:15px; color:var(--text-secondary); }
.teaser-options button {
    background-color: var(--bg-card-glass); border: 1px solid var(--glass-border);
    color: var(--text-primary); padding: 10px 20px; margin: 5px 8px; /* Added margin for wrapping */
    border-radius: var(--border-radius-sm); cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.teaser-options button:hover, .teaser-options button.selected {
    background-color: var(--grad-main-1); color: var(--bg-deep-dark); transform: translateY(-2px);
}
.teaser-output { margin-top:30px; padding:20px; background:rgba(12, 12, 20, 0.5); border-radius:var(--border-radius-md); min-height: 50px; text-align: left;}
.teaser-output p { color: var(--text-primary); font-weight: 500; font-size: 1.05em;}
.teaser-output strong {
    background: linear-gradient(90deg, var(--grad-main-1), var(--grad-main-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Waitlist Form Section */
.waitlist-section { text-align: center; }
.waitlist-form {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    max-width: 500px; margin: 0 auto;
}
.waitlist-form input[type="email"] {
    width: 100%; padding: 16px; font-size: 1.05em;
    border-radius: var(--border-radius-md); border: 1px solid var(--glass-border);
    background-color: var(--bg-card-glass); color: var(--text-primary);
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-tertiary); }
.waitlist-form .cta-button { width: 100%; padding: 16px 28px; font-size: 1.05em; }
#waitlist-confirmation {
    color: var(--grad-main-2); margin-top: 25px; display: none;
    font-weight:600; font-size:1.1em;
}


/* Footer */
.app-footer {
    text-align: center; padding: 60px 20px 30px;
    border-top: 1px solid var(--glass-border); color: var(--text-tertiary);
    font-size: 0.9em; margin-top: 60px; /* Reduced margin-top from 100px */
}
.app-footer p { margin-bottom: 5px; }


/* Styling for Manifesto and About sections (general content) */
.manifesto-section .container p, .about-section .container p,
.generic-content-section .container p {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    max-width: 800px; /* Centered content */
    margin-left: auto;
    margin-right: auto;
}
.manifesto-section .container h3, .about-section .container h3,
.generic-content-section .container h3 {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    font-size: 1.6em;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.manifesto-section .container ul, .about-section .container ul,
.generic-content-section .container ul {
    list-style: none; /* Or 'disc' if preferred */
    padding-left: 20px;
    margin-bottom: 1.5em;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.manifesto-section .container ul li, .about-section .container ul li,
.generic-content-section .container ul li {
    margin-bottom: 0.7em;
    padding-left: 1.5em;
    position: relative;
}
.manifesto-section .container ul li::before, .about-section .container ul li::before,
.generic-content-section .container ul li::before {
    content: '✧'; /* Or other icon like •, ✓, → */
    position: absolute;
    left: 0;
    color: var(--grad-main-1);
    font-weight: bold;
}


/* Articles Page Specific */
.articles-header {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg-panel-dark); /* Or a subtle gradient */
    border-bottom: 1px solid var(--glass-border);
}
.articles-header h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 15px;
}
.articles-header p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}
.article-grid-section { padding: 60px 0; }


/* Single Article Page Specific */
.single-article-page .article-content-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-panel-dark);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px var(--glass-shadow);
}
.single-article-page .article-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 15px;
}
.single-article-page .article-meta {
    font-size: 0.95em;
    color: var(--text-tertiary);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.single-article-page .article-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em; /* Slightly larger for readability */
}
.single-article-page .article-body h1,
.single-article-page .article-body h2,
.single-article-page .article-body h3,
.single-article-page .article-body h4 {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}
.single-article-page .article-body h1 { font-size: 2em; }
.single-article-page .article-body h2 { font-size: 1.7em; }
.single-article-page .article-body h3 { font-size: 1.4em; }
.single-article-page .article-body h4 { font-size: 1.2em; }

.single-article-page .article-body p { margin-bottom: 1.5em; }
.single-article-page .article-body ul,
.single-article-page .article-body ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}
.single-article-page .article-body li { margin-bottom: 0.5em; }
.single-article-page .article-body blockquote {
    border-left: 4px solid var(--grad-main-1);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-primary);
    background-color: rgba(0, 169, 255, 0.05);
    padding-top: 10px; padding-bottom: 10px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}
.single-article-page .article-body code {
    font-family: var(--font-code);
    background-color: var(--bg-deep-dark);
    padding: 2px 5px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
    color: var(--grad-main-2);
}
.single-article-page .article-body pre {
    background-color: var(--bg-deep-dark);
    padding: 15px;
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid var(--glass-border);
}
.single-article-page .article-body pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9em;
}
.single-article-page .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 1.5em 0;
    display: block;
    box-shadow: 0 5px 15px var(--glass-shadow);
}
.single-article-page .article-sharing {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.single-article-page .article-sharing h4 {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    margin-bottom: 15px;
}
.single-article-page .share-buttons a {
    color: var(--text-secondary);
    font-size: 1.8em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}
.single-article-page .share-buttons a:hover {
    color: var(--grad-main-1);
    transform: scale(1.1);
}

/* Progressive Reveal Animation */
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        position: relative; /* For positioning the mobile menu */
        /* flex-direction: row; Ensure it stays row for logo and hamburger */
        /* justify-content: space-between; (should be there) */
        /* align-items: center; (should be there) */
        /* The existing rule .header-content { display: flex; justify-content: space-between; align-items: center; } should cover this if not overridden by flex-direction: column */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

            .nav-links {
                display: none; /* Hide nav links by default on mobile */
                position: absolute;
                top: 100%; /* Position below the header */
                left: 0;
                width: 100%;
                background-color: rgba(12, 12, 20, 0.95); /* Slightly more opaque for readability */
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px); /* Added Safari support */
                padding: 15px 0;
                border-top: 1px solid var(--glass-border);
                box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-links.active { /* Class to be toggled by JS */
        display: block;
    }

    .nav-links ul {
        flex-direction: column; /* Stack links vertically */
        align-items: center; /* Center links */
        width: 100%;
        /* Removed justify-content: center; flex-wrap: wrap; from previous mobile style */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block; /* Make links take full width for easier tapping */
        padding: 12px 20px;
        margin-left: 0; /* Reset margin */
        margin: 0; /* Reset individual margins if any */
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links a:hover, .nav-links a.active {
        background-color: rgba(0, 169, 255, 0.1); /* Subtle hover for mobile */
        text-shadow: none; /* Remove desktop text-shadow if it interferes */
    }
    .hero-section { padding: 60px 20px 80px; }
    .card-grid, .article-grid { grid-template-columns: 1fr; } /* Stack cards on mobile */
     .waitlist-form { flex-direction: column; }
     .waitlist-form .cta-button { width: 100%; }
     .teaser-options { display: flex; flex-direction: column; gap: 10px; }
}

/* Remove theme toggle button if not used */
#theme-toggle { display: none; }

/* Project Specific Styles */
.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes footer to the bottom of the card content */
    padding-top: 15px; /* Space above the footer */
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link-icon {
    font-size: 1.4em; /* Adjust icon size as needed */
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.2s ease;
}

.project-link-icon:hover {
    color: var(--grad-main-1);
    transform: scale(1.1);
}

/* Single Project Page Meta Details */
.single-project-page .project-meta-details {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.single-project-page .project-meta-details p {
    font-size: 0.95em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.single-project-page .project-meta-details p i {
    margin-right: 8px;
    color: var(--grad-main-1);
    font-size: 1.2em;
}

.single-project-page .project-meta-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-project-page .project-meta-details a:hover {
    color: var(--grad-main-2);
    text-decoration: underline;
}

/* Project Engagement Section (Likes & Shares) */
.project-engagement-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between like and share sections */
}

.like-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.like-button {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.6em; /* Icon size */
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-button:hover {
    color: var(--grad-main-1);
    border-color: var(--grad-main-1);
    transform: scale(1.05);
}

.like-button.liked {
    color: var(--grad-main-1); /* Color for liked state */
    border-color: var(--grad-main-1);
}

.like-button.liked i.ti-heart-filled { /* Ensure filled heart is styled if using specific class */
    color: var(--grad-main-1);
}


.like-count {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

/* Adjustments for article sharing if needed within project engagement */
.project-engagement-section .article-sharing {
    margin-top: 0; /* Reset margin if it was set for article page */
    padding-top: 0; /* Reset padding */
    border-top: none; /* Reset border */
    text-align: right; /* Align share buttons to the right */
}

@media (max-width: 768px) {
    .project-engagement-section {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start on mobile */
    }
    .project-engagement-section .article-sharing {
        text-align: left; /* Align share buttons to left on mobile */
        width: 100%; /* Make share section take full width */
    }
    .project-engagement-section .article-sharing h4 {
        text-align: left;
    }
    .project-engagement-section .share-buttons {
        justify-content: flex-start; /* Align buttons to left */
    }
}

/* Styling for featured project cards on homepage */
.featured-project-card .project-subtitle {
    font-size: 0.9em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    font-style: italic;
}

/* Ensure the CTA button in featured project cards is at the bottom */
.featured-project-card {
    display: flex; /* Already in .card, but ensure it's here for specificity if needed */
    flex-direction: column; /* Already in .card */
}

.featured-project-card .card-content {
    flex-grow: 1; /* Allows p (excerpt) to take up space */
    display: flex;
    flex-direction: column;
}

.featured-project-card .card-content p:last-of-type { /* Target the excerpt */
    flex-grow: 1; 
}


.featured-project-card .card-cta {
    margin-top: auto; /* Pushes CTA to the bottom of the card */
    align-self: flex-start; /* Align button to the left */
}

/* Stats Grid for Homepage */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-panel-dark);
    padding: 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    border-left: 4px solid var(--grad-main-1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 25px var(--glass-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--grad-main-1);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
}
