/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #08090b;
    color: #f5f5f5;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --background: #08090b;
    --surface: #101216;
    --surface-light: #171a20;
    --text: #f5f5f5;
    --text-muted: #858b96;
    --accent: #00e5a0;
    --border: rgba(255,255,255,.08);
    --max-width: 1250px;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(8,9,11,.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: var(--accent);
}


.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
    transition: .3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


.header-button {
    padding: 11px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 13px;
    transition: .3s;
}

.header-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.menu-button {
    display: none;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(
            circle,
            rgba(0,229,160,.10),
            transparent 65%
        );
    pointer-events: none;
}

.hero-content {
    max-width: 950px;
    text-align: center;
    position: relative;
    z-index: 2;
}


.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 35px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}


.hero-small {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 20px;
}


.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(52px, 8vw, 105px);
    line-height: .95;
    letter-spacing: -5px;
    font-weight: 600;
}

.hero-title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px #666;

}


.hero-description {
    max-width: 600px;
    margin: 35px auto;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   BUTTONS
========================================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    padding: 15px 24px;
    border-radius: 5px;
    font-size: 14px;
    transition: .3s;
}

.btn-primary {
    background: var(--accent);
    color: #05130f;
    font-weight: 600;
}

.btn-primary span {
    margin-left: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,229,160,.15);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: #555;
    color: white;
    transform: translateY(-3px);
}


/* =========================================
   TECHNOLOGIES
========================================= */

.hero-tech {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    color: #555;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
}


/* =========================================
   SCROLL
========================================= */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 9px;
    letter-spacing: 2px;
    transform: rotate(90deg);
}

.scroll-line {
    width: 50px;
    height: 1px;
    background: #444;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    max-width: var(--max-width);
    margin: auto;
    padding: 150px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
}

.section-label {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-header h2,
.contact-intro h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-header h2 span,
.contact-intro h2 span {
    color: transparent;
    -webkit-text-stroke: 1px #666;
}

.section-description {
    max-width: 350px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}


/* =========================================
   PORTFOLIO
========================================= */

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: .4s;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,229,160,.25);
}


.project-image {
    height: 330px;
    position: relative;
    overflow: hidden;
}

.project-one {

    background:
        linear-gradient(
            135deg,
            #161a1f,
            #0d2922
        );
}

.project-two {

    background:
        linear-gradient(
            135deg,
            #17171d,
            #202032
        );
}

.project-three {

    background:
        linear-gradient(
            135deg,
            #191817,
            #272014
        );
}


.project-image::after {
    content: "";
    position: absolute;
    inset: 25%;
    border: 1px solid rgba(255,255,255,.1);
    transform: rotate(45deg);
    transition: .6s;
}

.project-card:hover .project-image::after {
    transform: rotate(135deg) scale(1.2);
    border-color: rgba(0,229,160,.3);
}


.project-number {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #666;
    font-size: 12px;
    z-index: 2;
}


.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: .4s;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    border: 1px solid rgba(255,255,255,.3);
    padding: 12px 18px;
    font-size: 12px;
    border-radius: 30px;
}


.project-info {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-info h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.project-tags span {
    color: #666;
    font-size: 9px;
    text-transform: uppercase;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    max-width: 1250px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-intro > p:not(.section-label) {
    max-width: 430px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 30px 0;
}

.email {
    color: var(--accent);
    font-size: 14px;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: white;
    padding: 12px 0;
    outline: none;
    resize: vertical;
    transition: .3s;
}

.form-group input:focus,
.form-group textarea:focus {

    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #444;
}


.submit-button {
    align-self: flex-start;
    margin-top: 10px;
    padding: 15px 25px;
    border: 1px solid var(--border);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: .3s;
}

.submit-button span {
    margin-left: 15px;
}

.submit-button:hover {
    background: var(--accent);
    color: #06130f;
    border-color: var(--accent);
}

/* =========================================
   FOOTER
========================================= */

.footer {
    min-height: 100px;
    padding: 30px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    color: #555;
    font-size: 11px;
}

.footer-logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.socials {

    display: flex;
    gap: 10px;
}

.socials a:hover {
    color: white;
}


/* =========================================
   REVEAL ANIMATION
========================================= */

.reveal {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   CURSOR
========================================= */

.cursor {

    position: fixed;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition:
        width .2s,
        height .2s,
        background .2s;
}

.cursor.active {

    width: 35px;
    height: 35px;
    background: rgba(0,229,160,.1);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .nav,
    .header-button {
        display: none;
    }

    .menu-button {

        display: flex;

        flex-direction: column;

        gap: 6px;

        background: none;

        border: none;

        cursor: pointer;
    }

    .menu-button span {

        width: 25px;

        height: 1px;

        background: white;
    }

    .hero-tech {
        display: none;
    }

    .projects {

        grid-template-columns: 1fr;
    }

    .project-image {
        height: 300px;
    }

    .section-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

    .contact-wrapper {

        grid-template-columns: 1fr;

        gap: 70px;
    }

}


@media (max-width: 600px) {

    .header {
        height: 70px;
    }

    .hero {

        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {

        font-size: 48px;

        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {

        flex-direction: column;

        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 100px 20px;
    }

    .section-header h2,
    .contact-intro h2 {

        font-size: 43px;
    }

    .project-info {

        flex-direction: column;
    }

    .project-tags {

        flex-direction: row;

        align-items: flex-start;
    }

    .footer {

        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .cursor {
        display: none;
    }
}