/* ==============================
   GLOBAL
================================ */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --card: #121212;
    --card-hover: #171717;

    --text: #f5f5f5;
    --text-secondary: #969696;

    --accent: #4f7cff;
    --accent-hover: #6d94ff;

    --border: #262626;

    --heading-font: "Space Grotesk", sans-serif;
    --body-font: "Inter", sans-serif;
    --mono-font: "JetBrains Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    color: var(--accent);
    font-family: var(--mono-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid transparent;

    transition: 0.3s ease;
}

.header.scrolled {
    border-color: var(--border);
}

.navbar {
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    position: relative;

    font-size: 0.87rem;
    color: var(--text-secondary);

    transition: 0.3s ease;
}

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

    position: absolute;
    left: 0;
    bottom: -8px;

    height: 2px;
    width: 0;

    background: var(--accent);

    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

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

.nav-socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-socials a {
    color: var(--text-secondary);
    transition: 0.3s ease;
}

.nav-socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;

    border: none;
    background: transparent;
    color: var(--text);

    font-size: 1.35rem;

    cursor: pointer;
}


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

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 110px;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    left: -250px;
    top: 130px;

    background: rgba(79, 124, 255, 0.08);

    border-radius: 50%;
    filter: blur(110px);

    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 80px;
}

.hero-content h1 {
    margin-top: 22px;

    font-size: clamp(4rem, 7vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: -5px;

    max-width: 850px;
}

.hero-content h1 span {
    display: block;
    color: var(--text-secondary);
}

.hero-role {
    margin-top: 32px;

    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    font-family: var(--mono-font);
    color: var(--text);
    font-size: 0.82rem;
}

.hero-role span {
    color: var(--accent);
}

.hero-description {
    margin-top: 20px;

    max-width: 620px;

    color: var(--text-secondary);

    font-size: 1rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}


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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 22px;

    border: 1px solid var(--border);

    font-size: 0.87rem;
    font-weight: 600;

    transition: 0.3s ease;
}

.btn i {
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);

    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--text);
    transform: translateY(-3px);
}


/* ==============================
   TERMINAL
================================ */

.terminal-wrapper {
    position: relative;
}

.terminal-wrapper::before {
    content: "";

    position: absolute;
    inset: 30px -20px -30px 30px;

    border: 1px solid rgba(79, 124, 255, 0.23);

    z-index: -1;
}

.terminal {
    background: #0d0d0d;

    border: 1px solid var(--border);

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.terminal-top {
    height: 48px;

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;

    position: relative;

    padding: 0 16px;
}

.terminal-top p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    font-family: var(--mono-font);
    font-size: 0.67rem;
    color: #777;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #333;
}

.terminal-body {
    min-height: 340px;

    padding: 30px;

    font-family: var(--mono-font);
    font-size: 0.78rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 25px;
}

.terminal-line:first-child {
    margin-top: 0;
}

.prompt {
    color: var(--accent);
}

.command {
    color: var(--text);
}

.terminal-result {
    margin:
        8px
        0
        0
        21px;

    color: #888;

    line-height: 1.8;
}

.terminal-skills {
    max-width: 350px;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: #4ccd78;
    border-radius: 50%;

    box-shadow: 0 0 12px rgba(76, 205, 120, 0.5);
}

.last-line {
    margin-top: 38px;
}

.typing-text {
    color: var(--text);
}

.cursor {
    display: inline-block;

    width: 7px;
    height: 14px;

    background: var(--accent);

    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }

}


/* ==============================
   TECH STRIP
================================ */

.tech-strip {
    overflow: hidden;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    padding: 19px 0;

    background: #0d0d0d;
}

.tech-track {
    width: max-content;

    display: flex;

    animation: marquee 28s linear infinite;
}

.tech-list {
    display: flex;
    align-items: center;
}

.tech-list span {
    display: flex;
    align-items: center;

    white-space: nowrap;

    font-family: var(--mono-font);
    font-size: 0.72rem;

    color: var(--text-secondary);

    padding: 0 26px;
}

.tech-list span::after {
    content: "•";

    color: var(--accent);

    margin-left: 52px;
}

@keyframes marquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ==============================
   SECTION HEADING
================================ */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 54px;
}

.section-heading h2 {
    margin-top: 8px;

    font-size: clamp(2.8rem, 5vw, 4.6rem);
    letter-spacing: -3px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 0.84rem;
    font-weight: 600;

    padding-bottom: 5px;

    border-bottom: 1px solid var(--text-secondary);

    transition: 0.3s ease;
}

.text-link i {
    font-size: 0.7rem;
    transition: 0.3s ease;
}

.text-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.text-link:hover i {
    transform: translateX(5px);
}


/* ==============================
   PROJECTS
================================ */

.projects {
    border-bottom: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 65px 28px;
}

.project-image {
    min-height: 390px;

    overflow: hidden;

    border: 1px solid var(--border);

    position: relative;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #111,
            #171717
        );
}

.project-placeholder::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    background: rgba(79, 124, 255, 0.09);

    filter: blur(75px);

    transition: 0.5s ease;
}

.project-card:hover .project-placeholder::before {
    transform: scale(1.3);
}

.project-number {
    position: absolute;

    top: 22px;
    left: 22px;

    font-family: var(--mono-font);
    font-size: 0.73rem;

    color: var(--text-secondary);
}

.project-code {
    font-size: 4rem;
    color: var(--accent);

    transition: 0.4s ease;
}

.project-card:hover .project-code {
    transform: scale(1.12);
}

.project-info {
    padding-top: 23px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.project-header h3 {
    font-size: 1.35rem;
}

.project-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.project-header-actions a {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    font-size: 0.75rem;

    transition: 0.3s ease;
}

.project-header-actions a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

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

    margin-top: 12px;

    color: var(--text-secondary);
    font-size: 0.87rem;
}

.tags {
    margin-top: 18px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    border: 1px solid var(--border);

    padding: 6px 10px;

    font-family: var(--mono-font);
    font-size: 0.63rem;

    color: var(--text-secondary);
}


/* ==============================
   SERVICES
================================ */

.services {
    background: var(--bg-secondary);

    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-card {
    min-height: 330px;

    padding: 34px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    position: relative;

    transition: 0.35s ease;
}

.service-card:hover {
    background: var(--card-hover);
}

.service-number {
    position: absolute;

    top: 24px;
    right: 28px;

    font-family: var(--mono-font);
    font-size: 0.7rem;

    color: var(--text-secondary);
}

.service-icon {
    margin-top: 50px;

    font-size: 1.8rem;
    color: var(--accent);
}

.service-card h3 {
    margin-top: 28px;

    font-size: 1.45rem;
}

.service-card p {
    margin-top: 14px;

    color: var(--text-secondary);

    font-size: 0.87rem;
    line-height: 1.8;
}


/* ==============================
   ABOUT
================================ */

.about-preview {
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;

    gap: 80px;
}

.about-content h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    letter-spacing: -3px;

    line-height: 1;
}

.about-content h2 span {
    display: block;
    color: var(--text-secondary);
}

.about-content p {
    max-width: 670px;

    color: var(--text-secondary);

    margin-top: 26px;

    line-height: 1.85;
}

.about-content .text-link {
    margin-top: 34px;
}


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

.contact-cta {
    padding: 120px 0;

    text-align: center;

    background: var(--accent);
}

.contact-cta .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.contact-cta h2 {
    font-size: clamp(4rem, 8vw, 8rem);

    line-height: 0.88;
    letter-spacing: -6px;

    margin-top: 24px;
}

.contact-cta h2 span {
    display: block;
}

.contact-cta p {
    margin-top: 28px;

    color: rgba(255, 255, 255, 0.75);
}

.btn-light {
    margin-top: 34px;

    background: white;
    border-color: white;
    color: #111;
}

.btn-light:hover {
    transform: translateY(-4px);

    background: #111;
    border-color: #111;
    color: white;
}


/* ==============================
   FOOTER
================================ */

.footer {
    padding: 34px 0;

    background: #070707;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a,
.footer p {
    font-size: 0.73rem;
    color: var(--text-secondary);
}

.footer-links a {
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}


/* ==============================
   TABLET
================================ */

@media (max-width: 950px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .hero {
        padding:
            150px
            0
            100px;
    }

    .hero-content h1 {
        font-size: clamp(4rem, 11vw, 7rem);
    }

    .terminal-wrapper {
        max-width: 620px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

}


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

@media (max-width: 750px) {

    .section {
        padding: 85px 0;
    }

    .nav-socials {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 78px;
        left: 0;

        width: 100%;

        background: #0b0b0b;

        border-bottom: 1px solid var(--border);

        flex-direction: column;
        gap: 0;

        padding: 10px 5% 25px;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-15px);

        transition: 0.3s ease;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        padding: 16px 0;

        border-bottom: 1px solid #171717;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-content h1 {
        letter-spacing: -3px;
    }

    .hero-role {
        line-height: 1.8;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .terminal-wrapper::before {
        display: none;
    }

    .terminal-body {
        padding: 23px;

        min-height: 320px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading h2 {
        letter-spacing: -2px;
    }

    .project-image {
        min-height: 300px;
    }

    .about-content h2 {
        letter-spacing: -2px;
    }

    .contact-cta {
        padding: 90px 0;
    }

    .contact-cta h2 {
        letter-spacing: -4px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;

        padding: 10px 0;
    }

}


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

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-content h1 {
        font-size: 3.6rem;
    }

    .terminal-body {
        font-size: 0.69rem;
    }

    .project-image {
        min-height: 250px;
    }

    .project-code {
        font-size: 3rem;
    }

    .service-card {
        padding: 28px;
    }

    .contact-cta h2 {
        font-size: 3.5rem;
    }

}