@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --primary-color: #ffffff;
    --secondary-color: #808080;
    --accent-color: #000000;
    --background-color: #000000;
    --card-background: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #808080;
    --border-radius: 0px;
    --transition-speed: 0.3s;
    --pixel-border: 4px;
    --font-retro: 'Press Start 2P', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-retro);
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    image-rendering: pixelated;
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4rem;
}

.pixel-border {
    border: var(--pixel-border) solid var(--primary-color);
    position: relative;
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.2);
}

.quiz-section {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quiz-section.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.wheel-section {
    display: none;
}

.wheel-section.active {
    display: block;
}

.question-container {
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-background);
}

.answer-options {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.answer-button {
    padding: 1rem;
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-retro);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-button:hover {
    background: var(--primary-color);
    color: var(--accent-color);
}

.progress-bar {
    height: 20px;
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    margin-top: 2rem;
}

#progressFill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.glitch-text {
    animation: glitch 1s infinite;
    position: relative;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

header h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.2em;
    word-wrap: break-word;
}

header .glitch-text {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Mobile Responsive Text Sizes */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 4.5rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    header .glitch-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .description {
        padding: 1rem;
        margin: 1rem auto;
    }

    .description p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .start-quiz-button {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 3.8rem;
        letter-spacing: 0.05em;
        margin-bottom: 0.8rem;
    }

    header .glitch-text {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .container {
        padding: 1rem 0.5rem;
    }
}


.glow-text {
    text-shadow: 0 0 4px #fff,
                 0 0 8px #fff,
                 0 0 12px #fff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 4px #fff,
                     0 0 8px #fff,
                     0 0 12px #fff;
    }
    to {
        text-shadow: 0 0 8px #fff,
                     0 0 12px #fff,
                     0 0 16px #fff;
    }
}

.description {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
    text-align: center;
}

.description p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive Description and Container */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .description {
        padding: 1.5rem;
        margin: 1.5rem auto;
        max-width: 90%;
    }

    .description p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }

    .description {
        padding: 0.8rem;
        margin: 1rem auto;
        max-width: 85%;
        border-width: 2px;
    }

    .description p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
}

/* Start Quiz Button */
.start-quiz-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: transparent;
    color: var(--primary-color);
    border: var(--pixel-border) solid var(--primary-color);
    font-family: var(--font-retro);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.start-quiz-button:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.start-quiz-button:active {
    transform: translateY(0);
}

/* Mobile Responsive Button */
@media screen and (max-width: 768px) {
    .start-quiz-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .start-quiz-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.wheel {
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    border: 8px solid var(--primary-color);
    background: var(--accent-color);
    box-shadow: 
        0 0 0 4px var(--accent-color),
        0 0 0 8px var(--primary-color),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    will-change: transform;
    margin: 2rem auto;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-speed);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.wheel-segment::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.05) 50%,
        rgba(0,0,0,0.05) 51%,
        rgba(0,0,0,0.1) 100%);
}

.wheel-segment:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.segment-text {
    font-family: var(--font-retro) !important;
    padding: 10px;
    position: absolute;
    width: 180px;
    text-align: center;
    transform-origin: center;
    image-rendering: pixelated;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid currentColor;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        2px 2px 0 rgba(255, 255, 255, 0.2),
        -2px -2px 0 rgba(0, 0, 0, 0.2);
    white-space: pre-wrap;
    font-size: 0.7rem;
    line-height: 1.4;
    z-index: 1;
}

.segment-emoji {
    display: block;
    font-size: 1.5em;
    margin-bottom: 8px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}

.segment-name {
    display: block;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.7);
}

.segment-emoji {
    font-size: 1.5em;
    display: block;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}

.wheel-container {
    position: relative;
    margin: 2rem auto;
    width: fit-content;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 1;
}

.spin-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: transparent;
    color: var(--primary-color);
    border: 4px solid var(--primary-color);
    font-family: var(--font-retro);
    text-transform: uppercase;
    letter-spacing: 2px;
    image-rendering: pixelated;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.spin-button:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px) scale(1.02);
    text-shadow: -2px -2px 0px rgba(255, 255, 255, 0.3);
    box-shadow: 
        4px 4px 0px rgba(255, 255, 255, 0.2),
        inset -2px -2px 0px rgba(255, 255, 255, 0.3);
}

.spin-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        2px 2px 0px rgba(255, 255, 255, 0.1),
        inset -1px -1px 0px rgba(255, 255, 255, 0.2);
}

.spin-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 255, 157, 0.4),
        transparent
    );
    transition: 0.5s;
}

.spin-button:hover:before {
    left: 100%;
}

.career-card {
    background: var(--accent-color);
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.2);
    max-width: min(800px, 90vw);
    margin: 2rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    display: none;
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.career-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.career-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/*.category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #000000;
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 2px solid #fff;
}*/

.career-card.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.career-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: black;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section {
    border: 2px solid var(--primary-color);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.detail-section ul li::before {
    content: ">";
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-retro);
}

.salary p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.detail-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
}

.detail-section ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.detail-section ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.salary p {
    font-size: 1.1rem;
    color: #fff !important;
    margin: 0.5rem 0;
}

.fun-fact {
    background: none;
    padding: 1.2rem 0;
    border-radius: 0;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.learn-more, .spin-again {
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    text-decoration: none;
    transition: transform var(--transition-speed);
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-retro);
    box-shadow: none;
}

.learn-more {
    background: none;
    color: var(--primary-color);
}

.spin-again {
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.learn-more:hover, .spin-again:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    header {
        margin-bottom: 1.5rem;
    }

    header h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    header p {
        font-size: 0.8rem;
    }

    .wheel-container {
        margin: 1rem auto;
    }

    .wheel {
        border-width: 4px;
    }

    .wheel-pointer {
        width: 20px;
        height: 20px;
        top: -10px;
    }

    .spin-button {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
        margin-top: 1rem;
    }

    .career-card {
        padding: 1rem;
        margin: 1rem auto;
    }

    .career-card h2 {
        font-size: 1.2rem;
    }

    .career-card h3 {
        font-size: 0.9rem;
    }

    .category {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-section {
        padding: 0.8rem;
    }

    .detail-section ul li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .salary p {
        font-size: 0.9rem;
    }

    .actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .learn-more, .spin-again {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .fun-fact {
        font-size: 0.8rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }
}
