@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #6200EA;
    --secondary-color: #03DAC6;
    --dark-bg: #121212;
    --light-text: #E0E0E0;
    --highlight: #BB86FC;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    perspective: 1000px;
}

#game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#spaceship {
    position: absolute;
    top: 75%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    z-index: 10;
    transition: transform 0.1s ease;
    pointer-events: none;
}

.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(3, 218, 198, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(3, 218, 198, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(3, 218, 198, 0.8), 0 0 30px rgba(3, 218, 198, 0.6);
    }
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: fallingStar 3s linear infinite;
}

@keyframes fallingStar {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -20px);
    }
    60% {
        transform: translate(-50%, -10px);
    }
}

.title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-links a {
    color: var(--highlight);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid var(--highlight);
    border-radius: 4px;
}

.contact-links a:hover {
    background-color: var(--highlight);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.4);
}

section {
    min-height: 100vh;
    padding: 6rem 2rem;
    margin-bottom: 4rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.experience-item, .project-item, .education-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover, .project-item:hover, .education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.experience-title, .project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
}

.experience-company, .project-date, .education-institution {
    color: var(--highlight);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience-date, .project-links {
    color: var(--light-text);
    opacity: 0.7;
}

.experience-description, .project-description {
    line-height: 1.6;
}

.experience-description ul, .project-description ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.experience-description li, .project-description li {
    margin-bottom: 0.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.skill-category h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--highlight);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-item {
    background-color: rgba(98, 0, 234, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.achievements-list {
    list-style-type: none;
}

.achievement-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(98, 0, 234, 0.1), rgba(187, 134, 252, 0.1));
    z-index: -1;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

.achievement-item:hover::before {
    transform: translateX(0);
}

.achievement-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--highlight);
}

.project-links a {
    color: var(--highlight);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.laser {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #FF5252;
    border-radius: 2px;
    transform-origin: bottom;
    box-shadow: 0 0 5px #FF5252, 0 0 10px #FF5252;
    z-index: 5;
}

.enemy {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23BB86FC"><path d="M12 2L9.91 7.31L4 8.18L8 12.33L6.97 18.31L12 15.5L17.03 18.31L16 12.33L20 8.18L14.09 7.31L12 2Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    transition: transform 0.2s ease;
}

.enemy.exploding {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF5252"><path d="M12 2L15 8L21 9L17 14L18 20L12 17L6 20L7 14L3 9L9 8Z"/></svg>');
    animation: explode 0.5s forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

#score-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-color);
    font-size: 1.2rem;
    z-index: 10;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(98, 0, 234, 0.4);
}

.nav-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.nav-button.down svg {
    transform: rotate(180deg);
}

.progress-bar {
    height: 8px;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.2s;
}