:root {
    --bg-color: #000000;
    /* Black */
    --text-main: #ffffff;
    /* White */
    --text-accent: #888888;
    /* Grey Accent */
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    width: 100%;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--text-accent);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.bio {
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.bio p {
    margin-bottom: 1.5rem;
}

.bio p.highlight {
    color: var(--text-accent);
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-accent);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

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

.social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustment */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .bio {
        font-size: 1rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* New Styles for Header Navigation */
.main-nav {
    margin-top: 1rem;
}

.main-nav a,
header h1 a.nav-link {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover,
header h1 a.nav-link:hover {
    color: var(--text-main);
}

header h1 a.nav-link {
    font-size: 2rem;
    font-weight: 700;
}

/* Portfolio Page Styles */
.portfolio-section {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease forwards;
}

.portfolio-section h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.portfolio-list {
    list-style: none;
}

.portfolio-list li {
    margin-bottom: 1.5rem;
}

.portfolio-list a,
.portfolio-list .item-title {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.portfolio-list a:hover {
    color: var(--text-accent);
}

.portfolio-list .description {
    color: var(--text-accent);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}