:root {
    --bg: #060A0F;
    --surface: #0D1117;
    --surface-2: #131B24;
    --border: rgba(0, 255, 170, 0.12);
    --border-hover: rgba(0, 255, 170, 0.35);
    --accent: #00FFAA;
    --accent-dim: rgba(0, 255, 170, 0.15);
    --accent-2: #00AAFF;
    --text: #E8EDF2;
    --text-muted: #5A7080;
    --text-dim: #8899AA;
    --red: #FF4466;
    --yellow: #FFB800;
    --mono: 'JetBrains Mono', monospace;
    --display: 'Syne', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 255, 170, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
}

.cursor.click {
    transform: scale(2);
}

/* Grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Noise overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(6, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 60px;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.nav-logo span {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::before {
    content: '//';
    color: var(--accent);
    margin-right: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-resume {
    padding: 8px 20px;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    border-radius: 3px;
    transition: all 0.2s !important;
}

.nav-resume:hover {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
}

.nav-resume::before {
    display: none !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--accent);
    font-size: 20px;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 60px;
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 170, 0);
    }
}

.hero-name {
    font-family: var(--display);
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.9s 0.4s forwards;
}

.hero-name .line-1 {
    display: block;
    color: var(--text);
}

.hero-name .line-2 {
    display: block;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
}

.hero-name .accent-char {
    color: var(--accent);
}

.hero-tagline {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s forwards;
}

.hero-tagline .keyword {
    color: var(--accent-2);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s 0.8s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    border: none;
    cursor: none;
}

.btn-primary:hover {
    background: #00FFB8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 170, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid var(--border-hover);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
    cursor: none;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-social {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    border-radius: 4px;
}

.hero-social a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.hero-social-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--border-hover));
    margin: 8px auto 0;
}

/* Terminal window deco */
.hero-terminal {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-45%);
    width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
    pointer-events: none;
}

.terminal-bar {
    background: var(--surface-2);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.t-dot.r {
    background: #FF5F57;
}

.t-dot.y {
    background: #FFBD2E;
}

.t-dot.g {
    background: #28CA41;
}

.terminal-title {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 20px;
    font-size: 12px;
    line-height: 2;
}

.t-line {
    display: flex;
    gap: 8px;
}

.t-prompt {
    color: var(--accent);
}

.t-cmd {
    color: var(--text);
}

.t-comment {
    color: var(--text-muted);
}

.t-key {
    color: var(--accent-2);
}

.t-val {
    color: #FFB800;
}

.t-str {
    color: #FF7055;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* SECTION BASE */
section {
    position: relative;
    z-index: 1;
}

.section-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.section-title-main {
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 500px;
}

/* ABOUT */
.about-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.about-text p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 2;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--accent);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.stat-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
}

.stat-num {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-group-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-dim);
    transition: all 0.2s;
}

.skill-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.skill-chip .dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

.skill-chip:hover .dot {
    opacity: 1;
}

/* PROJECTS */
.projects-section {
    background: var(--bg);
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}

.projects-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card:hover::before {
    opacity: 1;
}

.project-num {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.project-card:hover .project-icon {
    background: var(--accent);
}

.project-card:hover .project-icon i {
    color: var(--bg);
}

.project-icon i {
    color: var(--accent);
    transition: color 0.2s;
}

.project-name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.project-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project-tag {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.2);
    color: var(--accent-2);
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.project-card:hover .project-link {
    color: var(--accent);
}

.project-link i {
    font-size: 10px;
    transition: transform 0.2s;
}

.project-card:hover .project-link i {
    transform: translate(2px, -2px);
}

/* CONTACT */
.contact-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-left .big-text {
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact-left .big-text .accent {
    color: var(--accent);
}

.contact-left p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    text-decoration: none;
    transition: all 0.2s;
}

.contact-link-item:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.contact-link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 4px;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.contact-link-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-link-val {
    font-size: 13px;
    color: var(--text);
    margin-top: 2px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-submit {
    margin-top: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: none;
    transition: all 0.2s;
    align-self: flex-start;
}

.form-submit:hover {
    background: #00FFB8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 170, 0.25);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
}

.footer-left {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-left span {
    color: var(--accent);
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 900px) {
    nav {
        padding: 18px 24px;
    }

    nav.scrolled {
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(6, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 99;
    }

    .nav-links.open a {
        font-size: 18px;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 100;
    }

    .hero {
        padding: 120px 24px 60px;
        flex-direction: column;
    }

    .hero-terminal {
        display: none;
    }

    .hero-social {
        right: 24px;
    }

    .hero-name {
        font-size: clamp(40px, 10vw, 72px);
    }

    .section-wrap {
        padding: 80px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}