@import url('https://fonts.cdnfonts.com/css/pp-neue-montreal');

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


body {
    color: #000000;
    overflow-x: hidden;
    background-color: #f5f5f5;
    font-family: 'PP Neue Montreal', sans-serif;
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #A09F92;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
    font-family: 'PP Neue Montreal', sans-serif;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    opacity: 0;
}

.logo img {
    height: 1.5rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    opacity: 0;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000000;
}

/* Burger Menu Styles */
.burger {
    display: none;
    cursor: pointer;
    width: 22px;
    height: 20px;
    position: relative;
    z-index: 1001;
    opacity: 0;
}

.burger .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s ease;
}

.burger .line:nth-child(1) {
    top: 0;
}

.burger .line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger .line:nth-child(3) {
    bottom: 0;
}

/* Burger Animation */
.burger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active .line:nth-child(2) {
    opacity: 0;
}

.burger.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.slide-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 100vh;
    background-color: #A09F92;
    transform: translateX(0);
    transform-origin: top left;
    z-index: -1;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.cube-container {
    position: absolute;
    top: 500px;
    right: 150px;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

pre {
    font-family: monospace;
    line-height: 1;
    font-size: 8px;
    color: #000;
    margin: 0;
    padding: 0;
}

/* Updated hero title styles for letter animation */
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 500;
    overflow: hidden;
    line-height: 1.3;
}

.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    /* margin-right: 0.1em; */
    line-height: 1.3;
}

.hero h1 .char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.hero-text-container {
    /* white-space: nowrap; */
    overflow: hidden;
    max-width: 60vw;  /* You can adjust this value */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    /* white-space: nowrap; */
}

.hero p span {
    display: inline-block;
    position: relative;
    margin-right: 0.2rem;
    white-space: nowrap;
    opacity: 0;  /* Initially invisible */
}

.word-up {
    transform: translateY(-50px);
}

.word-down {
    transform: translateY(50px);
}

.text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.text .word-up {
    transform: translateY(100%);
}

.text .word-down {
    transform: translateY(-100%);
}

.cta-button {
    padding: 1rem 2rem;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(50px);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap 0.3s ease;
    width: fit-content;
}

.cta-button .arrow {
    display: inline-block;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    line-height: 1;
}

.cta-button:hover {
    gap: 0.5rem;
}

.cta-button:hover .arrow {
    transform: translateX(0);
    opacity: 1;
}

.services {
    padding: 100px 10%;
    background: #f5f5f5;
}

.services h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    opacity: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #EBEBE9;
    padding: 2rem;
    border-radius: 4px;
    /* Remove transform: scale(0); */
    transform-origin: center;
}

/* .service-card {
    background: #EBEBE9;
    padding: 2rem;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(30px);
} */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #000000;
}

.identity-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-section .content {
    width: 100%;
    max-width: 100%;
    z-index: 10;
    position: relative;
}

.content__title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    color: #ffffff;
    filter: invert(0.75); /* This makes it appear dark on light background */
    mix-blend-mode: difference; /* This inverts when images are behind */
}

.images-section {
    position: relative;
    min-height: 100vh;
    background: #f5f5f5;
    overflow: hidden;
    /* margin-top: -50vh; */
    /* padding-bottom: 100vh; */
}

.content__title.title-large {
    font-size: 70px;
    margin-bottom: 50px;
    font-weight: 350;
}

.content__title.title-description {
    font-size: 30px;
    font-weight: 300;
    overflow-x: hidden; /* Prevent text from expanding viewport */
}

.content__title.title-description .word {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%; /* Prevent words from going outside */
}

/* These are the original span tags in your HTML */
.content__title > span {
    display: block;
    max-width: 100%;
}

/* Splitting.js creates .word wrappers around each word */
.content__title .word {
    display: inline-block;
    white-space: nowrap;
}

/* Important for the 3D effect - each character */
.char {
    display: inline-block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .content__title.title-large {
        font-size: 40px !important;
    }
    
    .content__title.title-description {
        font-size: 18px !important;
    }
    
    .identity-section {
        padding: 50px 5%;
    }
}

.content__title.title-large {
    font-size: 70px;
    margin-bottom: 50px;
    font-weight: 350;
}


.content__title.title-description {
    font-size: 30px;
    font-weight: 300;
}


@media (max-width: 768px) {
    .content__title.title-large {
        font-size: 40px;
    }
    
    
    .content__title.title-description {
        font-size: 25px !important;
    }
    
}

.services-sticky {
    position: relative;
    padding: 0;
    margin: 0;
    margin-top: 0;
    background: #f5f5f5;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.services-sticky__item:last-child {
    margin-bottom: 50vh; /* Space after the last card */
}

.services-sticky__item {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    border-radius: 5px 5px 0 0; /* Top left and top right corners rounded */
    overflow: hidden; /* Ensure content doesn't overflow rounded corners */
}

.services-sticky__item-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    color: #ffffff;
    transform: scale(0.8);
    opacity: 0;
}

/* Title positioned at top left */
.services-sticky__item-title {
    position: absolute;
    top: 0.5rem; /* Moved higher - was 2rem */
    left: 2rem;
    z-index: 10;
}

.services-sticky__item-title p {
    font-size: 1.0rem; /* Smaller - was 2.5rem */
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

.services-sticky__image {
    flex: 0 0 45%;
}

.services-sticky__image img,
.services-sticky__image video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.services-sticky__content {
    flex: 1;
    /* text-align: center; */
}

.services-sticky__content h3 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.services-sticky__content p {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.services-sticky__content p [data-splitting] {
    display: block;
}

.services-sticky__content p .line {
    display: block;
    overflow: hidden;
}

@media (max-width: 768px) {
    .services-sticky__item-inner {
        flex-direction: column;
        gap: 2rem;
        /* text-align: center; */
    }
    
    .services-sticky__item-title {
        top: 0.5rem; /* Even higher on mobile */
        left: 1rem;
    }
    
    .services-sticky__item-title p {
        font-size: 1.3rem; /* Smaller on mobile - was 1.8rem */
    }
    
    .services-sticky__image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .services-sticky__content {
        /* text-align: center; */
    }
    
    .services-sticky__content h3 {
        font-size: 2rem;
    }
    
    .services-sticky__content p {
        font-size: 1.2rem;
    }
}

.contact {
    padding: 100px 10%;
    background: #f5f5f5;
    position: relative;
    min-height: 100vh;

}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    opacity: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 4px;
    color: #535151;
}

.submit-button {
    background: #2a2a2a;
    color: #A09F92;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

#submit-btn {
    background-color: #a0a09f;
    color: #000000;
    border: 1px solid black;
    border-radius: 2px;
    padding: 1vh 1vh;
    font-family: inherit;
    font-style: inherit;
    cursor: pointer;
    transition: ease .3s;
}

#submit-btn:hover {
    opacity: .9;
    box-shadow: 2px 2px;
    transition: ease .3s;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #000;
    padding: 5px 0;
    /* font-family: "proxima-nova, sans-serif"; */
    }
    
.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.word-up {
    transform: translateY(-50px);
}

.word-down {
    transform: translateY(50px);
}

.case-studies {
    padding: 100px 10%;
    min-height: 100vh;
    background: #f5f5f5;
    position: relative;
}

.case-studies h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    opacity: 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
}

/* Base card styles remain the same */
.case-card {
    /* Remove any fixed width/padding */
    width: fit-content; /* Initially fit to content width */
    background: #EBEBE9;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid black;
    padding: 1vh;
    transition: all 0.3s ease;
    
    /* Initially collapsed state */
    height: auto;
    max-height: 50px;
    overflow: hidden;
    /* Add transform origin for smooth scaling */
    transform-origin: left center;
}

/* Ensure the heading doesn't wrap */
.case-card h3 {
    white-space: nowrap;
    display: inline-block;
}

/* Create a wrapper div for the content that will expand */
.case-card-content {
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
}

/* Hide the tags and description initially */
.case-card .case-tags,
.case-card p {
    opacity: 0;
    transform: translateY(20px);
}

/* Expanded state class that will be toggled by GSAP */
.case-card.expanded {
    max-height: 300px; /* Adjust based on your content */
    padding: 2rem;
}

.case-card.expanded .case-tags,
.case-card.expanded p {
    opacity: 1;
    transform: translateY(0);
}

.case-card:hover {
    /* transform: scale(1.02); */
    opacity: .9;
    border-radius: 2px;
    box-shadow: 8px 8px;
    transition: ease .3s;
}

#ucn-card {
    position: relative;
}

.hover-gif {
    position: absolute;
    width: 150px;  /* Adjust size as needed */
    height: 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1003;
    background-image: url('../img/cyberpunk-classified.gif');
    background-size: cover;
    transform-origin: 0 0; /* Set transform origin to top left */
    left: 20px;
    top: 20px;
}

.case-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    perspective: 1000px;
}

.diagonal-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card:hover .diagonal-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.case-card h3 span {
    display: inline-block;
    transform-origin: 50% 50% -10px;
    backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.case-card:hover h3 span {
    animation: flipLetter 0.2s ease forwards;
}

/* Apply staggered delay to each letter */
.case-card:hover h3 span:nth-child(1) { animation-delay: 0s; }

.case-card:hover h3 span:nth-child(2) { animation-delay: 0.03s; }

.case-card:hover h3 span:nth-child(3) { animation-delay: 0.06s; }

.case-card:hover h3 span:nth-child(4) { animation-delay: 0.09s; }

.case-card:hover h3 span:nth-child(5) { animation-delay: 0.12s; }

.case-card:hover h3 span:nth-child(6) { animation-delay: 0.15s; }

.case-card:hover h3 span:nth-child(7) { animation-delay: 0.18s; }

.case-card:hover h3 span:nth-child(8) { animation-delay: 0.21s; }

.case-card:hover h3 span:nth-child(9) { animation-delay: 0.23s; }

.case-card:hover h3 span:nth-child(10) { animation-delay: 0.26s; }

.case-card:hover h3 span:nth-child(11) { animation-delay: 0.29s; }

.case-card:hover h3 span:nth-child(12) { animation-delay: 0.31s; }

.case-card:hover h3 span:nth-child(13) { animation-delay: 0.33s; }

@keyframes flipLetter {
    0% { transform: rotateX(0deg); }
    
    100% { transform: rotateX(360deg); }
    
}

.case-card p {
    margin-bottom: 1.5rem;
    color: #535151;
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.case-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #A09F92;
    border-radius: 2px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.clients-intro {
    position: relative;
    background: #f5f5f5;
}

.clients-intro h2 {
    font-size: clamp(2rem, 7vw, 4rem);
}

.clients-intro__stage {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
}

.clients-intro__claim {
    --line-height: 1.5;
    --height: calc(1em * var(--line-height));
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: var(--height);
    padding: 0 10%;
    line-height: var(--line-height);
    font-weight: 500;
}

.clients-intro__claim-open {
    flex: 0 0 50%;
    text-align: right;
    padding-right: 2rem;
    font-size: 5vh;
}

@media (max-width: 768px) {
    .clients-intro__claim-open {
        flex-basis: 45%;
        padding-right: 1rem;
    }
}

.clients-intro__claim-items {
    display: flex;
    flex-direction: column;
    flex: 0 0 50%;
    height: var(--height);
    position: relative;
    font-size: 5vh;
}

.clients-intro__claim-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: var(--height);
    font-weight: 600;
    opacity: 0.3;
    transition: opacity 0.3s;
    white-space: nowrap; /* Force single line */
}

.clients-intro__claim-item.is-active {
    opacity: 1;
}

.clients-intro__spacer {
    height: 230vh; /* Adjust based on number of items */
}

@media (max-width: 768px) {
    .clients-intro__claim {
        font-size: 1.5rem;
    }
}

.clients-intro__claim-item .short-name {
    display: none;
}

@media (max-width: 768px) {
    .clients-intro__claim-open {
        flex-basis: 40%;
        padding-right: 1rem;
        font-size: 3.5vh;
    }
    
    .clients-intro__claim-items {
        flex-basis: 60%;
        font-size: 3.5vh;
    }
    
    .clients-intro__claim-item {
        font-size: 3.5vh;
    }
    
    /* Hide full name, show abbreviation */
    .clients-intro__claim-item .full-name {
        display: none;
    }
    
    .clients-intro__claim-item .short-name {
        display: inline;
    }

    .clients-intro__spacer {
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .clients-intro__claim-open {
        font-size: 3vh;
    }
    
    .clients-intro__claim-items {
        font-size: 2.5vh;
    }
    
    .clients-intro__claim-item {
        font-size: 2.5vh;
    }
}

.footer {
    padding: 2rem 10%;
    border-top: 1px solid #EBEBE9;
    position: relative;
    z-index: 100; /* Above sticky cards */
    background: #f5f5f5; /* Cover the cards */
}

.copyright {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .cube-container {
        position: absolute;
        top: 70px;
        right: 90px;
        width: 200px;
        height: 200px;
        overflow: hidden;
    }
    
    .burger {
        display: block;
    }
    
    .logo {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .logo.hidden {
        transform: translateX(-100%);
        opacity: 0;
    }

    /* #logo {
        pointer-events: auto !important;
        z-index: 100;
        position: relative;
        cursor: pointer;
    } */
    
    .nav-links {
        position: fixed;
        left: 0;
        top: 0;
        height: 80px;
        width: 100%;
        display: flex;
        justify-content: flex-start;  /* Changed from center to flex-start */
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        background: #A09F92;
        opacity: 1;
        padding-left: 2rem;  /* Added padding to match navbar padding */
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .hero-text-container {
        max-width: 95vw;  /* You can adjust this value */
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.images-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-image {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
}

/* Start all images at center */
.floating-image {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

video.floating-image {
    object-fit: cover;
}

@media (max-width: 768px) {
    .floating-image {
        width: 120px;
        height: 120px;
    }
}


/* Initial random positions (spread out) */
.floating-image:nth-child(1) { left: 10%; top: 120%; }

.floating-image:nth-child(2) { left: 80%; top: 130%; }

.floating-image:nth-child(3) { left: 30%; top: 125%; }

.floating-image:nth-child(4) { left: 60%; top: 135%; }

.floating-image:nth-child(5) { left: 5%; top: 140%; }

.floating-image:nth-child(6) { left: 75%; top: 145%; }

.floating-image:nth-child(7) { left: 45%; top: 150%; }

.floating-image:nth-child(8) { left: 20%; top: 155%; }

.floating-image:nth-child(9) { left: 90%; top: 160%; }

.floating-image:nth-child(10) { left: 50%; top: 165%; }


@media (max-width: 768px) {
    .floating-image {
        width: 120px;
        height: 120px;
    }
    
}



/* width */
::-webkit-scrollbar {
    width: 3px;
}

  
/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

  
/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px;
    transition: background 0.3s ease;

}

  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.6); /* Dark with 60% opacity */
    transition: background 0.3s ease;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: #A09F92;
    transform: translateY(0); /* Starts covering the screen */
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: all;
}

.preloader.is-hidden {
    transform: translateY(-100%); /* Slides up and away */
    pointer-events: none;
}

.exit-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background-color: #A09F92;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
    height: 110vh; /* Add extra height */
    top: auto;
    bottom: -10vh; /* Position it lower */
}

.exit-loader.is-active {
    transform: translateY(0);
    pointer-events: all;
}

.exit-loader-emoji {
    font-size: 3rem;
    color: #000000;
}