/* Projects Page Styles - Matching Screenshot Design */

/* Hide Starfield Canvas (White Dots) - Projects Page */
body:has(.projects-shell) #starfield {
    display: none;
}

/* Fully Black Background - No Gradients, No Dots */
body:has(.projects-shell) .app-background {
    background: #000000;
}

body:has(.projects-shell) .app-background::before {
    display: none;
}

/* Remove Grid Overlay */
.grid-overlay {
    display: none;
}

/* Remove Particles Overlay */
.particles-overlay {
    display: none;
}

/* Projects Shell */
.projects-shell {
    padding-top: 120px;
    padding-bottom: 120px;
    max-width: 1400px;
}

/* Ensure body background is fully black on projects page */
body:has(.projects-shell) {
    background: #000000;
}

/* Projects Header */
.projects-header {
    text-align: center;
    margin-bottom: 120px;
    padding: 0 var(--spacing-6);
}

.projects-title {
    font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: var(--spacing-6) 0 var(--spacing-8) 0;
}

.projects-title .highlight {
    color: var(--text-primary);
}

.projects-subtitle {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Buttons */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-4);
    margin-bottom: 80px;
    padding: 0 var(--spacing-6);
}

.filter-btn {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(242, 245, 250, 0.1);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    cursor: pointer;
    transition: all var(--duration-base) var(--easing-standard);
    outline: none;
}

.filter-btn:hover {
    font-weight: 700;
    color: var(--text-primary);
    border-color: rgba(242, 245, 250, 0.3);
    background: rgba(242, 245, 250, 0.05);
}

.filter-btn:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.filter-btn.active {
    font-weight: 700;
    color: var(--text-primary);
    border-color: rgba(242, 245, 250, 0.3);
    background: rgba(242, 245, 250, 0.1);
}

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 6px 12px;
    background: rgba(242, 245, 250, 0.1);
    border: 1px solid rgba(242, 245, 250, 0.2);
    border-radius: var(--radius-pill);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--spacing-6);
}

.label-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 160px;
    padding: 0 var(--spacing-6);
}

/* Project Section */
.project-section {
    position: relative;
    opacity: 0;
    transform: scale(0.9) translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                display 0.3s ease;
}

/* Pop-up Animation on Scroll */
.project-section.popup-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Hidden projects (filtered out) */
.project-section.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9) translateY(50px);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Default: text left (column 1), visual right (column 2) */
.project-text {
    grid-column: 1;
}

.project-visual {
    grid-column: 2;
}

/* Reverse: visual left (column 1), text right (column 2) */
.project-content.reverse .project-visual {
    grid-column: 1;
}

.project-content.reverse .project-text {
    grid-column: 2;
}

/* Project Text */
.project-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.project-text .section-label {
    margin-bottom: var(--spacing-4);
}

.project-text .project-title {
    margin-bottom: var(--spacing-6);
}

.project-text .project-description {
    margin-bottom: var(--spacing-6);
    flex: 1;
}

.project-title {
    font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all var(--duration-base) var(--easing-standard);
    position: relative;
}

.project-title:hover {
    opacity: 0.85;
    transform: translateX(4px);
}

.project-title:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 4px;
}

.project-title .highlight {
    color: var(--text-primary);
    transition: opacity var(--duration-base) var(--easing-standard);
}

.project-title:hover .highlight {
    opacity: 0.9;
}

.project-description {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Project Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    margin-top: var(--spacing-4);
}

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(242, 245, 250, 0.1);
    border: 1px solid rgba(242, 245, 250, 0.2);
    border-radius: var(--radius-sm);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Project Visual */
.project-visual {
    position: relative;
}

.visual-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

.visual-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(242, 245, 250, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.visual-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 245, 250, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid rgba(242, 245, 250, 0.1);
    margin-bottom: var(--spacing-4);
}

.mockup-dots {
    display: flex;
    gap: var(--spacing-2);
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(242, 245, 250, 0.4);
}

.mockup-dots span:nth-child(1) {
    background: rgba(239, 68, 68, 0.5);
}

.mockup-dots span:nth-child(2) {
    background: rgba(234, 179, 8, 0.5);
}

.mockup-dots span:nth-child(3) {
    background: rgba(34, 197, 94, 0.5);
}

.mockup-content {
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
}

/* Chart Placeholder */
.chart-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--spacing-4);
    width: 100%;
    height: 100%;
}

.chart-bar {
    flex: 1;
    max-width: 60px;
    background: rgba(242, 245, 250, 0.6);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    animation: barGrow 1s ease-out;
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

/* Neural Network Visualization */
.neural-network {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-6);
    width: 100%;
    height: 100%;
    position: relative;
}

.network-layer {
    display: flex;
    gap: var(--spacing-6);
    align-items: center;
}

.network-connections {
    width: 2px;
    height: 40px;
    background: rgba(242, 245, 250, 0.2);
    margin: var(--spacing-2) 0;
}

.node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(242, 245, 250, 0.3);
    border: 2px solid rgba(242, 245, 250, 0.4);
    box-shadow: 0 0 20px rgba(242, 245, 250, 0.2);
    animation: nodePulse 2s ease-in-out infinite;
}

.node:nth-child(2) {
    animation-delay: 0.3s;
}

.node:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
    width: 100%;
    height: 100%;
}

.dashboard-card {
    background: rgba(242, 245, 250, 0.05);
    border: 1px solid rgba(242, 245, 250, 0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: cardFadeIn 0.6s ease-out;
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 0.3s;
}

.dashboard-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Interface Visualization */
.chat-interface {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    width: 100%;
    height: 100%;
    padding: var(--spacing-2);
    justify-content: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    animation: bubbleFadeIn 0.4s ease-out;
}

.chat-bubble.user {
    background: rgba(242, 245, 250, 0.15);
    color: var(--text-primary);
    align-self: flex-end;
    border: 1px solid rgba(242, 245, 250, 0.2);
}

.chat-bubble.bot {
    background: rgba(242, 245, 250, 0.1);
    color: var(--text-secondary);
    align-self: flex-start;
    border: 1px solid rgba(242, 245, 250, 0.15);
}

.chat-bubble:nth-child(1) { animation-delay: 0.1s; }
.chat-bubble:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble:nth-child(3) { animation-delay: 0.3s; }
.chat-bubble:nth-child(4) { animation-delay: 0.4s; }

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Data Flow Visualization */
.data-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-6);
    width: 100%;
    height: 100%;
}

.flow-node {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(242, 245, 250, 0.15);
    border: 2px solid rgba(242, 245, 250, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: flowPulse 2s ease-in-out infinite;
}

.flow-node:nth-child(3) {
    animation-delay: 0.4s;
}

.flow-node:nth-child(5) {
    animation-delay: 0.8s;
}

.flow-arrow {
    color: rgba(242, 245, 250, 0.5);
    font-size: 24px;
    font-weight: 300;
}

@keyframes flowPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(242, 245, 250, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(242, 245, 250, 0.15);
    }
}

/* Active Nav Link */
.nav-link.active {
    color: var(--text-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }


    .projects-title {
        font-size: 48px;
    }

    .project-title {
        font-size: 36px;
    }

    .projects-container {
        gap: 100px;
    }
}

@media (max-width: 768px) {
    .projects-shell {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .projects-header {
        margin-bottom: 80px;
    }

    .projects-title {
        font-size: 36px;
    }

    .projects-subtitle {
        font-size: 16px;
    }

    .projects-filters {
        gap: var(--spacing-3);
        margin-bottom: 60px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 6px 16px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-description {
        font-size: 15px;
    }

    .projects-container {
        gap: 80px;
        padding: 0 var(--spacing-4);
    }

    .project-content {
        gap: var(--spacing-8);
    }

    .visual-container {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .projects-title {
        font-size: 28px;
    }

    .project-title {
        font-size: 24px;
    }

    .section-label {
        font-size: 10px;
        padding: 4px 10px;
    }

    .tech-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .grid-overlay,
    .particles-overlay,
    .chart-bar,
    .node,
    .dashboard-card,
    .flow-node {
        animation: none;
    }

    .grid-overlay {
        opacity: 0.3;
    }

    .particles-overlay {
        opacity: 0.4;
    }
}

