/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #020202;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   FERROFLUID
========================================= */

#ferrofluid {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    z-index: -10;

    pointer-events: auto;
}

#ferrofluid canvas {
    display: block;

    width: 100%;
    height: 100%;
}


/* =========================================
   BACKGROUND OVERLAY
========================================= */

.background-overlay {
    position: fixed;

    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.45)
        );

    pointer-events: none;

    z-index: -9;
}


/* =========================================
   CURSOR
========================================= */

.cursor-dot {
    position: fixed;

    width: 7px;
    height: 7px;

    background: #ffffff;

    border-radius: 50%;

    pointer-events: none;

    z-index: 9999;

    transform: translate(-50%, -50%);

    box-shadow:
        0 0 10px #a855f7,
        0 0 25px #a855f7;
}


.cursor-ring {
    position: fixed;

    width: 38px;
    height: 38px;

    border: 1px solid #a855f7;

    border-radius: 50%;

    pointer-events: none;

    z-index: 9998;

    transform: translate(-50%, -50%);

    transition:
        width 0.3s ease,
        height 0.3s ease;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    padding: 0 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 1000;
}


.nav-logo {
    font-size: 20px;

    font-weight: 900;

    letter-spacing: -1px;

    transition: 0.3s ease;
}


.nav-logo:hover {
    color: #a855f7;

    transform: scale(1.1);
}


.nav-links {
    display: flex;

    gap: 35px;
}


.nav-links a {
    position: relative;

    font-size: 10px;

    letter-spacing: 2px;

    color: #c4c4c7;

    transition: 0.3s ease;
}


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


.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: #a855f7;

    transition: 0.3s ease;
}


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


.nav-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #a1a1aa;

    font-size: 9px;

    letter-spacing: 2px;
}


.nav-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #a855f7;

    box-shadow:
        0 0 10px #a855f7;

    animation: pulse 2s infinite;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    height: 100vh;

    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;
}


.hero-content {
    position: relative;

    z-index: 2;
}


.hero-small {
    margin-bottom: 35px;

    color: #c084fc;

    font-size: 10px;

    letter-spacing: 6px;
}


.hero-title {
    display: flex;

    justify-content: center;

    font-size: clamp(
        80px,
        17vw,
        250px
    );

    line-height: 0.8;

    font-weight: 900;

    letter-spacing: -0.09em;

    white-space: nowrap;

    will-change: transform;
}


.hero-title span {
    display: inline-block;

    will-change: transform;
}


.hero-description {
    max-width: 430px;

    margin: 45px auto 30px;

    padding: 0 20px;

    color: #c4c4c7;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================
   BUTTONS
========================================= */

.hero-button,
.contact-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    padding: 17px 25px;

    border: 1px solid rgba(255,255,255,0.25);

    background:
        rgba(0,0,0,0.25);

    backdrop-filter: blur(10px);

    font-size: 9px;

    letter-spacing: 2px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.hero-button:hover,
.contact-button:hover {
    background: #8b5cf6;

    border-color: #8b5cf6;
}


/* =========================================
   SCROLL INDICATOR
========================================= */

.scroll-indicator {
    position: absolute;

    bottom: 35px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    color: #a1a1aa;

    font-size: 8px;

    letter-spacing: 4px;
}


.scroll-line {
    width: 1px;

    height: 60px;

    background:
        linear-gradient(
            #a855f7,
            transparent
        );

    animation:
        scrollPulse 2s infinite;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    position: relative;

    min-height: 100vh;

    padding: 150px 10vw;

    display: flex;

    align-items: center;

    border-top: 1px solid rgba(255,255,255,0.08);

    overflow: hidden;
}


.section-number {
    position: absolute;

    top: 55px;

    left: 5vw;

    color: #a1a1aa;

    font-size: 9px;

    letter-spacing: 3px;
}


.section-content {
    width: 100%;

    max-width: 1100px;

    margin: auto;
}


.section-label {
    margin-bottom: 40px;

    color: #c084fc;

    font-size: 9px;

    letter-spacing: 5px;
}


.section h2 {
    font-size: clamp(
        55px,
        8vw,
        120px
    );

    line-height: 0.95;

    letter-spacing: -0.07em;

    font-weight: 800;
}


.section h2 span {
    color: #c084fc;
}


.section-text {
    max-width: 500px;

    margin-top: 50px;

    color: #c4c4c7;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================
   PROJECT
========================================= */

.project-card {
    position: relative;

    width: 100%;

    margin-top: 100px;

    padding: 50px;

    display: grid;

    grid-template-columns:
        70px 1fr 70px;

    align-items: center;

    border: 1px solid rgba(255,255,255,0.18);

    background:
        rgba(0,0,0,0.2);

    backdrop-filter: blur(12px);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;
}


.project-card:hover {
    transform: translateY(-8px);

    border-color: #a855f7;

    background:
        rgba(139,92,246,0.08);
}


.project-number {
    color: #a1a1aa;

    font-size: 11px;

    letter-spacing: 2px;
}


.project-info h3 {
    font-size: clamp(
        25px,
        3vw,
        45px
    );

    line-height: 1;

    letter-spacing: -0.04em;

    font-weight: 800;
}


.project-info p {
    max-width: 520px;

    margin-top: 20px;

    color: #c4c4c7;

    font-size: 13px;

    line-height: 1.8;
}


.project-tech {
    margin-top: 25px;

    color: #c084fc;

    font-size: 8px;

    letter-spacing: 2px;
}


.project-tech span {
    margin: 0 5px;

    color: #71717a;
}


.project-arrow {
    text-align: right;

    color: #c084fc;

    font-size: 30px;

    transition: 0.4s ease;
}


.project-card:hover .project-arrow {
    transform:
        translate(5px, -5px);
}


/* =========================================
   CONTACT
========================================= */

.contact {
    min-height: 90vh;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

}


@keyframes scrollPulse {

    0% {
        opacity: 0.2;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        opacity: 0.2;
        transform: scaleY(0.5);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }


    .navbar {
        height: 70px;

        padding:
            0 20px;
    }


    .nav-links {
        display: none;
    }


    .hero-title {
        font-size: 21vw;
    }


    .hero-small {
        font-size: 8px;

        letter-spacing: 4px;
    }


    .section {
        padding:
            120px 25px;
    }


    .section-number {
        top: 40px;

        left: 25px;
    }


    .section h2 {
        font-size: 15vw;
    }


    .project-card {
        padding: 30px;

        grid-template-columns:
            1fr 35px;
    }


    .project-number {
        display: none;
    }

}
#ferrofluid {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

#ferrofluid canvas {
    width: 100%;
    height: 100%;
    display: block;
}

main,
.navbar {
    position: relative;
    z-index: 2;
}