﻿/* Projects Page Specific Styles */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(157, 78, 221, 0.6);
}

/* Quick Navigation Sidebar - Redesigned */
.quick-nav {
    position: fixed;
    top: 120px;
    right: -230px;
    background: rgba(26, 26, 26, 0.98);
    border: 2px solid rgba(157, 78, 221, 0.4);
    border-right: none;
    border-radius: 1rem 0 0 1rem;
    padding: 1rem;
    width: 220px;
    transition: right 0.3s ease;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.quick-nav * {
    pointer-events: auto;
}

.quick-nav.visible {
    right: -180px;
}

.quick-nav:hover,
.quick-nav.visible:hover {
    right: 0;
}

/* Back to Portfolio Button - Simplified and Always Clickable */
.back-to-portfolio-btn {
    display: block !important;
    background: linear-gradient(135deg, #06ffa5, #00f5ff) !important;
    color: #0a0a0a !important;
    text-decoration: none !important;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 15px rgba(6, 255, 165, 0.4);
    cursor: pointer !important;
    position: relative;
    z-index: 10001;
    border: none;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

.back-to-portfolio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 25px rgba(6, 255, 165, 0.6);
    background: linear-gradient(135deg, #00f5ff, #06ffa5) !important;
}

.back-to-portfolio-btn:active {
    transform: scale(0.98);
}

.back-to-portfolio-btn i {
    margin-right: 0.5rem;
    pointer-events: none;
}

.quick-nav h3 {
    color: #06ffa5;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(6, 255, 165, 0.3);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav li {
    margin-bottom: 0.5rem;
}

.quick-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    padding: 0.4rem;
    border-radius: 0.4rem;
}

.quick-nav a:hover {
    color: #06ffa5;
    background: rgba(6, 255, 165, 0.1);
    transform: translateX(3px);
}

.quick-nav a i {
    font-size: 0.85rem;
    width: 20px;
}

/* Enhanced Navigation for Projects Page */
body .navbar {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
}

body .nav-link {
    color: var(--text-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body .nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px var(--text-glow);
}

body .nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 15px var(--text-glow);
}

body .nav-link::after {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--primary-color);
}

body .nav-logo a {
    color: white !important;
    background: var(--gradient-graffiti);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.6));
}

/* Mobile menu styling for projects page */
@media (max-width: 768px) {
    body .nav-menu {
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(10px);
    }
    
    body .bar {
        background: white;
    }
}

/* Header Section */
.projects-header {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10rem 0 6rem;
    text-align: center;
    margin-top: 70px;
    border-bottom: 2px solid rgba(157, 78, 221, 0.3);
    position: relative;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(157, 78, 221, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--gradient-graffiti);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(157, 78, 221, 0.7));
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.page-subtitle {
    font-size: 1.35rem;
    color: var(--text-light) !important;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.4s forwards;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Projects Container */
.projects-container {
    padding: 3rem 0;
    max-width: 980px;
    background: var(--bg-secondary);
}

/* Project Detail Cards */
.project-accordion {
    background: var(--bg-accent);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    border: 2px solid rgba(157, 78, 221, 0.3);
}

.project-accordion:nth-child(2) { animation-delay: 0.1s; }
.project-accordion:nth-child(3) { animation-delay: 0.2s; }
.project-accordion:nth-child(4) { animation-delay: 0.3s; }
.project-accordion:nth-child(5) { animation-delay: 0.4s; }

.project-accordion:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

/* Project Headers */
.project-header {
    background: var(--bg-secondary);
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 2px solid rgba(157, 78, 221, 0.3);
}

.project-header h2 {
    font-size: 2.25rem;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-header h2 i {
    color: var(--primary-color);
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.6));
}

.project-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.badge.lua { 
    background: rgba(157, 78, 221, 0.15); 
    color: var(--primary-color); 
    border-color: rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}
.badge.typescript { 
    background: rgba(0, 245, 255, 0.15); 
    color: var(--secondary-color); 
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}
.badge.database { 
    background: rgba(255, 0, 110, 0.15); 
    color: var(--accent-color); 
    border-color: rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
}
.badge.realtime { 
    background: rgba(6, 255, 165, 0.15); 
    color: #06ffa5; 
    border-color: rgba(6, 255, 165, 0.3);
    box-shadow: 0 0 10px rgba(6, 255, 165, 0.2);
}
.badge.multiplayer { 
    background: rgba(58, 134, 255, 0.15); 
    color: var(--electric-blue); 
    border-color: rgba(58, 134, 255, 0.3);
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.2);
}
.badge.ui { 
    background: rgba(236, 72, 153, 0.15); 
    color: #ec4899; 
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}
.badge.animation { 
    background: rgba(6, 182, 212, 0.15); 
    color: #06b6d4; 
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.badge.zones { 
    background: rgba(132, 204, 22, 0.15); 
    color: #84cc16; 
    border-color: rgba(132, 204, 22, 0.3);
    box-shadow: 0 0 10px rgba(132, 204, 22, 0.2);
}
.badge.admin { 
    background: rgba(239, 68, 68, 0.2); 
    color: #ff4444; 
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Project Content */
.project-overview,
.code-section,
.technical-details {
    padding: 2rem 2.5rem;
}

.project-overview h3,
.code-section h3,
.technical-details h3 {
    font-size: 1.75rem;
    color: var(--text-primary) !important;
    margin-bottom: 1.75rem;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--gradient-graffiti);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.5));
}

.project-overview h3::after {
    content: none;
}

.project-overview p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-light) !important;
    margin-bottom: 2.75rem;
    font-weight: 400;
    max-width: 90%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary) !important;
    font-weight: 600;
    border: 2px solid rgba(157, 78, 221, 0.3);
}

.feature:hover {
    background: rgba(157, 78, 221, 0.2);
    color: var(--primary-color) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    border-color: var(--primary-color);
}

.feature i {
    color: var(--primary-color) !important;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    filter: drop-shadow(0 0 6px rgba(157, 78, 221, 0.5));
}

.feature:hover i {
    color: var(--secondary-color) !important;
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.7));
}

.feature span {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Code Section */
.code-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-top: 2px solid rgba(157, 78, 221, 0.3);
    border-bottom: 2px solid rgba(157, 78, 221, 0.3);
}

.code-block {
    margin-bottom: 3rem;
    background: var(--bg-accent);
    border-radius: 1.25rem;
    padding: 0;
    border: 2px solid rgba(157, 78, 221, 0.3);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.code-block h4 {
    color: var(--text-primary) !important;
    font-size: 1.0625rem;
    margin-bottom: 0;
    padding: 1.25rem 1.5rem;
    border-left: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--bg-secondary);
    border-bottom: 2px solid rgba(157, 78, 221, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.code-block h4::after {
    content: '⌄';
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 400;
}

.code-block pre {
    background: #1d1d1f !important;
    border-radius: 0 !important;
    padding: 1.75rem !important;
    margin: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 450px;
    border: none;
    position: relative;
    box-shadow: none;
}

.code-block pre::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.code-block pre::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 0;
}

.code-block pre::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.4);
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

.code-block pre::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 78, 221, 0.6);
}

.code-block pre::before {
    content: '';
    display: none;
}

.code-block pre code {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    display: block;
}

/* Syntax highlighting improvements */
.token.comment { color: #6b7280; font-style: italic; }
.token.keyword { color: var(--primary-color); font-weight: bold; }
.token.string { color: #06ffa5; }
.token.number { color: #ff006e; }
.token.function { color: var(--secondary-color); }
.token.operator { color: var(--text-light); }
.token.punctuation { color: var(--text-light); }

.technical-details ul {
    list-style: none;
    padding: 0;
}

.technical-details li {
    padding: 1.125rem 0;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    color: var(--text-light) !important;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.technical-details li::before {
    content: '✓';
    font-size: 1.125rem;
    color: var(--primary-color) !important;
    flex-shrink: 0;
    font-weight: 700;
    filter: drop-shadow(0 0 6px rgba(157, 78, 221, 0.6));
}

.technical-details li:last-child {
    border-bottom: none;
}

.technical-details strong {
    color: var(--text-primary) !important;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Back to Portfolio */
.back-to-portfolio {
    text-align: center;
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.back-to-portfolio .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-header {
        padding: 6rem 0 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .project-header,
    .project-overview,
    .code-section,
    .technical-details {
        padding: 2rem 1.75rem;
    }
    
    .project-overview p {
        max-width: 100%;
    }
    
    .project-header h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block pre {
        padding: 1.25rem !important;
        font-size: 0.75rem;
        max-height: 300px;
    }
    
    .code-block h4 {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .project-badges {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 2rem 0;
    }
    
    .project-accordion {
        margin-bottom: 2rem;
    }
    
    .project-header h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .code-block {
        border-radius: 1rem;
    }
    
    .code-block pre {
        overflow-x: scroll;
        max-height: 250px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-portfolio,
    .footer {
        display: none;
    }
    
    .projects-header {
        margin-top: 0;
        page-break-after: avoid;
    }
    
    .project-accordion {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .code-section {
        background: white !important;
        color: black !important;
    }
    
    .code-block pre {
        background: #f5f5f5 !important;
        color: black !important;
        border: 1px solid #ccc;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .project-accordion {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    .project-header {
        background: linear-gradient(135deg, var(--bg-dark), #1f2937);
    }
    
    .technical-details {
        background: var(--bg-dark);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .project-accordion {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .page-title,
    .page-subtitle {
        animation: none;
        opacity: 1;
    }
    
    .project-accordion:hover {
        transform: none;
    }
    
    .feature:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.project-accordion:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Code copy functionality */
.code-block {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.code-block:hover .copy-button {
    opacity: 1;
}

/* Download Section */
.download-section {
    padding: 3rem;
    background: var(--bg-accent);
    border-radius: 0;
    border: none;
    border-top: 2px solid rgba(157, 78, 221, 0.3);
}

.download-section h3 {
    color: var(--text-primary) !important;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.download-section h3::before {
    content: '↓';
    font-size: 1.75rem;
    color: var(--secondary-color);
    font-weight: 700;
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6));
}

.download-description {
    color: var(--text-light) !important;
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Dev Disclaimer Box */
.dev-disclaimer-box {
    background: rgba(255, 204, 0, 0.1);
    border: 2px solid rgba(255, 204, 0, 0.3);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.1);
}

.dev-disclaimer-box i {
    color: #ff9500;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.dev-disclaimer-box strong {
    color: #ea580c !important;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.dev-disclaimer-box div {
    flex: 1;
    color: var(--text-light) !important;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.dev-disclaimer-box div {
    flex: 1;
    color: #92400e;
    line-height: 1.6;
}

/* Free Download Badge */
.free-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Coming Soon Badge */
.coming-soon-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* WIP Disclaimer Box */
.wip-disclaimer-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.08));
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.wip-disclaimer-box i {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    animation: hammer-swing 1.5s infinite;
}

@keyframes hammer-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.wip-disclaimer-box strong {
    color: #ea580c;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.wip-disclaimer-box div {
    flex: 1;
    color: #92400e;
    line-height: 1.6;
}

/* Coming Soon Section */
.coming-soon-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
    border-radius: 1rem;
    border: 2px solid #f59e0b;
}

.coming-soon-section h3 {
    color: #ea580c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coming-soon-section h3 i {
    animation: pulse 2s infinite;
}

.coming-soon-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.development-status {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.development-status h4 {
    color: #ea580c;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.development-status ul {
    list-style: none;
    padding: 0;
}

.development-status li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.development-status li:last-child {
    border-bottom: none;
}

.stay-tuned {
    color: #ea580c;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
}

.code-preview-note {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0.25rem;
}

.featured-download {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.download-card:hover {
    border-color: #60a5fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #60a5fa;
    color: white;
    border-radius: 0.875rem;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.download-content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.download-content p {
    color: #c7c7cc;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.download-features {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.download-features h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.download-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-features li {
    padding: 0.875rem 0;
    color: #e8e8ed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.download-features li:last-child {
    border-bottom: none;
}

/* Free Download Badge */
.free-download {
    background: rgba(52, 199, 89, 0.15);
    color: #28a745;
    font-weight: 700;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.badge.framework {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
}

.badge.api {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
}

.badge.job {
    background: rgba(255, 149, 0, 0.08);
    color: #ff9500;
}

.badge.wip {
    background: rgba(255, 204, 0, 0.08);
    color: #ffcc00;
}

.badge.search {
    background: rgba(0, 113, 227, 0.15);
    color: #0071e3;
    border-color: rgba(0, 113, 227, 0.3);
}

/* Additional Badge Styles */
.badge.free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    font-weight: 700;
    border-color: #10b981;
}

.download-card:hover {
    border-color: rgba(157, 78, 221, 0.5) !important;
    background: rgba(157, 78, 221, 0.1) !important;
}

.featured-download .download-icon {
    background: var(--primary-color);
}

.badge.job {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Featured Download Card */
.featured-download {
    border: 2px solid var(--accent-color) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05)) !important;
}

.featured-download:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3) !important;
}

.featured-download .download-icon {
    background: linear-gradient(135deg, var(--accent-color), #059669) !important;
}

/* Enhanced Responsive Design for Downloads */
@media (max-width: 1200px) {
    /* Hide quick nav on tablet and mobile to prevent content overlap */
    .quick-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    
    /* Adjust back to top button on mobile */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .download-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .download-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .free-download {
        display: block;
        margin: 0.5rem 0 0 0;
        text-align: center;
        font-size: 0.75rem;
    }
}
/* â”€â”€ Accordion: compact collapsible project cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.project-accordion {
    margin-bottom: 1.25rem;   /* was 4rem â€” much more compact */
}
.project-accordion:not(.open):hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(157, 78, 221, 0.5) !important;
}
.project-accordion.open:hover {
    transform: translateY(-4px);
}
.project-accordion .project-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 4.5rem;
    transition: background 0.2s ease;
}
.project-accordion .project-header:hover {
    background: rgba(157, 78, 221, 0.04);
}
.proj-acc-summary {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
    margin: 0.4rem 0 0.85rem;
    line-height: 1.55;
}
.proj-acc-arrow {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 2rem;
    height: 2rem;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.75rem;
    transition: transform 0.35s ease, background 0.2s ease;
    pointer-events: none;
}
.project-accordion.open .proj-acc-arrow {
    transform: translateY(-50%) rotate(180deg);
    background: rgba(157, 78, 221, 0.2);
}
/* Hide all body sections when collapsed; show when open */
.project-accordion > *:not(.project-header) {
    display: none;
}
.project-accordion.open > *:not(.project-header) {
    display: block;
    animation: accFadeIn 0.22s ease;
}
@keyframes accFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}