:root {
    --bg: #0a0a0b;
    --bg-elevated: #141417;
    --text: #ffffff;
    --text-muted: #71717a;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.1);
    --border: #27272a;
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    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");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 32px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

h1 {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

h1 .line {
    display: block;
    overflow: hidden;
}

h1 .line span {
    display: inline-block;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
    transform: translateY(100%);
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    animation: fadeIn 0.8s 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
    display: flex;
    gap: 64px;
    animation: fadeIn 0.8s 0.8s both;
}

.stat {
    position: relative;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

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

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.hero-shape {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, var(--accent-dim) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Currently */
.currently-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    max-width: 800px;
}

.currently-content p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 64px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.focus-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.focus-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
}

.focus-card:hover::before {
    opacity: 1;
}

.focus-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.focus-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.focus-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Projects */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.project:hover {
    padding-left: 24px;
}

.project-info h3 {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    transition: color 0.2s;
}

.project:hover .project-info h3 {
    color: var(--accent);
}

.project-info h3 .arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s;
    color: var(--accent);
}

.project:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

.project-info p {
    font-size: 15px;
    color: var(--text-muted);
}

.project-status {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Writing Grid */
.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.writing-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.writing-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
}

.writing-card .writing-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.writing-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 12px;
    transition: color 0.2s;
}

.writing-card:hover h3 {
    color: var(--accent);
}

.writing-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Background */
.background-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
}

.background-content > p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 48px;
}

.companies {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.company {
    font-size: 15px;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s;
}

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

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-content > p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.linkedin-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.linkedin-badge-wrapper .badge-base {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

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

footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-location {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* Page Header (for internal pages) */
.page-header {
    padding: 160px 0 80px;
    border-bottom: 1px solid var(--border);
}

.page-header .breadcrumb {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.page-header .breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.page-header h1 {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 16px;
    animation: none;
}

.page-header h1 .line span {
    animation: none;
    transform: none;
}

.page-header .page-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

/* Article Content */
.article-content {
    padding: 80px 0;
}

.article-content .container {
    max-width: 760px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 24px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 16px;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-content p strong {
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 15px;
    background: var(--bg-elevated);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--accent);
}

.article-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text);
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-color: var(--accent);
}

/* Project Detail */
.project-meta {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-item .label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.project-meta-item .value {
    font-size: 15px;
    color: var(--text);
}

.project-meta-item .value a {
    color: var(--accent);
    text-decoration: none;
}

/* Writing List */
.writing-list {
    display: flex;
    flex-direction: column;
}

.writing-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.writing-list-item:hover {
    padding-left: 24px;
}

.writing-list-item .date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.writing-list-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.writing-list-item:hover h3 {
    color: var(--accent);
}

.writing-list-item p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    nav {
        padding: 16px 0;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .project {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .project-status {
        justify-self: start;
    }
    
    footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero-shape {
        width: 300px;
        height: 300px;
        right: -100px;
    }
    
    .writing-list-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
}
