/* Fakturify Project - Quantum Reality Design System */

:root {
    /* Core Colors */
    --quantum-black: #000000;
    --electric-yellow: #FFFF00;
    --reality-white: #FFFFFF;
    --void-grey: #1a1a1a;
    --neural-grey: #333333;
    
    /* Fakturify Specific Colors - Emerald & Neutrals with Glassmorphism */
    --fakturify-primary: #10b981;    /* emerald-500 */
    --fakturify-secondary: #6b7280;  /* neutral-500 */
    --fakturify-surface: #1f2937;    /* neutral-800 */
    --fakturify-surface-light: rgba(31, 41, 55, 0.8);  /* glassmorphism surface */
    --fakturify-surface-lighter: rgba(55, 65, 81, 0.6); /* glassmorphism lighter */
    --fakturify-dark: #111827;       /* neutral-900 */
    --fakturify-darker: #0f172a;     /* neutral-950 */
    --fakturify-border: rgba(107, 114, 128, 0.2);  /* neutral-500 with opacity */
    --fakturify-text: #f9fafb;       /* neutral-50 */
    --fakturify-text-muted: #d1d5db; /* neutral-300 */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-code: 'Space Mono', monospace;
    
    /* Spacing */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    
    /* Animation */
    --ease-quantum: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: var(--font-main);
    background: var(--fakturify-darker);
    color: var(--fakturify-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Quantum Navigation */
.quantum-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16,185,129,0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-identity {
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 700;
}

.identity-fragment {
    color: var(--reality-white);
}

.identity-quantum {
    color: var(--electric-yellow);
}

.nav-links {
    display: flex;
    gap: var(--space-3);
}

.nav-link {
    text-decoration: none;
    color: var(--reality-white);
    font-family: var(--font-code);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: all 0.3s var(--ease-quantum);
}

.nav-link:hover {
    color: var(--fakturify-primary);
    transform: translateY(-2px);
}

.link-code {
    color: var(--fakturify-primary);
    font-size: 0.8rem;
}

/* Project Hero */
.project-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-2);
    position: relative;
    overflow: hidden;
}

.hero-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.fragment-identity {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.project-meta {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.meta-year,
.meta-type {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--fakturify-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--fakturify-primary);
    background: rgba(16,185,129,0.1);
}

.project-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin: 0;
    line-height: 0.9;
}

.title-fragment {
    color: var(--reality-white);
}

.title-quantum {
    color: var(--fakturify-primary);
}

.identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.quantum-tag {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--reality-white);
    background: var(--fakturify-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.fragment-visual {
    display: flex;
    justify-content: center;
}

.project-showcase {
    position: relative;
    max-width: 500px;
    border: 2px solid var(--fakturify-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--ease-quantum);
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s var(--ease-quantum);
}

.project-showcase:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: var(--space-2);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-quantum);
}

.project-showcase:hover .showcase-overlay {
    transform: translateY(0);
}

.overlay-code {
    font-family: var(--font-code);
    color: var(--fakturify-primary);
    font-size: 0.9rem;
}

/* Project Overview */
.project-overview {
    padding: var(--space-4) var(--space-2);
    max-width: 1200px;
    margin: 0 auto;
}

.section-disruptor {
    font-family: var(--font-code);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--electric-yellow);
    text-align: center;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.quantum-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    color: var(--fakturify-text-muted);
    opacity: 0.9;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.principle-node {
    border: 1px solid var(--fakturify-border);
    padding: var(--space-3);
    background: var(--fakturify-surface-light);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.4s var(--ease-quantum);
    position: relative;
    overflow: hidden;
}

.principle-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--fakturify-primary);
    transition: left 0.4s var(--ease-quantum);
}

.principle-node:hover::before {
    left: 0;
}

.principle-node:hover {
    border-color: var(--fakturify-primary);
    background: rgba(16,185,129,0.1);
    transform: translateY(-5px);
}

.principle-node h3 {
    font-family: var(--font-code);
    color: var(--fakturify-primary);
    font-size: 1rem;
    margin: 0 0 var(--space-1) 0;
}

.principle-node p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Design Process */
.design-process {
    padding: var(--space-4) var(--space-2);
    background: rgba(16,185,129,0.02);
    border-top: 1px solid rgba(16,185,129,0.1);
    border-bottom: 1px solid rgba(16,185,129,0.1);
}

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

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.process-step {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    padding: var(--space-3);
    border: 1px solid var(--fakturify-border);
    background: var(--fakturify-surface-light);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.4s var(--ease-quantum);
    position: relative;
}

.process-step:hover {
    border-color: var(--fakturify-primary);
    background: rgba(16,185,129,0.05);
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fakturify-primary);
    width: 60px;
    height: 60px;
    border: 2px solid var(--fakturify-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(16,185,129,0.1);
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-code);
    color: var(--fakturify-primary);
    font-size: 1rem;
    margin: 0 0 var(--space-1) 0;
    font-weight: 600;
}

.step-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Dashboard Gallery */
.dashboard-gallery {
    padding: var(--space-4) var(--space-2) var(--space-2) var(--space-2);
    max-width: 1400px;
    margin: 0 auto;
}

.quantum-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 150px);
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.gallery-portal {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--fakturify-primary);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-quantum);
    cursor: pointer;
}

/* Dashboard Main (large) */
.gallery-portal.dashboard-main {
    grid-column: span 8;
    grid-row: span 3;
}

/* Invoice View */
.gallery-portal.invoice-view {
    grid-column: span 4;
    grid-row: span 3;
}

/* Invoice Detail */
.gallery-portal.invoice-detail {
    grid-column: span 6;
    grid-row: span 3;
}

/* Analytics View */
.gallery-portal.analytics-view {
    grid-column: span 6;
    grid-row: span 3;
}

.portal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-quantum);
}

.gallery-portal:hover .portal-image {
    transform: scale(1.1);
}

.portal-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: var(--space-2);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-quantum);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gallery-portal:hover .portal-meta {
    transform: translateY(0);
}

.meta-tag {
    font-family: var(--font-code);
    color: var(--fakturify-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.meta-desc {
    font-family: var(--font-main);
    color: var(--reality-white);
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Features Showcase */
.features-showcase {
    padding: var(--space-4) var(--space-2);
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.feature-quantum {
    border: 1px solid var(--fakturify-border);
    padding: var(--space-3);
    background: var(--fakturify-surface-light);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.4s var(--ease-quantum);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-quantum::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--fakturify-primary);
    transition: left 0.4s var(--ease-quantum);
}

.feature-quantum:hover::before {
    left: 0;
}

.feature-quantum:hover {
    border-color: var(--fakturify-primary);
    background: rgba(16,185,129,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-quantum);
}

.feature-icon i {
    width: 36px;
    height: 36px;
    color: var(--fakturify-secondary);
    transition: color 0.4s var(--ease-quantum);
}

.feature-quantum:hover .feature-icon i {
    color: var(--fakturify-primary);
    transform: scale(1.1);
}

.feature-title {
    font-family: var(--font-code);
    color: var(--fakturify-primary);
    font-size: 1rem;
    margin: 0 0 var(--space-1) 0;
    font-weight: 600;
}

.feature-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Design System */
.design-system {
    padding: var(--space-4) var(--space-2);
    background: rgba(16,185,129,0.02);
    border-top: 1px solid rgba(16,185,129,0.1);
}

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

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.system-component {
    border: 1px solid var(--fakturify-border);
    padding: var(--space-3);
    background: var(--fakturify-surface-light);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.4s var(--ease-quantum);
}

.system-component:hover {
    border-color: var(--fakturify-primary);
    background: rgba(16,185,129,0.1);
    transform: translateY(-5px);
}

.system-component h3 {
    font-family: var(--font-code);
    color: var(--fakturify-primary);
    font-size: 1rem;
    margin: 0 0 var(--space-2) 0;
    font-weight: 600;
}

.color-swatches {
    display: flex;
    gap: var(--space-1);
    margin-top: var(--space-1);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s var(--ease-quantum);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.typography-samples {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.type-sample.heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fakturify-text);
}

.type-sample.body {
    font-size: 1rem;
    color: var(--fakturify-text-muted);
    opacity: 0.8;
}

.type-sample.code {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--fakturify-primary);
}

.component-samples {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sample-button {
    padding: 0.8rem 1.5rem;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-quantum);
    text-align: center;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.sample-button.primary {
    background: var(--fakturify-primary);
    color: var(--reality-white);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.sample-button.primary:hover {
    background: #059669; /* emerald-600 */
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.4);
}

.sample-button.secondary {
    background: var(--fakturify-surface-light);
    color: var(--fakturify-text);
    border: 1px solid var(--fakturify-border);
    backdrop-filter: blur(10px);
}

.sample-button.secondary:hover {
    background: var(--fakturify-surface);
    border-color: var(--fakturify-border);
    color: var(--reality-white);
    transform: scale(1.02);
}

.sample-card {
    padding: var(--space-2);
    border: 1px solid var(--fakturify-border);
    background: var(--fakturify-surface-light);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--fakturify-text);
}

/* Navigation Matrix */
.navigation-matrix {
    padding: var(--space-2) var(--space-2) var(--space-4) var(--space-2);
    max-width: 1200px;
    margin: 0 auto;
}

.navigation-matrix .nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}

.nav-portal {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--reality-white);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 1rem;
    padding: var(--space-2);
    border: 1px solid rgba(16,185,129,0.3);
    transition: all 0.4s var(--ease-quantum);
    position: relative;
    overflow: hidden;
}

.nav-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(16,185,129,0.1);
    transition: left 0.4s var(--ease-quantum);
}

.nav-portal:hover::before {
    left: 0;
}

.nav-portal:hover {
    border-color: var(--fakturify-primary);
    transform: translateY(-2px);
}

.portal-icon {
    font-size: 1.2rem;
    color: var(--fakturify-primary);
    z-index: 1;
    position: relative;
}

.portal-text {
    z-index: 1;
    position: relative;
}

/* Reality Footer */
.reality-footer {
    padding: var(--space-4) var(--space-2);
    border-top: 1px solid rgba(16,185,129,0.2);
    background: rgba(0,0,0,0.5);
}

.footer-essence {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

.copyright {
    color: var(--reality-white);
}

.footer-meta {
    color: var(--fakturify-primary);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-2);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid var(--fakturify-primary);
    box-shadow: 0 0 30px rgba(16,185,129,0.4);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    line-height: 1;
    color: var(--reality-white);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    text-shadow: 0 0 8px rgba(16,185,129,0.8);
}

/* Particle System */
.particle-universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--fakturify-primary);
    border-radius: 50%;
    animation: quantum-float var(--duration) infinite linear;
    animation-delay: var(--delay);
    opacity: 0.6;
}

@keyframes quantum-float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10px) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(1) { left: 10%; }
.particle:nth-child(2) { left: 30%; }
.particle:nth-child(3) { left: 50%; }
.particle:nth-child(4) { left: 70%; }
.particle:nth-child(5) { left: 90%; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-matrix {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        text-align: center;
    }
    
    .nav-links {
        gap: var(--space-2);
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .quantum-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--space-2);
    }
    
    .gallery-portal.dashboard-main,
    .gallery-portal.invoice-view,
    .gallery-portal.invoice-detail,
    .gallery-portal.analytics-view {
        grid-column: 1;
        grid-row: auto;
        height: 250px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .nav-portal {
        justify-content: center;
    }
    
    .footer-essence {
        flex-direction: column;
        gap: var(--space-1);
        text-align: center;
    }
}
