:root {
    --bg-color: #f4f4f0;
    --text-color: #111111;
    --blue: #2424ff;
    --yellow: #ffeb3b;
    --pink: #ff1493;
    --green: #00fa9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.big-link,
.marquee,
.overlay-links a {
    font-family: 'Syne', sans-serif;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: #fff;
}

/* Shapes Background */
.shape {
    position: fixed;
    z-index: -1;
    opacity: 0.8;
}

.circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: -100px;
    left: -100px;
    mix-blend-mode: multiply;
    animation: drift 20s infinite alternate;
}

.square {
    width: 300px;
    height: 300px;
    top: 40%;
    right: 5%;
    mix-blend-mode: multiply;
    transform: rotate(45deg);
    animation: spin 30s linear infinite;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 300px solid var(--pink);
    bottom: 10%;
    left: 20%;
    mix-blend-mode: multiply;
    animation: bounce 15s infinite alternate;
}

.blob {
    width: 500px;
    height: 500px;
    background: var(--green);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    bottom: -200px;
    right: -100px;
    mix-blend-mode: multiply;
    animation: morph 15s infinite;
}

.blue {
    background-color: var(--blue);
}

.yellow {
    background-color: var(--yellow);
}

/* Layout */
main {
    padding: 0 5%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 0.9;
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
}

.menu-btn {
    width: 40px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 101;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
    pointer-events: none;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--bg-color);
}

.menu-btn.active span:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--bg-color);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--text-color);
    color: var(--bg-color);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
    transform: translateY(0);
}

.overlay-links {
    list-style: none;
    text-align: center;
}

.overlay-links a {
    font-size: 5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--bg-color);
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.overlay-links a::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    color: var(--bg-color);
    -webkit-text-stroke: 0;
    overflow: hidden;
    transition: width 0.5s;
    white-space: nowrap;
}

.overlay-links a:hover::before {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10vh;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 800;
    line-height: 0.85;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero-title span {
    display: block;
}

.line-1 {
    padding-left: 0;
}

.line-2 {
    padding-left: 10%;
    color: var(--blue);
}

.line-3 {
    padding-left: 5%;
}

.hero-sub {
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-weight: 500;
    font-size: 1.1rem;
}

.hero-sub p {
    max-width: 300px;
}

/* Work Selection */
.work-section {
    padding: 10rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 1rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.counter {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.2);
    position: relative;
    transition: padding 0.3s;
}

.project-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
}

.project-info h3 {
    font-size: 4rem;
    text-transform: uppercase;
    line-height: 1;
}

.project-info p {
    margin-top: 0.5rem;
}

.project-visual {
    width: 300px;
    height: 200px;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%) scale(0);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-item:hover .project-visual {
    transform: translateY(-50%) scale(1);
}

.bg-blue {
    background: var(--blue);
}

.bg-yellow {
    background: var(--yellow);
}

.bg-pink {
    background: var(--pink);
}

/* Marquee */
.marquee-section {
    padding: 5rem 0;
    background: var(--text-color);
    color: var(--bg-color);
    transform: rotate(-2deg) scale(1.1);
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee span {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 2rem;
}

/* Footer */
.footer {
    padding: 10rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10rem;
}

.text-right {
    text-align: right;
}

.big-link {
    font-size: clamp(2rem, 5vw, 4rem);
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
    position: relative;
}

.big-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--text-color);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s;
}

.big-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(17, 17, 17, 0.2);
    padding-top: 2rem;
}

.socials a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 500;
}

/* Animations */
@keyframes drift {
    100% {
        transform: translate(100px, 50px);
    }
}

@keyframes spin {
    100% {
        transform: rotate(405deg);
    }
}

@keyframes bounce {
    100% {
        transform: translateY(-100px);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1.1);
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .project-info h3 {
        font-size: 2.5rem;
    }

    .project-item:hover .project-visual {
        display: none;
    }

    .overlay-links a {
        font-size: 3rem;
    }

    .hero-sub {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}