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

:root {
    --bg: #0a0a0b;
    --bg2: #111113;
    --bg3: #18181c;
    --line: rgba(255, 255, 255, 0.07);
    --accent: #c8f04d;
    --accent2: #7eeabc;
    --text: #f0ede8;
    --muted: #7a7870;
    --card: #141416;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

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

.nav-cta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
    background: var(--accent);
    color: #0a0a0b;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 240, 77, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-tag {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #0a0a0b;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 240, 77, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--line);
    transition: border-color 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-stats {
    position: absolute;
    right: 3rem;
    bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
}

.stat {
    text-align: right;
}

.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    color: var(--text);
    line-height: 1;
}

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

.stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.scroll-hint span {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
        transform-origin: top;
    }

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

/* SECTIONS */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 3rem;
    border-top: 1px solid var(--line);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.section-num {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
}

/* SKILLS */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.skill-cell {
    background: var(--bg);
    padding: 2rem;
    transition: background 0.2s;
}

.skill-cell:hover {
    background: var(--bg3);
}

.skill-cell-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover,
.skill-tag.hot {
    border-color: var(--accent);
    color: var(--accent);
}

/* EXPERIENCE */
.exp-list {
    display: flex;
    flex-direction: column;
}

.exp-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}

.exp-row:hover {
    background: rgba(255, 255, 255, 0.015);
}

.exp-row:first-child {
    border-top: 1px solid var(--line);
}

.exp-period {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    padding-top: 3px;
    line-height: 1.6;
}

.exp-role {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.exp-company {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.06em;
}

.exp-location {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}

.exp-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.exp-badge {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(200, 240, 77, 0.3);
    color: var(--accent);
    letter-spacing: 0.08em;
    white-space: nowrap;
    align-self: start;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.proj-card {
    background: var(--card);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

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

.proj-card:hover .proj-arrow {
    transform: translate(3px, -3px);
}

.proj-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.proj-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.proj-arrow {
    font-size: 18px;
    color: var(--muted);
    transition: transform 0.2s;
}

.proj-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
}

.proj-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.proj-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    letter-spacing: 0.04em;
}

.proj-url {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.04em;
    word-break: break-all;
}

/* EDUCATION & CERT */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.edu-card {
    background: var(--card);
    padding: 2rem;
    transition: background 0.2s;
}

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

.edu-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.edu-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.edu-sub {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.edu-meta {
    font-size: 13px;
    color: var(--muted);
}

/* CONTACT */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-big {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
}

.contact-big em {
    font-style: italic;
    color: var(--accent);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    transition: color 0.15s;
    cursor: pointer;
}

.contact-link:first-child {
    border-top: 1px solid var(--line);
}

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

.contact-link span:first-child {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.contact-link span:last-child {
    font-size: 18px;
    transition: transform 0.2s;
}

.contact-link:hover span:last-child {
    transform: translate(4px, -4px);
}

.avail-box {
    border: 1px solid var(--line);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.avail-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(126, 234, 188, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(126, 234, 188, 0);
    }
}

.avail-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--accent2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.avail-text {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.6;
}

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 7rem 1.5rem 5rem;
    }

    .hero-stats {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .skills-layout,
    .edu-grid {
        grid-template-columns: 1fr;
    }

    .exp-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .exp-badge {
        display: none;
    }

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

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}