:root {
    --text-color: #00ff00;
    --highlight-color: #00ffff;
    --dim-color: #004400;
    --spacing: 2rem;
    --pixel-size: 2px;
}

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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #000;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Particle container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
}

#particles-js canvas {
    display: block;
    transform: scale(1.1);
    opacity: 0.8;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: var(--pixel-size) solid var(--text-color);
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 60px;
    display: flex;
    align-items: center;
    transform: translateZ(0);
    will-change: transform;
}

/* Main content wrapper */
.main-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Sections */
section {
    padding: var(--spacing) 0;
}

/* Hero Section */
.hero-section {
    padding: calc(var(--spacing) * 2) 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing);
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: left;
        gap: calc(var(--spacing) * 2);
    }

    .hero-image {
        flex: 0 0 250px;
        margin: 0;
    }

    .hero-text {
        flex: 1;
        max-width: 600px;
        padding-left: var(--spacing);
    }
}

.hero-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-text a:hover   {
    color: var(--highlight-color);
}

.hero-text hr {
    border: none;
    height: var(--pixel-size);
    background-color: var(--text-color);
    opacity: 0.5;
    margin: var(--spacing) 0;
    width: 100%;
}

.hero-image {
    width: 400px;
    height: 400px;
    position: relative;
    margin: var(--spacing) 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: var(--pixel-size) solid var(--text-color);
    background: rgba(0, 0, 0, 0.5);
}

.hero-text {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--highlight-color);
}

/* Expertise Section */
.expertise-section {
    background: rgba(0, 0, 0, 0.7);
    border-top: var(--pixel-size) solid var(--text-color);
    transform: translateZ(0);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing);
    margin-top: var(--spacing);
}

.expertise-card {
    background: rgba(0, 0, 0, 0.5);
    border: var(--pixel-size) solid var(--text-color);
    padding: var(--spacing);
    transition: transform 0.2s ease-out;
    transform: translateZ(0);
    will-change: transform;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.expertise-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.expertise-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.expertise-card a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.expertise-card a:hover {
    color: var(--highlight-color);
}

.tech-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-list li {
    font-family: 'Inter', sans-serif;
    padding: 0.5rem 1rem;
    border: var(--pixel-size) solid var(--text-color);
    font-size: 0.9rem;
    background: rgba(0, 255, 0, 0.1);
    color: var(--highlight-color);
}

/* projects Section */
.projects-section {
    background: rgba(0, 0, 0, 0.5);
}

.projects-item {
    margin-bottom: var(--spacing);
    padding: var(--spacing);
    border: var(--pixel-size) solid var(--text-color);
    display: flex;
    gap: var(--spacing);
}

.projects-item-content {
    flex: 1;
}

.projects-item-thumbnail {
    width: 350px;
    height: 250px;
    flex-shrink: 0;
    border: var(--pixel-size) solid var(--text-color);
    overflow: hidden;
}

.projects-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .projects-item {
        flex-direction: column;
    }
    
    .projects-item-thumbnail {
        width: 100%;
        height: 200px;
        order: -1;
    }
}

.projects-item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.projects-item a:hover {
    color: var(--highlight-color);
}

.projects-year {
    color: var(--highlight-color);
    font-size: 1.2rem;
}

/* Thoughts Section */
.thoughts-section {
    padding: calc(var(--spacing) * 2) 0;
}

.thoughts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing);
    margin-top: var(--spacing);
}

.thought-card {
    border: var(--pixel-size) solid var(--text-color);
    padding: var(--spacing);
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    margin-bottom: var(--spacing);
}

.thought-card:hover {
    transform: translateY(-5px);
}

.thought-card h3 {
    color: var(--highlight-color);
    margin-bottom: calc(var(--spacing) / 2);
}

.thought-card a {
    color: inherit;
    text-decoration: none;
}

.thought-card a:hover {
    color: var(--highlight-color);
}

.thought-year {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing) / 2);
    display: block;
}

.thought-date {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing) / 2);
}

/* Contact Section */
.contact-section {
    text-align: center;
    border-top: var(--pixel-size) solid var(--text-color);
    background: rgba(0, 0, 0, 0.7);
    padding: calc(var(--spacing) * 2) 0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    margin-top: var(--spacing);
    flex-wrap: wrap;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: var(--pixel-size) solid var(--text-color);
    transition: all 0.3s ease;
    background: rgba(0, 255, 0, 0.1);
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-button:hover {
    color: var(--highlight-color);
    border-color: var(--highlight-color);
    background: rgba(0, 255, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .contact-links {
        gap: var(--spacing);
        flex-direction: column;
        align-items: center;
    }

    .contact-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
    will-change: transform, opacity;
}

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

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--dim-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--dim-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

section h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    margin-bottom: calc(var(--spacing) * 2);
    text-transform: uppercase;
    color: var(--highlight-color);
}

.expertise-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.expertise-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-list li {
    font-family: 'Inter', sans-serif;
    padding: 0.5rem 1rem;
    border: var(--pixel-size) solid var(--text-color);
    font-size: 0.9rem;
    background: rgba(0, 255, 0, 0.1);
}

.projects-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.projects-role {
    font-family: 'Inter', sans-serif;
    color: var(--highlight-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: var(--spacing);
}

.section-header h2 {
    margin: 0;
}

.section-toggle {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.section-toggle.collapsed {
    transform: rotate(-90deg);
}

.section-content {
    transition: max-height 0.5s ease;
    overflow: hidden;
}

.section-content.collapsed {
    max-height: 0;
}
