:root {
    --bg: #050505;
    --grid-line: rgba(255, 255, 255, 0.04);
    --card-bg: rgba(20, 20, 20, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f0f0f0;
    --text-sub: #888888;
    --accent: #ffffff;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0.3;
}

.layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    padding: 80px 40px;
}

.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.avatar-container {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid var(--border);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: var(--accent);
}

.bio {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    transition: 0.2s;
    background: rgba(0, 0, 0, 0.2);
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.section-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: #222;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.project-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: block;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #aaa;
    font-family: 'JetBrains Mono', monospace;
}

.grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.skill-item {
    text-align: center;
    padding: 15px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    font-size: 0.9rem;
    color: var(--text-sub);
    transition: 0.2s;
}

.skill-item:hover {
    color: #fff;
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.about-card {
    cursor: default;
    border-left: 2px solid #fff;
}

.about-card .project-title {
    font-family: 'Cinzel', serif;
}

.about-card .project-desc {
    color: #ccc;
    margin-bottom: 0;
}

.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid var(--border);
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--bg);
    border: 1px solid var(--text-sub);
    border-radius: 50%;
    transition: 0.3s;
}

.timeline-item:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 5px;
    display: block;
}

.timeline-school {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.icon-box {
    display: flex;
    align-items: center;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 40px;
    }

    .sidebar {
        position: static;
        text-align: center;
    }

    .avatar-container {
        margin: 0 auto 20px auto;
    }

    .link-btn {
        text-align: left;
    }
}