:root {
    --primary-color: #5a6988;
    --secondary-color: #f0f757;
    --background-color: #0f0f1b;
    --text-color: #ffffff;
    --accent-color: #ff6b97;
    --border-color: #3d315b;
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    image-rendering: pixelated;
    overflow-x: hidden;
    position: relative;
}

/* Animated stars and planets background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--secondary-color);
    animation: twinkle 3s infinite;
}

.star:nth-child(2n) {
    animation-delay: 1s;
    animation-duration: 2s;
}

.star:nth-child(3n) {
    animation-delay: 2s;
    animation-duration: 4s;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    opacity: 0.6;
}

.planet-small {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    animation-duration: 6s;
}

.planet-medium {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    animation-duration: 10s;
}

.planet-large {
    width: 16px;
    height: 16px;
    background-color: #8b5cf6;
    animation-duration: 12s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Header and Navigation */
header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-shadow: 4px 4px 0px var(--primary-color);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    background-color: var(--accent-color);
}

.nav-link:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
}

/* Sections */
.section {
    padding: 4rem 0;
    margin-bottom: 2rem;
    border: 8px solid var(--border-color);
    background-color: rgba(58, 68, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    z-index: -1;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 4px;
    text-underline-offset: 16px;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-pic-container {
    min-width: 200px;
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 100%;
    height: 100%;
    background-image: url('../profile-woods2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    border: 8px solid var(--border-color);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.about-content p {
    font-size: 0.8rem;
    line-height: 1.8;
    flex: 1;
    text-align: justify;
}

/* Links Section */
.pixel-card {
    background-color: rgba(58, 68, 102, 0.8);
    border: 8px solid var(--border-color);
    padding: 2rem;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    max-width: 800px;
}

.blog-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.blog-links li {
    margin: 0;
}

.blog-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.blog-links a:hover {
    color: var(--accent-color);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.bullet::before { content: "> "; color: var(--accent-color); }

.pixel-button {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 1rem;
    text-align: center;
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.pixel-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    background-color: var(--accent-color);
}

.pixel-button:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
}

/* Contact Section */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.retro-button {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.retro-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    background-color: var(--accent-color);
}

.retro-button:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--secondary-color);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
        padding-right:1.5rem;
    }
    
    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 2rem;
        right: 0;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
        border: 8px solid var(--border-color);
        box-sizing: border-box;
    }
    
    #nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .section {
        padding: 2rem 0;
        margin-bottom: 1rem;
        border-width: 4px;
    }
    
    .pixel-card {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .blog-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
        padding-left: 0.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .retro-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .profile-pic-container {
        min-width: 150px;
        width: 150px;
        height: 150px;
    }
    
    .about-content p {
        font-size: 0.7rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-underline-offset: 3px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.6rem;
    border-top: 4px solid var(--border-color);
    margin-top: 2rem;
}

