/* Aalborg Kommune Project - Quantum Reality Design System */

:root {
    /* Core Colors */
    --quantum-black: #000000;
    --electric-yellow: #FFFF00;
    --reality-white: #FFFFFF;
    --void-grey: #1a1a1a;
    --neural-grey: #333333;
    
    /* Aalborg Kommune Specific Colors */
    --ak-primary: #348AC7;
    --ak-accent: #5B9BD5;
    --ak-highlight: #7BA3D1;
    --ak-dark: #1F5F8B;
    
    /* 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(--quantum-black);
    color: var(--reality-white);
    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(52,138,199,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(--ak-primary);
    transform: translateY(-2px);
}

.link-code {
    color: var(--ak-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(--ak-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--ak-primary);
    background: rgba(52,138,199,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(--ak-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(--quantum-black);
    background: var(--ak-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 0;
}

.fragment-visual {
    display: flex;
    justify-content: center;
}

.project-showcase {
    position: relative;
    max-width: 500px;
    border: 2px solid var(--ak-primary);
    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(--ak-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(--reality-white);
    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 rgba(52,138,199,0.3);
    padding: var(--space-3);
    background: rgba(52,138,199,0.05);
    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(--ak-primary);
    transition: left 0.4s var(--ease-quantum);
}

.principle-node:hover::before {
    left: 0;
}

.principle-node:hover {
    border-color: var(--ak-primary);
    background: rgba(52,138,199,0.1);
    transform: translateY(-5px);
}

.principle-node h3 {
    font-family: var(--font-code);
    color: var(--ak-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;
}

/* Project Gallery */
.project-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(--ak-primary);
    transition: all 0.4s var(--ease-quantum);
    cursor: pointer;
}

/* Hero showcase - Main Campaign (large) */
.gallery-portal.hero {
    grid-column: span 7;
    grid-row: span 3;
}

/* Poster Design 1 */
.gallery-portal.poster1 {
    grid-column: span 5;
    grid-row: span 2;
}

/* Poster Design 2 */
.gallery-portal.poster2 {
    grid-column: span 5;
    grid-row: span 2;
}

/* Campaign Layout */
.gallery-portal.layout {
    grid-column: span 7;
    grid-row: span 1;
}

/* Video Portal */
.gallery-portal.video-portal {
    grid-column: span 5;
    grid-row: span 3;
}

.portal-image,
.portal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-quantum);
}

.gallery-portal:hover .portal-image,
.gallery-portal:hover .portal-video {
    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(--ak-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;
}

/* Values Showcase */
.values-showcase {
    padding: var(--space-4) var(--space-2);
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.value-quantum {
    border: 1px solid rgba(52,138,199,0.3);
    padding: var(--space-3);
    background: rgba(52,138,199,0.05);
    transition: all 0.4s var(--ease-quantum);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-quantum::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--ak-primary);
    transition: left 0.4s var(--ease-quantum);
}

.value-quantum:hover::before {
    left: 0;
}

.value-quantum:hover {
    border-color: var(--ak-primary);
    background: rgba(52,138,199,0.1);
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-2);
    border-radius: 50%;
    background: rgba(52,138,199,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(52,138,199,0.3);
    transition: all 0.4s var(--ease-quantum);
}

.value-quantum:hover .value-icon {
    border-color: var(--ak-primary);
    background: rgba(52,138,199,0.2);
}

.icon-image {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.4s var(--ease-quantum);
}

.value-quantum:hover .icon-image {
    filter: brightness(0) saturate(100%) invert(40%) sepia(51%) saturate(1481%) hue-rotate(194deg) brightness(91%) contrast(87%);
    opacity: 1;
}

.value-title {
    font-family: var(--font-code);
    color: var(--ak-primary);
    font-size: 1rem;
    margin: 0 0 var(--space-1) 0;
    font-weight: 600;
}

.value-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* 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(52,138,199,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(52,138,199,0.1);
    transition: left 0.4s var(--ease-quantum);
}

.nav-portal:hover::before {
    left: 0;
}

.nav-portal:hover {
    border-color: var(--ak-primary);
    transform: translateY(-2px);
}

.portal-icon {
    font-size: 1.2rem;
    color: var(--ak-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(52,138,199,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(--ak-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(--ak-primary);
    box-shadow: 0 0 30px rgba(52,138,199,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(52,138,199,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(--ak-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.hero,
    .gallery-portal.poster1,
    .gallery-portal.poster2,
    .gallery-portal.layout,
    .gallery-portal.video-portal {
        grid-column: 1;
        grid-row: auto;
        height: 250px;
    }
    
    .values-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;
    }
}
