:root {
    --bg: #f5f5f0;
    --fg: #1a1a18;
    --muted: #777;
    --accent: #378ce7;
    --border: #ddd;
    --font: 'Space Grotesk', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    cursor: none;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

a, button {
    cursor: none;
}

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

button {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor.hover {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--accent);
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(194, 77, 44, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    opacity: 0;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.intro-col {
    flex: 1;
    background: var(--fg);
    transform-origin: top;
}

.page {
    opacity: 0;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.hero-left {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 3rem;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.name-line {
    display: block;
    overflow: hidden;
}

.name-line:nth-child(2) {
    color: var(--accent);
}

.hero-role {
    font-size: 1.125rem;
    color: var(--muted);
    font-weight: 400;
}

.hero-right {
    background: var(--fg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    gap: 2rem;
}

.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-time {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.sidebar-socials {
    display: flex;
    gap: 1rem;
}

.sidebar-socials a {
    color: rgba(255,255,255,0.4);
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-socials a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.pfp-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pfp-orbit {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

.pfp-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
    transition: all 0.5s var(--ease);
}

.pfp-wrapper:hover {
    transform: scale(1.05);
}

.pfp-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: filter 0.5s var(--ease);
}

.pfp-wrapper:hover img {
    filter: grayscale(0%);
}

.pfp-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s var(--ease);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-row:hover {
    background: rgba(255,255,255,0.03);
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}

.meta-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.about {
    padding: 8rem 4rem;
    border-top: 1px solid var(--border);
}

.about-intro {
    margin-bottom: 6rem;
}

.large-text {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.35;
    max-width: 800px;
    letter-spacing: -0.01em;
}

.about-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-col h3 {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.about-col p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg);
    max-width: 400px;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-tags span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
}

.stack-tags span:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.work {
    padding: 6rem 4rem 8rem;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 3rem;
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: padding 0.4s var(--ease);
}

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

.work-row:hover {
    padding-left: 1rem;
}

.work-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: color 0.4s;
}

.work-row:hover .work-name {
    color: var(--accent);
}

.work-desc {
    font-size: 0.9rem;
    color: var(--muted);
}

.work-year {
    font-size: 0.8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.more-link {
    display: inline-block;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.3s;
}

.more-link:hover {
    color: var(--fg);
}

.certs {
    padding: 6rem 4rem 8rem;
    border-top: 1px solid var(--border);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    display: block;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.cert-card:hover {
    border-color: var(--fg);
    transform: translateY(-4px);
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(194, 77, 44, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    transition: all 0.3s var(--ease);
}

.cert-card:hover .cert-icon {
    background: var(--accent);
    color: #fff;
}

.cert-name {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.cert-year {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    background: rgba(194, 77, 44, 0.08);
    border-radius: 100px;
    display: inline-block;
}

.contact {
    padding: 8rem 4rem;
    background: var(--fg);
    color: var(--bg);
    text-align: center;
}

.contact-heading {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 3rem;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    position: relative;
    transition: color 0.4s;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.contact-links a:hover {
    color: #fff;
}

.footer {
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.to-top {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.to-top:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

@media (max-width: 1024px) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    html, body, a, button {
        cursor: auto;
    }
    
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 6rem 2rem 4rem;
        min-height: auto;
    }
    
    .hero-right {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .pfp-container {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .pfp-orbit {
        display: none;
    }
    
    .pfp-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .pfp-badge {
        margin-top: 0;
    }
    
    .sidebar-meta {
        flex: 1;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .about {
        padding: 5rem 2rem;
    }
    
    .about-cols {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .work {
        padding: 4rem 2rem 5rem;
    }
    
    .work-row {
        grid-template-columns: 1fr auto;
    }
    
    .work-desc {
        display: none;
    }
    
    .certs {
        padding: 4rem 2rem 5rem;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 5rem 2rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 640px) {
    .hero-left {
        padding: 4rem 1.5rem;
    }
    
    .hero-right {
        padding: 2rem 1.5rem;
    }
    
    .about {
        padding: 4rem 1.5rem;
    }
    
    .about-intro {
        margin-bottom: 4rem;
    }
    
    .work {
        padding: 3rem 1.5rem 4rem;
    }
    
    .work-row {
        padding: 1.5rem 0;
    }
    
    .certs {
        padding: 3rem 1.5rem 4rem;
    }
    
    .cert-card {
        padding: 1.5rem;
    }
    
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
}
