:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #1a1a2e;
    --text-light: #e0e0e0;
    --text-gray: #b0b0b0;
    --primary-color: #00ffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

blockquote {
    font-style: italic;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border-left: 4px solid rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.8);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: #fff;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin: 10px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    height: 80px;
}

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

.logo h2 {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.logo h2 a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.nav-menu a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.03) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.03) 50%, transparent 100%);
    animation: scanlines 20s linear infinite;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.highlight {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: #909090;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 255, 255, 0.3);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 80px rgba(255, 0, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.profile-image-container:hover::before {
    opacity: 1;
}

.profile-image-container:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.5),
        0 0 100px rgba(255, 0, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    background: rgba(10, 10, 10, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-item:hover {
    transform: translateY(-3px);
    background: rgba(0, 255, 255, 0.1);
    color: #fff;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.portfolio-image {
    height: 200px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .project-img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.portfolio-content p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Latest Posts Section */
.latest-posts {
    padding: 6rem 0;
    background: #0a0a0a;
    position: relative;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(26, 26, 46, 0.8);
}

.blog-meta {
    font-size: 0.9rem;
    color: #00ffff;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #00ffff;
}

.blog-excerpt {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #b0b0b0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.1);
    border-top-color: #00ffff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Contact Split Layout (Index) */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.contact-option {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-option:hover {
    transform: translateY(-5px);
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.contact-option h3 {
    font-size: 1.5rem;
    color: #00ffff;
    margin: 0;
}

.contact-option p {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

.social-section {
    text-align: center;
    position: relative;
    z-index: 2;
}

.social-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* Contact Page Styles */
.contact-page {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-card p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.discord-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #5865F2;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.discord-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
    background: #4752c4;
}

.cta-icon {
    font-size: 2.5rem;
}

.cta-text h3 {
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
    color: white;
}

.cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.social-grid h3,
.support-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-card:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

.social-card .social-icon {
    font-size: 2rem;
    display: block !important;
    /* Override footer styles */
}

.support-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-link[data-platform="patreon"] {
    background: #FF424D;
    color: white;
}

.support-link[data-platform="kofi"] {
    background: #FF5E5B;
    color: white;
}

.support-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

    .contact-split,
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 1rem;
}

.contact-method:hover {
    transform: translateX(5px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-icon {
    font-size: 1.2rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(10, 10, 10, 0.8);
    color: #e0e0e0;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.9);
}

/* Old footer styles removed - using compact footer at end of file */


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 255, 255, 0.2);
        padding: 2rem 0;
        border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Blog Styles - Dark Sci-Fi Tech Theme */
.blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.03) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.03) 50%, transparent 100%);
    animation: scanlines 20s linear infinite;
    z-index: 1;
}

@keyframes scanlines {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.blog-hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: #b0b0b0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.blog-hero .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #909090;
}

/* Contact Hero - Compressed Version */
.contact-hero {
    min-height: 20vh;
    /* Reduced from 60vh */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.03) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.03) 50%, transparent 100%);
    animation: scanlines 20s linear infinite;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
}

.contact-hero h1 {
    font-size: 3rem;
    /* Slightly smaller than blog-hero's 3.5rem */
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.contact-hero .hero-tagline {
    font-size: 1.2rem;
    color: #b0b0b0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: #b0b0b0;
}

.blog-controls {
    padding: 3rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.blog-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.search-container {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-box input::placeholder {
    color: #888;
}

.search-box input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 46, 0.9);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-search:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}




.blog-content {
    padding: 1rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.blog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
    /* Custom Scrollbar for Sidebar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) rgba(26, 26, 46, 0.8);
}

.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

.sidebar-section {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.sidebar-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    border-left: 3px solid transparent;
    font-weight: 500;
    background: rgba(10, 10, 10, 0.3);
}

.category-link:hover,
.category-link.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00ffff;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.recent-posts {
    list-style: none;
}

.recent-post-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    text-decoration: none;
    color: #888;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(10, 10, 10, 0.3);
}

.recent-post-link:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(3px);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.recent-post-link:last-child {
    border-bottom: none;
}

.recent-post-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #e0e0e0;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #666;
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form input,
.sidebar-select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    color: #e0e0e0;
    backdrop-filter: blur(5px);
}

.newsletter-form input::placeholder {
    color: #666;
}

.newsletter-form input:focus,
.sidebar-select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(10, 10, 10, 0.9);
}

.sidebar-select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.post-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.post-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-category {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.post-date,
.post-reading-time {
    color: #888;
    font-weight: 500;
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.post-content {
    padding: 1rem 1.5rem 1.5rem;
}

.post-excerpt {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.tag {
    background: rgba(10, 10, 10, 0.8);
    color: #00ffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem 0.5rem;
}

.post-author {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.read-more {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #00ffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(0, 255, 255, 0.1);
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    transition: left 0.3s ease;
    z-index: -1;
}

.read-more:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.read-more:hover::before {
    left: 0;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.no-results p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Individual Blog Post Styles */
.breadcrumb-section {
    padding: 1.5rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    margin-top: 80px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.breadcrumb a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.breadcrumb-separator {
    color: #666;
    font-weight: 300;
}

.breadcrumb-current {
    color: #b0b0b0;
    font-weight: 500;
}

.article-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.article-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.03) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.03) 50%, transparent 100%);
    animation: scanlines 15s linear infinite;
    z-index: 1;
}

.article-header .container {
    position: relative;
    z-index: 2;
    color: #e0e0e0;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item:not(:last-child)::after {
    content: '|';
    margin-left: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.meta-icon {
    display: none;
    text-decoration: underline;
    /* Hide icons in header */
}

#articleCategory {
    color: #00ffff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

#articleCategory:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.article-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.4rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.article-tags .tag {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.article-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure image stays within circle */
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.author-title {
    font-size: 0.95rem;
    color: #b0b0b0;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.article-content {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.article-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #888;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    background: rgba(10, 10, 10, 0.3);
}

.toc-item:hover,
.toc-item.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00ffff;
    transform: translateX(3px);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.toc-level-1 {
    padding-left: 0.5rem;
    font-weight: 600;
}

.toc-level-2 {
    padding-left: 1rem;
    font-weight: 600;
}

.toc-level-3 {
    padding-left: 2.75rem;
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 400;
    position: relative;
    background: transparent;
}

.toc-level-3::before {
    content: "•";
    position: absolute;
    left: 1.5rem;
    color: rgba(0, 255, 255, 0.4);
    font-size: 1.2rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

.toc-level-3:hover,
.toc-level-3.active {
    background: rgba(0, 255, 255, 0.05);
    border-left-width: 2px;
    color: #00ffff;
}

.toc-level-4 {
    padding-left: 3.5rem;
    font-size: 0.8rem;
    color: #777;
}

.article-main {
    max-width: none;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e0e0e0;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 0px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #00ffff;
    margin: 3rem 0 1.5rem 0;
    font-weight: 700;
    position: relative;
    scroll-margin-top: 100px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.post-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content h2 {
    font-size: 2rem;
    color: #00bfff;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #87ceeb;
}

.post-content p {
    color: #b0b0b0;
    max-width: 65ch;
}

.post-content ul,
.post-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    color: #b0b0b0;
}

.post-content li::marker {
    color: #00ffff;
}

.post-content blockquote {
    border-left: 4px solid #00ffff;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #b0b0b0;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.post-content a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.post-content a:hover {
    color: #ff00ff;
    border-bottom-color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.post-content code {
    background: rgba(0, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ff00ff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.post-content pre {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    color: #00ffff;
    padding: 2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #00ffff;
    border: none;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.article-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid rgba(0, 255, 255, 0.3);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.nav-post {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-post:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    color: #fff;
    transform: translateY(-5px);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.nav-post.prev-post {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-arrow {
    font-size: 1.8rem;
    color: #00ffff;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-post:hover .nav-arrow {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.nav-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-post:hover .nav-label {
    color: rgba(255, 255, 255, 0.9);
}

.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.related-posts h3 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #00ffff;
    text-align: center;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.related-post-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.related-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.related-post-category {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.related-post-date {
    color: #888;
    font-weight: 500;
}

.related-post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.related-post-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-title a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.related-post-excerpt {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 1rem;
}

.comments-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.comments-placeholder {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.comments-placeholder h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #00ffff;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.comments-placeholder p {
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.social-share .share-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.social-share .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-share .share-btn.twitter {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.social-share .share-btn.linkedin {
    background: linear-gradient(45deg, #0077b5, #005885);
}

.social-share .share-btn.copy {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
}

.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

.error-message {
    text-align: center;
    padding: 4rem 3rem;
    background: white;
    border-radius: 20px;
    border: 3px dashed #dee2e6;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.error-message h2 {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.error-message p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.loading-placeholder {
    animation: pulse 2s infinite;
}

.loading-line {
    height: 20px;
    background: linear-gradient(90deg, #f1f3f4, #e9ecef, #f1f3f4);
    margin-bottom: 12px;
    border-radius: 4px;
    animation: loading-shimmer 2s infinite;
}

.loading-line:nth-child(2) {
    width: 80%;
}

.loading-line:nth-child(3) {
    width: 60%;
}

.loading-line:nth-child(4) {
    width: 90%;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes loading-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }

    .article-layout {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
    }

    .blog-hero h1 {
        font-size: 2.8rem;
    }

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

    .filter-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        order: 2;
        position: static;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 3rem 0;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .article-excerpt {
        font-size: 1.2rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .article-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        order: -1;
        position: static;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-post {
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-post.prev-post {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .social-share {
        flex-direction: column;
        align-items: center;
    }

    .post-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .post-card {
        margin: 0 10px;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .article-header .container,
    .blog-hero .container {
        padding: 0 15px;
    }
}

/* Active navigation state */
.nav-menu a.active {
    color: #667eea;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Enhanced transitions for smooth animations */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Print styles */
@media print {

    .blog-sidebar,
    .article-actions,
    .post-navigation,
    .comments-section {
        display: none;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .post-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Compact Footer Styles */
footer {
    background: #0a0a0a !important;
    padding: 1.5rem 0 !important;
    border-top: 1px solid rgba(0, 255, 255, 0.2) !important;
}

footer::before {
    display: none !important;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.footer-info,
.footer-links,
.footer-bottom {
    display: none !important;
}

.footer-copyright {
    color: #808080;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

.footer-content .social-links {
    display: flex !important;
    gap: 0.75rem !important;
    margin: 0 !important;
}

.footer-content .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 50% !important;
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(0, 255, 255, 0.1) !important;
}

.footer-svg {
    width: 20px;
    height: 20px;
    fill: #e0e0e0;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.4));
    transition: all 0.3s ease !important;
}

.social-link:hover {
    border-color: rgba(0, 255, 255, 0.5) !important;
    transform: translateY(-4px) !important;
    background: rgba(0, 255, 255, 0.05) !important;
}

.social-link:hover .footer-svg {
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
    transform: scale(1.1);
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0 !important;
    }

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

    .footer-copyright {
        text-align: center;
    }
}

/* Community Discussion Section */
.community-discussion {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.discussion-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.discussion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.discussion-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.discussion-content p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.discussion-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.discussion-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.share-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-actions span {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-circle-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .discussion-card {
        padding: 2rem;
    }

    .discussion-actions {
        flex-direction: column;
    }

    .discussion-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Project Pages & Themes */
.project-page {
    background: #0a0a0a;
}

/* Project Hero */
.project-hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
    overflow: hidden;
    position: relative;
}

.project-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.project-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.project-summary {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ui-mockup,
.hero-concept-art,
.concept-visual {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.concept-visual:hover {
    transform: scale(1.02);
    border-color: rgba(0, 255, 255, 0.3);
}

/* Karl Theme Accents */
.karl-theme .highlight {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Etrath Theme Accents */
.etrath-theme .highlight {
    background: linear-gradient(45deg, #2ecc71, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.etrath-theme .project-badge {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.2);
}

/* Project Sub-Nav */
.project-nav {
    position: sticky;
    top: 80px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 1rem 0;
}

.project-nav a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-nav a:hover {
    color: #fff;
}

/* Project Sections */
.project-details,
.features-section,
.lore-section,
.books-section {
    padding: 8rem 0;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.details-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.details-text p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.details-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card .stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Features Grid */
.features-grid,
.lore-grid {
    display: grid;
    /* Max 3 columns on standard screens */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card,
.lore-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover,
.lore-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon,
.lore-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.feature-card h3,
.lore-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.feature-card p,
.lore-card p {
    color: #888;
    line-height: 1.7;
}

/* Books Grid */
.books-grid {
    display: grid;
    /* Switch to single column when cards get too narrow (approx 450px) */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.book-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(46, 204, 113, 0.2);
}

.book-cover-container {
    width: 33.333%;
    min-width: 33.333%;
    flex: 0 0 33.333%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.book-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Fill the container space completely */
    object-position: center;
    transition: transform 0.5s ease;
    padding: 0;
    /* Remove padding to fix 'smaller than space' issue */
}

.book-card:hover .book-cover {
    transform: scale(1.05);
    /* Smooth zoom effect */
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.book-cover-placeholder span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1rem;
}

.book-cover-placeholder h3 {
    font-size: 1.2rem;
    color: #888;
}

.book-info {
    width: 66.666%;
    flex: 1;
    padding: 1.5rem 1.5rem 0.5rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.book-text {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 0.75rem;
    /* Reduced margin */
}

/* Custom Scrollbar for better aesthetics */
.book-text::-webkit-scrollbar {
    width: 4px;
}

.book-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.book-text::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.2);
    border-radius: 4px;
}

.book-text::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 204, 113, 0.4);
}

.book-actions {
    flex-shrink: 0;
    padding-top: 0.75rem;
    /* Reduced padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.book-tagline {
    color: #2ecc71;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.book-info h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.book-info p {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #555;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-card.coming-soon {
    opacity: 0.6;
}

/* Roadmap */
.roadmap {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.roadmap::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.roadmap-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.roadmap-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #222;
    border: 4px solid #111;
    z-index: 2;
}

.roadmap-item.completed .roadmap-dot {
    background: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.roadmap-item.active .roadmap-dot {
    background: #00ffff;
}

.roadmap-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.roadmap-content p {
    color: #888;
}

/* Project CTA */
.project-cta {
    padding: 10rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
}

.project-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.project-cta p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Process Stats */
.process-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.p-stat {
    display: flex;
    flex-direction: column;
}

.p-stat strong {
    font-size: 2rem;
    color: #fff;
}

.p-stat span {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Theme specifics */
.etrath-theme .stat-card .stat-num,
.etrath-theme .roadmap-item.completed .roadmap-dot,
.etrath-theme .roadmap-item.active .roadmap-dot {
    color: #2ecc71;
    background: #2ecc71;
}

.etrath-theme .roadmap-item.completed .roadmap-dot {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 992px) {

    /* Main Layout Stacking */
    .hero .container,
    .about-content,
    .contact-split,
    .contact-page-grid,
    .project-hero .container,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Centered Alignment */
    .hero-content,
    .project-hero .container,
    .details-grid {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .skills h3 {
        text-align: center;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .skill-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.25rem;
        height: 100%;
    }

    .profile-image-container {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1/1;
        margin: 0 auto;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-hero-content {
        order: 2;
    }

    .project-hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .project-summary {
        margin-left: auto;
        margin-right: auto;
    }

    .project-links {
        justify-content: center;
    }

    .details-stats {
        max-width: 500px;
        margin: 0 auto;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    /* Keep book card as row but ensure it fits */
    .book-card {
        height: auto;
        /* Allow height to grow if text is long */
        min-height: 250px;
    }

    .book-cover-container {
        /* Maintain 1/3 width even on mobile, as requested */
        width: 33.333%;
        min-width: 100px;
        /* Prevent it from getting too small */
        max-width: 150px;
    }

    .project-nav ul {
        gap: 1.5rem;
    }

    .project-nav a {
        font-size: 0.8rem;
    }
}

/* Contact SVG (Generic for contact form) */
.contact-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.4));
    transition: all 0.3s ease;
}

.social-card:hover .contact-svg,
.discord-cta:hover .contact-svg,
.contact-method:hover .contact-svg {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
    transform: scale(1.1);
}

/* 360px Mobile Optimization */

@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Prevent grid blowouts */
    .details-grid,
    .hero .container,
    .project-hero .container {
        grid-template-columns: 100%;
        min-width: 0;
    }

    .details-grid>*,
    .hero .container>*,
    .project-hero .container>*,
    .details-text {
        min-width: 0;
        /* Critical for flex/grid text wrapping */
        max-width: 100%;
    }

    /* Single column stats and compact cards */
    .details-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card .stat-num {
        font-size: 1.2rem;
    }

    .stat-card .stat-num {
        font-size: 1.2rem;
    }

    /* Features and Lore grids mobile opt */
    .features-grid,
    .lore-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card,
    .lore-card {
        padding: 1.5rem;
        text-align: center;
    }

    .feature-icon,
    .lore-icon {
        margin-bottom: 1rem;
        font-size: 2.5rem;
    }

    /* Stack buttons on small screens */
    /* Stack buttons on small screens */
    .project-links,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .project-links .btn,
    .cta-buttons .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* Reduce font sizes and enforce wrapping */
    .hero-content h1,
    .project-hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .section-title,
    .details-text h2,
    .project-cta h2,
    .about-text h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        color: #ffffff;
        margin-bottom: 1.5rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Fix timeline connector for small screens */
    .roadmap::before {
        left: 10px;
    }

    .roadmap-item {
        padding-left: 40px;
    }

    .roadmap-dot {
        left: 0;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .contact-split,
    .social-links-grid {
        gap: 1.5rem;
    }

    /* Contact Page grids mobile opt */
    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .support-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .social-card,
    .support-link {
        padding: 1rem !important;
        /* Force tight padding on mobile */
    }

    /* Project nav adjustments for small width */
    .project-nav ul {
        flex-wrap: wrap;
        gap: 1rem 0.5rem;
        justify-content: center;
    }

    .project-nav a {
        font-size: 0.75rem;
    }

}

/* Blog Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

.toggle-icon {
    font-weight: bold;
    color: #00ffff;
    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
    .blog-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        padding-right: 0;
        margin-bottom: 2rem;
        order: -1;
        width: 100%;
    }

    .mobile-sidebar-toggle {
        display: flex;
    }

    /* Hide content by default on mobile */
    .sidebar-content {
        display: none;
        padding-top: 1rem;
    }

    /* When active class is added via JS */
    .sidebar-content.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .mobile-sidebar-toggle.active {
        background: rgba(0, 255, 255, 0.15);
        border-color: #00ffff;
    }

    .mobile-sidebar-toggle.active .toggle-icon {
        transform: rotate(180deg);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Additional Mobile Tweaks */
@media (max-width: 480px) {

    /* Stack Article Meta */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .meta-item:not(:last-child)::after {
        content: none;
        /* Remove separators */
        margin: 0;
    }
}