@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8EDF2 25%, #F5F7FA 50%, #EBF0F5 75%, #F2F4F7 100%);
    color: #2C3E50;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Urban grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(100, 120, 140, 0.03) 50px, rgba(100, 120, 140, 0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(100, 120, 140, 0.03) 50px, rgba(100, 120, 140, 0.03) 51px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Subtle urban glow */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(100, 150, 180, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(120, 140, 160, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(90, 130, 170, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: urbanPulse 20s ease-in-out infinite alternate;
}

@keyframes urbanPulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Modern Header */
header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #6B9BD1, #7BA5CC, #8BB0D8, #5A8FC7) 1;
    padding: 2rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(100, 120, 140, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 200px;
}

.site-title a {
    text-decoration: none;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4A7BA7 0%, #6B9BD1 35%, #8BB0D8 70%, #5A8FC7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    position: relative;
    filter: drop-shadow(0 0 12px rgba(107, 155, 209, 0.15));
}

.site-title a:hover {
    filter: drop-shadow(0 0 25px rgba(107, 155, 209, 0.3));
    letter-spacing: 12px;
}

.site-tagline {
    font-size: 1.1rem;
    background: linear-gradient(90deg, #5A8FC7, #6B9BD1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

/* Navigation Menu */
#menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

#menu li {
    margin: 0 1.5rem;
    font-size: 1rem;
    line-height: 2.5rem;
    position: relative;
}

#menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6B9BD1, #8BB0D8);
    transition: width 0.4s ease;
}

#menu li:hover::before {
    width: 100%;
}

#menu a {
    text-decoration: none;
    color: #4A7BA7;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

#menu li:hover a {
    color: #6B9BD1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4A7BA7 0%, #6B9BD1 30%, #8BB0D8 60%, #5A8FC7 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 20px;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(107, 155, 209, 0.15));
}

.hero-subtitle {
    font-size: 2rem;
    background: linear-gradient(90deg, #5A8FC7, #6B9BD1, #8BB0D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Urban Installation SVG */
.installation-svg {
    width: 100%;
    height: 500px;
    margin-top: 3rem;
}

/* SVG Animations */
.bench-element {
    animation: benchFloat 6s ease-in-out infinite;
}

@keyframes benchFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.bench-element:nth-child(2) {
    animation-delay: 1s;
}

.bench-element:nth-child(3) {
    animation-delay: 2s;
}

.urban-particle {
    opacity: 0;
    animation: urbanParticleFloat 5s ease-in-out infinite;
}

@keyframes urbanParticleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-40px) scale(1);
    }
}

.building-silhouette {
    animation: buildingPulse 8s ease-in-out infinite;
}

@keyframes buildingPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.street-lamp {
    animation: lampGlow 4s ease-in-out infinite;
}

@keyframes lampGlow {

    0%,
    100% {
        opacity: 0.7;
        filter: blur(0px);
    }

    50% {
        opacity: 1;
        filter: blur(2px);
    }
}

/* Gallery Section */
.installation-gallery {
    max-width: 1600px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

.category-section {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4A7BA7 0%, #6B9BD1 50%, #8BB0D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 30px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 85%;
    background: linear-gradient(180deg, #6B9BD1, #8BB0D8);
    box-shadow: 0 0 15px rgba(107, 155, 209, 0.3);
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    justify-items: center;
}

.gallery-grid .installation-card {
    max-width: 550px;
    width: 100%;
}

/* Installation Card Design */
.installation-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.installation-card:hover {
    transform: translateY(-15px) scale(1.03);
    z-index: 10;
}

/* Card container */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.96), rgba(248, 249, 250, 0.94)),
        linear-gradient(135deg, #6B9BD1, #8BB0D8, #7BA5CC);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 40px rgba(100, 120, 140, 0.12),
        0 0 50px rgba(255, 255, 255, 0.9) inset;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.installation-card:hover .card-container {
    box-shadow: 0 20px 60px rgba(107, 155, 209, 0.25),
        0 0 70px rgba(255, 255, 255, 0.95) inset;
}

/* Urban overlay */
.urban-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(107, 155, 209, 0.06) 50%,
            transparent 70%);
    animation: urbanShift 3s linear infinite;
}

@keyframes urbanShift {
    0% {
        background-position: -200% 0;
    }

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

.installation-card:hover .urban-overlay {
    opacity: 1;
}

/* Geometric effects */
.geometric-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.installation-card:hover .geometric-effects {
    opacity: 1;
}

.geo-element {
    position: absolute;
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid;
    animation: geoFloat 4s ease-in-out infinite;
}

.geo-element:nth-child(1) {
    border-color: #6B9BD1;
    left: 12%;
    top: 15%;
    border-radius: 50%;
    animation-delay: 0s;
}

.geo-element:nth-child(2) {
    border-color: #8BB0D8;
    left: 30%;
    top: 35%;
    animation-delay: 0.5s;
}

.geo-element:nth-child(3) {
    border-color: #5A8FC7;
    left: 50%;
    top: 25%;
    border-radius: 50%;
    animation-delay: 1s;
}

.geo-element:nth-child(4) {
    border-color: #7BA5CC;
    left: 70%;
    top: 45%;
    animation-delay: 1.5s;
}

.geo-element:nth-child(5) {
    border-color: #6B9BD1;
    left: 88%;
    top: 20%;
    border-radius: 50%;
    animation-delay: 2s;
}

@keyframes geoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.3);
        opacity: 1;
    }
}

/* Scan effect */
.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(107, 155, 209, 0.12),
            rgba(139, 176, 216, 0.08),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.installation-card:hover .scan-line {
    animation: scanEffect 2s ease-in-out;
}

@keyframes scanEffect {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Image Container */
.installation-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

/* Portrait orientation - manually add this class to portrait images */
.installation-image-wrapper.portrait {
    aspect-ratio: 3/4;
}

.installation-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(107, 155, 209, 0.08) 0%,
            transparent 50%,
            rgba(139, 176, 216, 0.06) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.installation-card:hover .installation-image-wrapper::before {
    opacity: 0.8;
}

.installation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.95) contrast(1.02) brightness(1.05);
}

.installation-card:hover .installation-image {
    transform: scale(1.15);
    filter: saturate(1.1) contrast(1.05) brightness(1.1);
}

/* Info Overlay */
.installation-info {
    position: relative;
    padding: 2.5rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(248, 249, 250, 0.94) 70%,
            transparent 100%);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 0 0 16px 16px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #6B9BD1, #8BB0D8) 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.installation-name {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4A7BA7 0%, #6B9BD1 50%, #8BB0D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.4s ease;
}

.installation-card:hover .installation-name {
    letter-spacing: 6px;
}

/* Corner markers */
.corner-marker {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.6s ease;
    width: 40px;
    height: 40px;
    border: 2px solid;
}

.marker-tl {
    top: 15px;
    left: 15px;
    border-color: #6B9BD1 transparent transparent #6B9BD1;
    border-radius: 6px 0 0 0;
}

.marker-tr {
    top: 15px;
    right: 15px;
    border-color: #8BB0D8 #8BB0D8 transparent transparent;
    border-radius: 0 6px 0 0;
}

.marker-bl {
    bottom: 15px;
    left: 15px;
    border-color: transparent transparent #7BA5CC #7BA5CC;
    border-radius: 0 0 0 6px;
}

.marker-br {
    bottom: 15px;
    right: 15px;
    border-color: transparent #5A8FC7 #5A8FC7 transparent;
    border-radius: 0 0 6px 0;
}

.installation-card:hover .corner-marker {
    box-shadow: 0 0 20px currentColor;
}

.installation-card:hover .marker-tl,
.installation-card:hover .marker-br {
    width: 50px;
    height: 50px;
}

.installation-card:hover .marker-tr,
.installation-card:hover .marker-bl {
    width: 50px;
    height: 50px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 250, 0.96) 100%);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #6B9BD1, #8BB0D8, #7BA5CC) 1;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -8px 30px rgba(100, 120, 140, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4A7BA7 0%, #6B9BD1 50%, #8BB0D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    padding: 0.5rem;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        linear-gradient(90deg, #6B9BD1, #8BB0D8, #7BA5CC);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(107, 155, 209, 0.08) inset;
}

#langlist li {
    display: inline-block;
    list-style: none;
    margin: 0.3rem;
    padding: 0.8rem 1.4rem;
    border-radius: 25px;
    transition: all 0.4s ease;
}

#langlist a {
    text-decoration: none;
    color: #4A7BA7;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #6B9BD1, #8BB0D8);
    box-shadow: 0 0 20px rgba(107, 155, 209, 0.25);
}

#langlist .highlight a {
    color: #FFFFFF;
    font-weight: 700;
}

#langlist li:not(.highlight):hover {
    background: linear-gradient(135deg, rgba(107, 155, 209, 0.12), rgba(139, 176, 216, 0.12));
    box-shadow: 0 0 15px rgba(107, 155, 209, 0.15);
}

#langlist li:not(.highlight):hover a {
    color: #6B9BD1;
}

.footer-credits {
    color: #4A7BA7;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #4A7BA7 0%, #6B9BD1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .site-branding {
        margin-bottom: 1rem;
    }

    #menu {
        justify-content: center;
    }

    #menu ul {
        justify-content: center;
    }

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

    .hero-title {
        font-size: 5rem;
        letter-spacing: 14px;
    }

    .hero-subtitle {
        font-size: 1.6rem;
        letter-spacing: 6px;
    }

    .installation-card {
        }

    .installation-name {
        font-size: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .site-title a {
        font-size: 2.2rem;
        letter-spacing: 6px;
    }

    .site-tagline {
        font-size: 0.9rem;
    }

    #menu li {
        margin: 0 0.8rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 5px;
    }

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

    .installation-card {
        }

    .installation-name {
        font-size: 1.7rem;
    }

    .installation-info {
        padding: 2rem;
    }

    .category-title {
        font-size: 2.3rem;
    }
}
