
/*                                                                                                
                                                                                                    
                                                                                                                                                                                                                                                                                              
                                        .@@@@@@@@@@@@@@*                                            
                                   @@@@@@@@,             @@@@@                                      
                                @@@@@@@                        @@&                                  
                             @@@@@@@                            @@@                                 
                            @@@@@@                            @@@@                                  
                          @@@@@@@                           @@@@@                                   
                         %@@@@@@             @@           @@@@@@       @@                           
                         @@@@@@@            @@@@@@      @@@@@@@        (@@                          
                         @@@@@@@           @@@@@@@@@@ @@@@@@@@          @@@                         
                         @@@@@@@          @@@@@@@@@@@@@@@@@@            @@@                         
                         @@@@@@@@        @@@@@@@@@@@@@@@@@@             @@@/                        
                         @@@@@@@@*      @@@@@@@@@@@@@@@@@@              @@@*                        
                          @@@@@@@@@    @@@@@@@@@@ @@@@@@@              @@@@                         
                           @@@@@@@@@( @@@@@@@@@      @@@             (@@@@@                         
                             @@@@@@@@@@@@@@@*                      .@@@@@@                          
                              @@@@@@@@@@@@                      ,@@@@@@@@                           
                                @@@@@@@@         @@@,    ,@@@@@@@@@@@@@                             
                                  @@@@         @@@@@@@@@@@@@@@@@@@@@/                               
                                 @@@         @@@@@@@@@@@@@@@@@@@@                                   
                                @                .@@@@@@@@                                          
                                                                                                    
                                                                                                    
                                                                                                    
*/                                                                                                 
           

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

body {
    background-color: #000;
    font-family: 'Fira Sans', sans-serif;
   overflow: auto;
 
}




span.white { color: #fff; }
span.gray { color: #b8b8b8; }
.mob-logo { display: none; }

/* PRELOADER */
html.loading {
    overflow: hidden;
    pointer-events: none;
}

html.loading body {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

html.loading * {
    animation-play-state: paused !important;
}

html.loading .lets-talk,
html.loading .wave-button,
html.loading .wave-button::before,
html.loading .wave-button::after,
html.loading .menu-icon,
html.loading .menu-icon *,
html.loading .text-wrapper,
html.loading .text-line,
html.loading .titlebox,
html.loading .titlebox *,
html.loading .main-container,
html.loading .canvas-container,
html.loading .canvas-container-2,
html.loading .background-image,
html.loading .background-image-2,
html.loading canvas,
html.loading .nav,
html.loading .work,
html.loading .sticky-header-bar,
html.loading .sticky-header-bar *,
html.loading .lets-talk-mobile-bottom {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.loading .titlebox * {
    transform: translateY(30px) !important;
    transition: none !important;
}

html.loading .main-container {
    transform: scale(0.4) !important;
}

html.loading .nav {
    transform: translateY(30px) !important;
}

html.loading .work {
    transform: translateX(-50px) !important;
}

html.loading .sticky-header-bar {
    transform: translateY(-100%) !important;
}

html.loading .lets-talk-mobile-bottom {
    transform: translateY(100px) !important;
}

html.loading .video-background,
html.loading .video-background video,
html.loading .video-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.lets-talk {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lets-talk.show {
    opacity: 1;
    transform: scale(1);
}

html.loaded {
    pointer-events: auto;
}

html.loaded .video-background > * {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* VIDEO BACKGROUND */
.video-background {
    display: flex;
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 60%;
    width: 150%;
    height: auto;
    min-width: 150%;
    min-height: 150%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.work {
    display: flex;
    position: relative;
    font-size: clamp(19px, 1vw, 24px);
    color: #c7c6c6;
    font-weight: 500;
    z-index: 20;
    justify-content: flex-start;
    align-items: flex-end;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform-origin: center;
    will-change: transform, opacity;
}

.work.animate-in {
    opacity: 1;
    left: -100%;
    transform: translateX(0);
}

.nav {
    display: flex;
    font-size: clamp(12px, 1vw, 20px);
    position: relative;
    color: #fff;
    font-weight: 700;
    left: 15%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 100;
    top: -30px !important;
    margin-top: -2%;
}

.nav.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.blur-layer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
    transition: filter 0.3s ease;
}

.logo {
    display: flex;
    width: 60%;
    flex-direction: row-reverse;
    align-items: center;
}

/* TITLE SECTION */
.titlebox {
    display: flex;
    position: absolute;
    margin-top: 100px;
    right: 45%;
    z-index: 10;
    justify-content: flex-end;
}

.titlebox::before {
    content: '';
    width: 100%;
    height: 110%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    filter: blur(40px);
    z-index: -1;
}

.titlebox h1 {
    font-weight: 900;
    line-height: 0.56em;
    letter-spacing: -0.04em;
    font-size: clamp(3rem, 6.5vw, 6.7rem);
    margin: 0;
    position: relative;
}

.titlebox .line {
    display: block;
    position: relative;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.titlebox .line.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.titlebox .line:nth-child(2) {
    letter-spacing: -0.12em;
    filter: drop-shadow(0 -15px 25px rgb(0, 0, 0));
}

.titlebox .line:nth-child(3) {
    filter: drop-shadow(0 -15px 25px rgba(0, 0, 0, 1));
}

.titlebox img {
    width: 15%;
    padding-right: 25px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.titlebox img.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.main-container {
    display: flex;
    position: relative;
    width: 60vw;
    max-width: 1200px;
    max-height: 700px;
    aspect-ratio: 16 / 9;
    background-image: url(img/the-enn.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    overflow: visible;
    margin-left: 20%;
    top: 5%;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.main-container.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* CANVAS ELEMENTS */
.canvas-container {
    display: flex;
    position: absolute;
    left: -40px;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 4;
    overflow: visible;
    justify-content: flex-end;
}

.background-image {
    position: absolute;
    top: 8%;
    left: -8%;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url(img/grid.svg);
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    overflow: visible;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.canvas-container-2 {
    position: absolute;
    left: 50%; 
    top: 15%; 
    width: 35%; 
    height: 70%; 
    z-index: 3;
    overflow: visible;
}

.background-image-2 {
    position: absolute;
    top: -10%;
    right: -30%;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url(img/grid2.svg);
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
    overflow: visible;
}

#canvas2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ANIMATIONS */
.word-design {
    display: inline-block;
    color: #fff;
}

.word-design .letter {
    display: inline-block;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.word-design .letter-d { transform: translate(0, -50px); }
.word-design .letter-e { transform: translate(-50px, 0); }
.word-design .letter-s { transform: translate(0, 50px); }
.word-design .letter-i { transform: translate(50px, 0); }
.word-design .letter-g { transform: translate(0, -50px); }
.word-design .letter-n { transform: translate(-50px, 0); }
.word-design .letter-dot { transform: translate(50px, 0); }

.word-design .letter.animate-in {
    opacity: 1;
    transform: translate(0, 0);
}

.word-code {
    display: inline-block;
    color: #b8b8b8;
}

.letter-code {
    display: inline-block;
    position: relative;
    opacity: 0;
    width: 0.45em;
    text-align: center;
    letter-spacing: -1em;
}

.video-background.scroll-phase-1 .titlebox .line:nth-child(1) {
    opacity: 0;
    transform: translateY(-80px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-background.scroll-phase-2 .titlebox .line:nth-child(1),
.video-background.scroll-phase-2 .titlebox .line:nth-child(2) {
    opacity: 0 !important;
    transform: translateY(-80px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-background.scroll-phase-3 .titlebox .line {
    opacity: 0 !important;
    transform: translateY(-80px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-background.scroll-phase-4 .main-container {
    opacity: 0;
    transform: scale(0.3) translateZ(-300px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-background.scroll-phase-4 .work {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes blink {
    0%, 49% { 
        opacity: 1;
        transform: scale(1);
    }
    50%, 100% { 
        opacity: 0.3;
        transform: scale(0.95);
    }
}

@keyframes skeleton-wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* NAVIGATION MENU */
.menu-container {
    width: clamp(300px, 35vw, 700px);
    height: clamp(80px, 8vh, 200px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.menu {
    display: flex;
    list-style: none;
    padding-left: 7px;
    padding-right: 8px;
    position: relative;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.menu-item {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item[data-index="7"]:first-child {
    display: none !important;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 10px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.menu-link:hover {
    color: #ffeecf;
}

.menu-item img {
    position: relative;
    height: 40px;
    z-index: 2000;
}

.active-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(0) translateY(-50%);
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
    will-change: transform, width;
}

.hover-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(0) translateY(-50%);
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.2s ease;
    z-index: 0;
    pointer-events: none;
    will-change: transform, width, opacity;
}

/* BUTTONS */
.lets-talk {
    position: fixed;
    top: 35px;
    left: 80%;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.wave-button {
    position: relative;
    display: inline-block;
    padding: 14px 26px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
}

.wave-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a69;
    border-radius: 8px;
    z-index: -1;
    transition: all 0.3s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(1);
}

.wave-button:hover::before {
    background: #383737a3;
    transform: scale(0.90);
}

.menu-icon {
    width: 40px;
    height: 40px;
    margin-right: 4px;
    vertical-align: middle;
    z-index: 11;
}

.menu-icon .layer {
    fill: #F04F2D;
    transition: transform 0.5s ease;
    transform-origin: center;
}

.wave-button:hover .menu-icon #layer1 {
    transform: translateY(-3px);
}

.wave-button:hover .menu-icon #layer2 {
    transform: translateY(0);
}

.wave-button:hover .menu-icon #layer3 {
    transform: translateY(3px);
}

.text-wrapper {
    position: relative;
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: middle;
}

.text-line {
    display: flex;
    position: relative;
    white-space: nowrap;
}

.text-line:last-child {
    position: absolute;
    top: 100%;
    left: 0;
}

.letter {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.wave-button:hover .text-line:first-child .letter {
    transform: translateY(-110%);
}

.wave-button:hover .text-line:last-child .letter {
    transform: translateY(-100%);
}

.wave-button.leaving .letter {
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.space {
    width: 0.3em;
}

/* STICKY HEADER */
.sticky-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.95) 40%,
        rgba(0,0,0,0) 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    padding: 25px 5% 0 5%;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
 

}

.sticky-header-bar.active {
    transform: translateY(0);
   
}

.sticky-talk {
    width: 200px;
    padding-top: 15px;
    pointer-events: all;
}

.sticky-logo {
    width: 200px;
    padding-top: 5px;
}

.sticky-logo img {
    height: 80px;
    width: auto;
    pointer-events: all;
}

.sticky-nav {
    display: flex;
    position: relative;
    left: -5%;
    top: 40px;
    pointer-events: all;
}

.sticky-talk .wave-button {
    padding: 14px 26px;
    font-size: 20px;
}

.sticky-talk .menu-icon {
    width: 32px;
    height: 32px;
}

.lets-talk {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lets-talk.sticky-transition {
    position: fixed;
    top: 20px;
    right: 5%;
    z-index: 1000;
}

.titlebox img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.titlebox img.sticky-transition {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 40px;
    height: auto;
    z-index: 1000;
    padding-right: 0;
}

.sticky-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sticky-background.active {
    opacity: 1;
}

/* MOBILE MENU */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222222e3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    background-color: #000000;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: top right;
    z-index: 1999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.initialized {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu.from-top {
    top: 20px;
    right: 2%;
    width: 160px;
    height: 52px;
}

.mobile-menu.from-sticky {
    top: 25px;
    right: 2%;
    width: 160px;
    height: 52px;
}

.mobile-menu.from-bottom {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    transform-origin: bottom right;
}

.mobile-menu.active {
    width: 96vw;
    height: 94vh;
    border-radius: 16px;
}

.mobile-menu.from-bottom.active {
    bottom: 20px;
    right: 2%;
}

.mobile-menu-video {
    position: absolute;
    top: 0;
    left: -20%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-menu.active .mobile-menu-video {
    opacity: 1;
    transition: opacity 0.5s ease 0.2s;
}

.mobile-menu-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgb(0, 0, 0) 0%,
        rgba(0, 0, 0, 0.9) 60%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-menu.active .mobile-menu-gradient {
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-menu-close {
    opacity: 0.3;
    transform: scale(1);
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-menu-close img {
    width: 100%;
    height: 100%;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
    padding: 60px 60px 40px 40px;
}

.mobile-menu.active .mobile-menu-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.mobile-menu-text {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: white;
    position: relative;
    justify-content: center;
    align-items: center;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: -40px;
}

.menu-header h1 {
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.1em;
    margin-left: -25px;
    font-family: 'Fira Sans', sans-serif;
    overflow: hidden;
}

.menu-header h1 .letter-exclaim {
    letter-spacing: 0em;
}

.menu-header h1 .letter-h,
.menu-header h1 .letter-e,
.menu-header h1 .letter-y,
.menu-header h1 .letter-exclaim {
    display: inline-block;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.2s ease;
}

.menu-header h1 .letter-h { transform: translateY(100%); }
.menu-header h1 .letter-e { transform: translateY(100%); }
.menu-header h1 .letter-y { transform: translateY(100%); }
.menu-header h1 .letter-exclaim { transform: translateY(-100%); }

.mobile-menu.active .menu-header h1 .letter-h {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.mobile-menu.active .menu-header h1 .letter-e {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.mobile-menu.active .menu-header h1 .letter-y {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.mobile-menu.active .menu-header h1 .letter-exclaim {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.menu-logo {
    height: 90px;
    width: auto;
    opacity: 0;
    transform: scale(0.8) translateX(-20px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.5s ease;
}

.mobile-menu.active .menu-logo {
    opacity: 1;
    transform: scale(1) translateX(0);
    transition-delay: 0.9s;
}

.menu-intro {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.2s ease, opacity 0.4s ease;
}

.mobile-menu.active .menu-intro {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.menu-subtitle {
    font-size: 16px;
    font-weight: 200;
    opacity: 0;
    margin-top: 30px;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.mobile-menu.active .menu-subtitle {
    opacity: 0.8;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.menu-contacts {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.mobile-menu.active .menu-contacts {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    color: aliceblue;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #de5b3b;
}

.contact-link img {
    width: 30px;
    height: 30px;
}

.menu-footer-text {
    font-size: 24px;
    font-weight: 200;
    line-height: 1.2;
    margin-top: 70px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.mobile-menu.active .menu-footer-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.menu-socials {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.2s ease, opacity 0.4s ease;
}

.mobile-menu.active .menu-socials {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.socials-label {
    font-size: 16px;
    font-weight: 200;
    color: aliceblue;
}

.socials-links {
    display: flex;
    height: 25px;
    gap: 35px;
}

.social-link {
    display: block;
    width: 30px;
    height: 30px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link img {
    width: 70px;
    height: 70px;
    margin-top: -30px;
    margin-left: -20px;
}

.lets-talk-mobile-bottom {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transform: translateY(100px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lets-talk-mobile-bottom.visible {
    transform: translateY(0);
}

.lets-talk-mobile-bottom .wave-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #1a1a1a54;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.lets-talk-mobile-bottom .wave-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lets-talk-mobile-bottom .menu-icon {
    width: 35px;
    height: 35px;
}

/* PORTFOLIO SECTION */
.portfolio-section {
    width: 75vw;
    min-width: 900px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 50px;
}

.filter-links {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.filter-links li a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-links li a:hover,
.filter-links li a.active {
    color: #000;
    border-bottom-color: #ec5a36;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    min-height: 500px;
}

.portfolio-grid.transitioning {
    pointer-events: none;
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    cursor: pointer;
    border-radius: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.filtered-out {
    display: none !important;
}

.portfolio-item.height-small {
    grid-row: span 1;
    aspect-ratio: 2 / 1.02;
}

.portfolio-item.height-large {
    grid-row: span 2;
    aspect-ratio: 2 / 2.2;
}

.portfolio-item.skeleton {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.portfolio-item.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 100%);
    animation: skeleton-wave 1.5s ease-in-out infinite;
    z-index: 1;
}

.portfolio-item .item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover !important;
    background-position: center !important;
    z-index: 0;
    filter: contrast(1000%) blur(8px);
    transition: filter 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    image-rendering: pixelated;
}

.portfolio-item.image-loading .item-image {
    opacity: 1;
    filter: contrast(500%) blur(4px);
}

.portfolio-item.image-loaded .item-image {
    opacity: 1;
    filter: contrast(100%) blur(0px);
    image-rendering: auto;
}

.portfolio-item.loaded {
    background: transparent;
}

.portfolio-item.loaded.skeleton::before {
    display: none;
}

.item-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #ec5a36;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.portfolio-item:hover .item-overlay {
    opacity: 0.94;
}

.item-content {
    position: absolute;
    bottom: 10%;
    left: 10%;
    right: 20%;
    margin-bottom: -7px;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.portfolio-item:hover .item-content {
    opacity: 1;
    margin-bottom: 0;
    transition-delay: 0.3s;
}

.item-title {
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.item-category {
    display: inline;
    margin: 0;
    font-style: italic;
    font-size: 16px;
    color: #000000;
}

.item-arrow {
    position: absolute;
    bottom: 45px;
    right: 45px;
    width: 40px;
    height: 23px;
    opacity: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2"><path d="M5 12h14M12 5l7 7-7 7"/></svg>') no-repeat center;
    background-size: contain;
    transform: translateX(-10px);
    transition: all 0.2s ease-in-out;
}

.portfolio-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    display: none;
    grid-column: 1 / -1;
}

.loading-indicator.active {
    display: block;
}

/* LOAD MORE BUTTON */
.load-more-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    top: 80px;
}

.load-more-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    background: none;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.load-more-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a8a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    z-index: -1;
    transition: all 0.3s ease;
}

.load-more-button:not(.disabled):hover::before {
    background: #2a2a2acb;
    border-color: rgba(255, 255, 255, 0.1);
}

.load-more-icon {
    width: 35px;
    height: 35px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.load-more-button:not(.disabled):not(.loading):hover .load-more-icon {
    transform: scale(1.2);
}

.load-more-button .text-wrapper {
    position: relative;
    display: inline-block;
    height: 1.1em;
    overflow: hidden;
    vertical-align: middle;
    letter-spacing: -1.3px;
    font-weight: 900;
}

.load-more-button .text-line {
    display: flex;
    position: relative;
    white-space: nowrap;
}

.load-more-button .text-line:last-child {
    position: absolute;
    top: 100%;
    left: 0;
}

.load-more-button .letter {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.load-more-button:hover .text-line:first-child .letter {
    transform: translateY(-110%);
}

.load-more-button:hover .text-line:last-child .letter {
    transform: translateY(-100%);
}

.load-more-button.leaving .letter {
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.load-more-button .space {
    width: 0.3em;
}

.load-more-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.load-more-button.loading .load-more-icon {
    animation: blink 0.3s linear infinite;
}

.load-more-button.disabled .letter,
.load-more-button.loading .letter {
    transition: none !important;
    transform: none !important;
}

.load-more-button.disabled:hover .text-line:first-child .letter,
.load-more-button.disabled:hover .text-line:last-child .letter,
.load-more-button.loading:hover .text-line:first-child .letter,
.load-more-button.loading:hover .text-line:last-child .letter {
    transform: translateY(0) !important;
}

.load-more-button.disabled {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

.load-more-button.disabled::before {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.05);
}

.no-more-message {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    color: #888;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
}

.no-more-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.portfolio-item[data-page="3"].visible {
    display: block !important;
    animation: fadeInUp 0.6s ease forwards;
}

.workzzz {
    width: 100%;
    height: 1200px;
}

/* WORK MODAL */
.work-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.work-modal.active {
    display: block;
    pointer-events: auto;
}

.work-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: zoom-out;
}

.work-modal.active .work-modal-overlay {
    opacity: 1;
}

.work-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: scale(0.9) translateY(50px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-modal.active .work-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.work-modal-inner {
    min-height: 100vh;
    position: relative;
    width: 100%;
}

.work-modal.animating-in .work-modal-content {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-modal.animating-out .work-modal-content {
    opacity: 0;
    transform: scale(0.95) translateY(-30px);
    transition: all 0.3s ease;
}

.work-modal.animating-out .work-modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.work-modal .header-gradient {
    position: sticky !important;
    top: 0 !important;
    z-index: 10002 !important;
    animation: slideDown 0.6s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    pointer-events: none;
}

.work-modal .header-close {
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.9;
    pointer-events: all;
}

.work-modal .header-close:hover {
    transform: scale(1.2);
    opacity: 1;
}

.work-modal .content {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.work-modal .preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
}

.work-modal.content-loaded .preloader {
    display: none;
}

/* FOOTER */
.footer-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 180px;
    margin-bottom: 100px;
}

.footer {
    display: grid;
    align-items: end;
    gap: 100px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "text contacts social";
    width: 75vw;
    min-width: 900px;
    max-width: 1600px;
}

.footer-text {
    grid-area: text;
    color: #c7c6c6;
    font-size: 20px;
    font-weight: 200;
    margin-bottom: 13px;
}

.footer-contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-bottom: 13px;
}

.footer-contact-link:hover {
    color: #de5b3b;
}

.footer-contact-link img {
    width: 30px;
    height: 30px;
}

.footer-social {
    grid-area: social;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.socials-label-footer {
    font-size: 16px;
    font-weight: 200;
    color: aliceblue;
    margin-bottom: 30px;
    margin-left: -8px;
}

.copyright-footer {
    font-size: 16px;
    font-weight: 200;
    color: aliceblue;
    margin-top: 50px;
    margin-bottom: 18px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1023px) {
    .footer {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "text text" "contacts social";
        width: 90vw;
        min-width: 700px;
        max-width: 1000px;
    }

    .footer-contacts {
        padding-left: 60px;
    }

    .footer-text {
        max-width: 700px;
        padding-left: 60px;
    }
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .item-arrow {
        display: none;
    }

    .item-overlay {
        background-color: transparent !important;
        opacity: 1 !important;
    }

    .item-content {
        position: absolute !important;
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        margin-bottom: 0 !important;
        opacity: 1 !important;
        text-align: left !important;
        color: #EEE !important;
        transform: translate(0, 0) !important;
    }

    .item-title {
        display: none !important;
        background-color: #ffe800 !important;
        margin-bottom: 5px !important;
        font-size: 21px !important;
        font-weight: 700 !important;
        color: #000 !important;
        padding: 2px 5px;
    }

    .item-category {
        display: none !important;
        background-color: #111 !important;
        margin: 0 !important;
        font-style: italic !important;
        font-size: 15px !important;
        color: #FFF !important;
        padding: 2px 5px;
    }
}

@media (max-width: 900px) {
    .lets-talk-mobile-bottom {
        display: block;
    }

    .portfolio-section {
        min-width: 100%;
    }

    .text-wrapper {
        display: none;
    }

    .work {
        display: none;
    }

    .canvas-container-2 {
        display: none;
    }

    .titlebox {
        display: flex;
        position: relative;
        width: 100vw;
        z-index: 2;
        right: 0px;
        justify-content: center;
        margin-top: 85px;
    }

    .titlebox::before {
        display: none;
    }

    .titlebox h1 {
        font-size: clamp(3rem, 11vw, 6.7rem);
        text-align: center;
        margin-left: 0px;
    }

    .titlebox img {
        position: absolute;
        left: 5%;
        top: 0%;
        width: 40px;
        margin-right: 0px;
        margin-top: -45px;
        padding-right: 0px;
    }

    .main-container {
        width: 110vw;
        left: 17%;
        margin-left: 0;
    }

    .sticky-logo {
        width: 160px;
        padding-top: 20px;
    }

    .sticky-nav {
        left: 0;
        top: 50px;
        width: 100%;
    }

    .sticky-talk {
        display:none;
    }

    .sticky-header-bar {
        justify-content: space-between;
    }

    .nav {
        justify-content: center;
        left: 0%;
        width: 100%;
        top: 35%;
        z-index: 38;
        margin-top: 0px;
    }

    .menu-container {
        width: 96%;
        min-width: 320px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .wave-button {
        padding: 10px 10px;
    }

    .menu-icon {
        width: 35px;
        height: 35px;
        margin-right: 0;
    }

    .lets-talk {
        top: 35px;
    }

    .mobile-menu.active {
        width: 96vw;
        height: 90vh;
        max-width: none;
    }

    .mobile-menu.from-bottom.active {
        height: calc(100vh - 100px);
    }

    .mobile-menu-video,
    .mobile-menu-gradient {
        display: none;
    }

    .mobile-menu-content {
        width: 100%;
        padding: 50px 30px 30px;
    }

    .mobile-menu-close {
        top: 30px;
        right: 30px;
        width: 30px;
        height: 30px;
    }

    .menu-logo {
        height: 60px;
    }

    .menu-header h1 {
        font-size: 3rem;
    }

    .menu-intro {
        font-size: 20px;
        margin-top: 20px;
    }

    .menu-subtitle {
        font-size: 14px;
        margin-top: 10px;
    }

    .menu-contacts {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .contact-link {
        font-size: 16px;
    }

    .menu-footer-text {
        font-size: 16px;
        margin-top: 40px;
    }

    .menu-socials {
        position: static;
        margin-top: 70px;
    }

    .social-link {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .footer-wrap {
        margin-top: 80px;
        margin-bottom: 20px;
    }

    .footer {
        grid-template-columns: 1fr;
        grid-template-areas: "text" "contacts" "social";
        width: 90vw;
        min-width: 300px;
        max-width: 700px;
        gap: 40px;
    }

    .footer-text {
        max-width: 700px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .footer-social {
        padding-left: 20px;
    }

    .footer-contacts {
        justify-content: center;
    }

    .footer-contact-link {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .sticky-nav {
        left: 0;
        width: 100%;
    }

    .sticky-nav .menu-item[data-index="7"]:first-child {
        display: flex !important;
    }

    .sticky-header-bar {
        justify-content: center;
        padding: 0px;
    }

    .sticky-logo {
        display: none;
    }

    .sticky-talk {
        display: none;
    }

    .mob-logo {
        display: flex;
        height: 40px;
        margin-top: 20px;
        margin-left: 20px;
    }

    .menu-link {
        font-size: 14px;
        padding: 10px 10px;
    }

    .portfolio-section {
        padding: 0 15px;
        min-width: 100%;
    }

    .filter-links {
        gap: 20px;
    }

    .filter-links li a {
        font-size: 14px;
    }

    .work-modal-content {
        transform: scale(1) translateY(100%);
    }

    .work-modal.active .work-modal-content {
        transform: scale(1) translateY(0);
    }

    .work-modal.animating-out .work-modal-content {
        transform: scale(1) translateY(100%);
    }

    .work-modal::after {
        content: '';
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        z-index: 10002;
    }

    .load-more-wrapper {
        padding: 40px 15px 15px 15px;
        top: 50px;
    }

    .load-more-button {
        display: flex;
        font-size: 16px;
        width: 60%;
        height: 60px;
        text-align: center;
        justify-content: center;
    }

    .load-more-icon {
        width: 30px;
        height: 30px;
    }

    .no-more-message {
        font-size: 16px;
        top: -40px;
    }
}

@media (max-width: 576px) {
    .filter-links {
        flex-direction: column;
        gap: 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
