:root {
    --primary-color: #2a2a4a;
    --secondary-color: #8b8bc7;
    --accent-color: #ff6b6b;
    --background-color: #1a1a2e;
    --text-color: #e0e0e0;
    --border-color: #3f3f74;
    --hover-color: #4a4a8c;
}

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

body {
    font-family: 'Courier New', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Header Styles */
header {
    text-align: center;
    padding: 2rem;
    border: 4px solid var(--border-color);
    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--background-color)
    );
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    margin: 2rem auto;
    padding: 2rem;
    border: 4px solid var(--border-color);
    background-color: rgba(42, 42, 74, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
}

#about {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(400px, 2fr);
    gap: 2rem;
    align-items: start;
}

.about-text {
    padding: 2rem;
    background-color: rgba(26, 26, 46, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
}

.about-text p {
    line-height: 1.6;
    margin: 0;
}

/* Skills Section */
.skills-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.skills-section.short-row {
    grid-template-rows: minmax(150px, auto);
}

.skills-section.square-row {
    grid-template-rows: minmax(200px, auto);
}

.skill-tree {
    background-color: rgba(26, 26, 46, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tree-branch {
    flex: 1;
}

.branch-title {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 1rem;
}

.branch-items {
    list-style: none;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.branch-items li {
    margin: 0.5rem 0;
    font-size: 1em;
}

/* Project Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background-color: rgba(26, 26, 46, 0.6);
    transition: transform 0.3s ease;
}

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

.project-image {
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    padding: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(26, 26, 46, 0.6);
}

.pixel-image {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    section {
        padding: 1rem;
    }
    
    #about {
        grid-template-columns: 1fr;
    }
    
    .skill-tree {
        max-height: 500px;
        overflow-y: auto;
    }
    
    .skills-section {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .skill-tree {
        padding: 1.5rem;
    }
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text, .skill-tree {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .skills-section {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 1rem;
    }
    
    .skill-tree {
        padding: 1.5rem;
    }
}
