/* Gameboy Color Palette */
:root {
    --gb-darkest: #0f380f;
    --gb-dark: #306230;
    --gb-light: #8bac0f;
    --gb-lightest: #9bbc0f;
    --gb-bg: #c0d16b;
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--gb-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--gb-darkest);
    padding: 20px;
    line-height: 1.5;
    letter-spacing: 1px;
}

.gameboy-container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.gameboy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 10;
}

.gameboy-frame {
    border: 15px solid var(--gb-darkest);
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--gb-darkest);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.gameboy-screen {
    background-color: var(--gb-light);
    padding: 20px;
    border: 5px solid var(--gb-dark);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.gameboy-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(15, 56, 15, 0.05) 1px, 
        transparent 1px
    ),
    linear-gradient(
        90deg,
        rgba(15, 56, 15, 0.05) 1px, 
        transparent 1px
    );
    background-size: 2px 2px;
    pointer-events: none;
    z-index: 1;
}

.title {
    text-align: center;
    font-size: 1.5rem;
    padding: 10px;
    border: 3px solid var(--gb-darkest);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0 var(--gb-dark);
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    border: 3px solid var(--gb-darkest);
    padding: 10px 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

nav ul li {
    font-size: 0.6rem;
}

nav ul li a {
    color: var(--gb-darkest);
    text-decoration: none;
    padding: 5px;
    position: relative;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background-color: var(--gb-dark);
    color: var(--gb-lightest);
}

nav ul li a.active {
    background-color: var(--gb-dark);
    color: var(--gb-lightest);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gb-darkest);
    transform: scaleX(0);
    transition: transform 0.2s;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.welcome-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.pixel-art {
    width: 150px;
    height: 150px;
    border: 3px solid var(--gb-darkest);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: repeating-linear-gradient(
        var(--gb-light) 0px,
        var(--gb-light) 3px,
        var(--gb-lightest) 3px,
        var(--gb-lightest) 6px
    );
}

.retro-image {
    width: 120px;
    height: 100px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.retro-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--gb-dark);
    clip-path: polygon(0 100%, 20% 50%, 30% 70%, 40% 50%, 60% 30%, 80% 50%, 100% 20%, 100% 100%);
    animation: mountain-shimmer 3s ease-in-out infinite;
}

@keyframes mountain-shimmer {
    0%, 100% {
        background-color: var(--gb-dark);
    }
    50% {
        background-color: var(--gb-darkest);
    }
}

.retro-image::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--gb-dark);
    animation: sun-pulse 4s ease-in-out infinite;
}

@keyframes sun-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        border-color: var(--gb-dark);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        border-color: var(--gb-darkest);
    }
}

.welcome-text {
    flex: 1;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 var(--gb-dark);
}

p {
    font-size: 0.6rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.gameboy-button {
    display: inline-block;
    padding: 10px 20px;
    border: 3px solid var(--gb-darkest);
    text-decoration: none;
    color: var(--gb-darkest);
    text-align: center;
    font-size: 0.9rem;
    background-color: var(--gb-dark);
    min-width: 150px;
    transition: all 0.2s ease;
    position: relative;
    text-shadow: 1px 1px 0 var(--gb-light);
}

.gameboy-button:hover {
    background-color: var(--gb-darkest);
    color: var(--gb-light);
    transform: translateY(2px);
    text-shadow: none;
}

.gameboy-button:active {
    transform: translateY(4px);
}

.dpad {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.dpad-button {
    width: 50px;
    height: 50px;
    background-color: var(--gb-dark);
    border: 3px solid var(--gb-darkest);
    color: var(--gb-darkest);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.dpad-button:hover {
    background-color: var(--gb-darkest);
    color: var(--gb-light);
    transform: scale(1.1);
}

.dpad-button:active {
    transform: scale(0.95);
}

.about-content, .projects-content, .contact-content {
    padding: 10px;
}

.project {
    margin-bottom: 20px;
    border: 3px solid var(--gb-darkest);
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project:hover {
    background-color: var(--gb-dark);
    color: var(--gb-lightest);
    transform: translateX(5px);
}

.project h3 {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.contact-info {
    border: 3px solid var(--gb-darkest);
    padding: 10px;
    margin-top: 15px;
}

.hidden {
    display: none;
}

/* Power LED indicator */
.gameboy-frame::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: #f00;
    border-radius: 50%;
    box-shadow: 0 0 5px #f00;
    animation: power-led 5s infinite;
}

@keyframes power-led {
    0%, 100% { opacity: 1; }
    80% { opacity: 1; }
    85% { opacity: 0.5; }
    90% { opacity: 1; }
}

/* Startup animation */
@keyframes startup {
    0% { opacity: 0; }
    20% { opacity: 0.5; }
    40% { opacity: 0.2; }
    60% { opacity: 0.7; }
    80% { opacity: 0.3; }
    100% { opacity: 1; }
}

.content {
    animation: startup 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 600px) {
    .gameboy-container {
        max-width: 100%;
    }
    
    .welcome-section {
        flex-direction: column;
    }
    
    .pixel-art {
        width: 100%;
        height: 120px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px;
        font-size: 0.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .gameboy-button {
        min-width: 120px;
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    .dpad-button {
        width: 40px;
        height: 40px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .gameboy-container::before,
    .gameboy-screen::after,
    .dpad,
    .gameboy-frame::after {
        display: none;
    }
} 