:root {
            --color-deep: #000000;
            --color-accent: #FF003C;
            --color-text: #FFFFFF;
            --color-text-fade: rgba(255, 255, 255, 0.7);
            --color-overlay: rgba(0, 0, 0, 0.85);
            --font-heading: 'Orbitron', sans-serif;
            --font-title: 'Bebas Neue', cursive;
            --font-body: 'Montserrat', sans-serif;
        }

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

        html, body {
            width: 100%;
            height: 100%;
            overflow-x: hidden;
            background-color: var(--color-deep);
            color: var(--color-text);
            font-family: var(--font-body);
            scroll-behavior: smooth;
        }

        /* Главная сцена */
        .scene {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 0.8s ease, transform 0.8s ease;
            background: var(--color-deep);
        }

        .scene.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateY(-20px);
        }

        /* Водяной знак - ПЛАВАЮЩИЙ */
        .watermark {
    position: fixed;
    top: 0;
    left: 0;
    font-family: var(--font-heading);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 1.0);
    text-transform: uppercase;
    letter-spacing: 20px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;

    animation: floatAcross 25s linear infinite;
}

@keyframes floatAcross {
    0% {
        transform: translate(-20%, -20%) rotate(-45deg);
    }
    50% {
        transform: translate(40vw, 40vh) rotate(-45deg);
    }
    100% {
        transform: translate(-20%, -20%) rotate(-45deg);
    }
}

        /* @keyframes watermarkFloat { */
            /* 0% { transform: translate(-50%, -50%) rotate(-45deg) translateX(-100px); } */
            /* 100% { transform: translate(-50%, -50%) rotate(-45deg) translateX(100px); } */
        /* } */

        /* Элементы сцены */
        .scene-content {
            position: relative;
            z-index: 10;
            max-width: 1200px;
            padding: 40px;
            text-align: center;
        }

        .scene-title {
            font-family: var(--font-heading);
            font-size: 10vw;
            font-weight: 900;
            line-height: 0.9;
            letter-spacing: 5px;
            text-transform: uppercase;
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(100px) skewY(10deg);
            animation: titleReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
        }

        @keyframes titleReveal {
            to {
                opacity: 1;
                transform: translateY(0) skewY(0);
            }
        }

        .scene-subtitle {
            font-family: var(--font-title);
            font-size: 2.5vw;
            letter-spacing: 8px;
            margin-bottom: 20px;
            color: var(--color-accent);
            opacity: 0;
            transform: translateX(-100px);
            animation: subtitleReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 1s forwards;
        }

        @keyframes subtitleReveal {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .scene-text {
            font-family: var(--font-body);
            font-size: 1.1rem;
            line-height: 1.6;
            max-width: 700px;
            margin: 0 auto 40px;
            color: var(--color-text-fade);
            opacity: 0;
            transform: translateY(50px);
            animation: textReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 1.5s forwards;
        }

        @keyframes textReveal {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Эффекты фона */
        .scene-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .video-bg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.3) contrast(1.2);
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
            z-index: 2;
        }

        /* Навигационное меню */
        .main-nav {
            position: absolute;
            top: 40px;
            left: 40px;
            z-index: 1001;
            display: flex;
            gap: 40px;
            font-family: var(--font-heading);
            font-size: 0.9rem;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .nav-item {
            color: var(--color-text-fade);
            text-decoration: none;
            transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    cursor: pointer;
}

/* Color Filter - All Highlight */
.color-circle[data-color="all"] {
    background: conic-gradient(from 0deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.color-circle[data-color="all"]:hover,
.color-circle[data-color="all"].active {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

        .nav-item:hover {
            color: var(--color-text);
        }

        .nav-item.active {
            color: var(--color-accent);
        }

        .nav-item::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--color-accent);
            transition: width 0.3s ease;
        }

        .nav-item:hover::after {
            width: 100%;
        }

        /* Время и локация */
        .time-location {
            position: absolute;
            top: 40px;
            right: 40px;
            z-index: 1001;
            font-family: var(--font-heading);
            font-size: 0.9rem;
            letter-spacing: 1px;
            color: var(--color-text-fade);
        }

        .location {
            margin-bottom: 5px;
            color: var(--color-accent);
            text-align: right;
        }

        .time {
            font-size: 1.1rem;
            letter-spacing: 2px;
            text-align: right;
        }

        /* Кнопка для сокрытия сцены */
        .hide-scene-btn {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: var(--color-text);
            padding: 12px 30px;
            font-family: var(--font-heading);
            font-size: 0.9rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .hide-scene-btn:hover {
            border-color: var(--color-accent);
            background: rgba(255, 0, 60, 0.1);
        }

        /* Раздел портфолио */
        .portfolio-section {
            position: relative;
            width: 100%;
            background: var(--color-deep);
            padding: 40px 20px 80px;
            z-index: 100;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .portfolio-section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .filter-container {
            max-width: 1600px;
            margin: 0 auto 40px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;
        }

        .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }

        .filter-label {
            font-family: var(--font-heading);
            font-size: 0.8rem;
            letter-spacing: 1px;
            color: var(--color-text);
            text-transform: uppercase;
            margin-right: 8px;
        }

        .filter-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--color-text-fade);
            padding: 6px 15px;
            font-family: var(--font-body);
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-btn:hover {
            border-color: var(--color-accent);
            color: var(--color-text);
        }

        .filter-btn.active {
            background: var(--color-accent);
            border-color: var(--color-accent);
            color: var(--color-deep);
            font-weight: 500;
        }

        .color-filter {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .color-circle {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 1px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .color-circle.active {
            border-color: var(--color-text);
            transform: scale(1.1);
        }

        .color-circle[data-color="all"] {
            background: conic-gradient(red, orange, yellow, green, blue, purple, red) !important;
            border: 1px solid rgba(255,255,255,0.2);
        }

        /* Waterfall grid */
        .portfolio-grid {
            /*max-width: 1600px;*/
			max-width: 98%;
            margin: 0 auto;
            columns: 4;
            column-gap: 25px;
        }

        @media (max-width: 1200px) {
            .portfolio-grid {
                columns: 3;
            }
        }

        @media (max-width: 768px) {
            .portfolio-grid {
                columns: 2;
                column-gap: 20px;
            }
        }

        @media (max-width: 480px) {
            .portfolio-grid {
                columns: 1;
            }
        }

        /* Элемент проекта */
        .portfolio-item {
            break-inside: avoid;
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
            background: rgba(20, 20, 20, 0.8);
            cursor: pointer;
            border: none;
            transition: transform 0.4s ease;
        }

        .portfolio-item:hover {
            transform: translateY(-5px);
        }

        .portfolio-content {
            width: 100%;
            position: relative;
        }

        .portfolio-media {
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .portfolio-image {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.6s ease;
        }

        .portfolio-item:hover .portfolio-image {
            transform: scale(1.03);
        }

        .portfolio-video {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Кнопка трех точек для проектов со страницей - ПОСТОЯННО ВИДНА */
        .project-page-link {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-text);
            font-size: 1.2rem;
            z-index: 10;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            opacity: 1;
            visibility: visible;
        }

        .project-page-link:hover {
            background: var(--color-accent);
            transform: scale(1.1);
        }

        /* Информация о проекте - все белое */
        .project-info {
            padding: 20px;
            background: rgba(15, 15, 15, 0.95);
        }

        .project-id {
            font-family: var(--font-heading);
            font-size: 0.7rem;
            color: var(--color-text);
            letter-spacing: 1px;
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .project-title {
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 500;
            color: var(--color-text);
            margin-bottom: 3px;
            line-height: 1.2;
        }

        .project-year {
            font-family: var(--font-body);
            font-size: 0.75rem;
            color: var(--color-text);
            font-weight: 400;
            opacity: 0.8;
        }

        /* Карусель */
        .carousel-container {
            position: relative;
            width: 100%;
            overflow: hidden;
        }

        .carousel-slide {
            display: none;
            width: 100%;
			transition: opacity 2.5s ease;
        }

        .carousel-slide.active {
            display: block;
        }

        .carousel-slide img,
        .carousel-slide video {
            width: 100%;
            height: auto;
            display: block;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 16px;
            z-index: 9;
        }

        .carousel-dot {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .carousel-dot.active {
            background: var(--color-text);
            transform: scale(1.2);
        }




        /* Play icon */
        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 3;
            color: var(--color-deep);
        }

        .portfolio-item.video .play-icon,
        .portfolio-item:hover .play-icon {
            opacity: 0.8;
        }

        /* Адаптивность */
        @media (max-width: 1024px) {
            .watermark {
                font-size: 22vw;
                letter-spacing: 15px;
            }
            
            .scene-title {
                font-size: 12vw;
            }
            
            .scene-subtitle {
                font-size: 3.5vw;
            }
            
            .main-nav {
                top: 20px;
                left: 20px;
                font-size: 0.8rem;
                gap: 15px;
            }
            
            .time-location {
                top: 20px;
                right: 20px;
                font-size: 0.8rem;
            }

            .hide-scene-btn {
                bottom: 20px;
                padding: 10px 20px;
                font-size: 0.8rem;
            }

            .filter-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            .watermark {
                font-size: 25vw;
                letter-spacing: 10px;
                animation-duration: 20s;
            }
            
            .scene-title {
                font-size: 15vw;
                letter-spacing: 3px;
            }
            
            .scene-subtitle {
                font-size: 5vw;
                letter-spacing: 4px;
            }
            
            .scene-text {
                font-size: 1rem;
                padding: 0 20px;
            }
            
            .main-nav {
                display: none;
            }
            
            .time-location {
                display: none;
            }

            .portfolio-section {
                padding: 30px 15px 60px;
            }

            .portfolio-grid {
                columns: 1;
                column-gap: 15px;
            }
            
            .portfolio-item {
                margin-bottom: 20px;
            }
            
            .project-page-link {
                width: 28px;
                height: 28px;
                font-size: 1rem;
            }
        }
		
		/********/
		/* Masonry grid */
.portfolio-grid {
  column-count: 4;
  column-gap: 30px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 30px;
  display: inline-block;
  width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    column-count: 1;
  }
}

.stats-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    min-width: 160px;
}

.stat-number {
        color: #D4AF37;
    font-size: 3rem;
    margin-bottom: 30px;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFA500; /* оранжевый */
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) { .portfolio-grid { columns: 2 !important; } }
@media (max-width: 480px) { .portfolio-grid { columns: 1 !important; } }

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}



.video-bg {
    width: 100%;
    height: 100%;
}

.scene-bg iframe.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    body, html {
        overflow-y: auto !important;
        height: auto !important;
    }
    
    .portfolio-section.visible {
        position: relative;
        z-index: 10;
    }
}
