@import url('https://fonts.googleapis.com/css2?family=Anton&family=Geist:wght@400;500&display=swap');

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

html, body {
    height: 300vh;
    overflow-x: hidden;
}

body {
    background: #F3F2F0;
    font-family: 'Geist', monospace;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    z-index: 150;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 15vw, 14rem);
    font-weight: 400;
    line-height: 0.95;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -3px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-family: 'Geist', monospace;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin: 0;
    margin-top: clamp(2rem, 6vw, 5rem);
    line-height: 1.2;
    max-width: 45%;
}

.hero-content {
    position: fixed;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 30;
    pointer-events: none;
    mix-blend-mode: difference;
}

body.menu-open .hero-content {
    mix-blend-mode: normal;
    color: #FFFFFF;
}

body.menu-open .carousel-section {
    display: none;
}

body.menu-open .hero-content {
    display: none;
}

.hero-title .title-line span,
.hero-subtitle span span {
    display: inline-block;
    opacity: 0;
    animation: revealBottom 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .title-line:first-child span {
    animation-delay: 0.3s;
}

.hero-title .title-line:last-child span {
    animation-delay: 0.5s;
}

.hero-subtitle span:first-child span {
    animation-delay: 0.7s;
}

.hero-subtitle span:last-child span {
    animation-delay: 0.9s;
}

@keyframes revealBottom {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    height: 18px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img {
        height: 12px;
    }
    
    .navbar {
        padding: 16px 20px;
    }
    
    .menu-btn {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 18vw, 8rem);
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
        letter-spacing: -0.02em;
        max-width: none;
    }
    
    .hero-content {
        top: 30%;
        left: 20px;
        right: 20px;
    }
    
    .carousel-section {
        bottom: -32px !important;
    }
    
    .project-card {
        width: 280px;
        pointer-events: none;
    }
    
    .carousel {
        gap: 16px;
    }
}

.menu-btn {
    font-family: 'Geist', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #111;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    text-transform: uppercase;
    z-index: 1001;
    position: relative;
}

.menu-btn:hover {
    opacity: 0.7;
}

body.menu-open .menu-btn {
    color: #FFFFFF;
}

body.menu-open .navbar {
    background: rgba(0, 0, 0, 0.5);
}

body.menu-open .logo img {
    filter: invert(1);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0, 0, 0);
    z-index: 100;
    display: none;
    align-items: start;
    justify-content: left;
    mix-blend-mode: normal;
    padding: 100px 20px;
}

.fullscreen-menu.active {
    display: flex;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.menu-item {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 13vw, 6rem);
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.01em;
    display: block;
    opacity: 0;
    transform: translateY(60px);
    animation: revealBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-item span {
    display: inline-block;
}

.fullscreen-menu.active .menu-item:nth-child(1) { animation-delay: 0.1s; }
.fullscreen-menu.active .menu-item:nth-child(2) { animation-delay: 0.2s; }
.fullscreen-menu.active .menu-item:nth-child(3) { animation-delay: 0.3s; }
.fullscreen-menu.active .menu-item:nth-child(4) { animation-delay: 0.4s; }

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
}

body.menu-open canvas {
    z-index: 200;
    pointer-events: none;
    mix-blend-mode: normal;
    opacity: 1;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    z-index: 50;
}

/* Carousel */
.carousel-section {
    position: fixed;
    bottom: -270px;
    left: 0;
    right: 0;
    height: 300px;
    z-index: 15;
    overflow: visible;
}

.carousel-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    transform: rotate(-4deg);
    transform-origin: center bottom;
    overflow: visible;
}

.carousel {
    display: flex;
    gap: 24px;
    padding: 0 32px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.project-card {
    flex-shrink: 0;
    width: 364px;
    height: 364px;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-234px) scale(1.05);
}

.project-content {
    padding: 24px;
    color: #F3F2F0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    padding: 4px 8px;
    border-radius: 0px 100px 100px 0px;
    font-family: 'Geist', monospace;
    font-size: 16px;
    color: #000000;
    margin-bottom: 8px;
}

.project-tag img {
    width: 16px;
    height: auto;
}

.project-number {
    font-family: 'Geist', monospace;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 4px;
}

.project-card h3 {
    font-family: 'Geist', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.project-card p {
    display: none;
}
