/* ==== Base Styles ==== */
body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    color: #00ffee;
    background: #0f0f0f;
}

/* ==== Matrix Background ==== */
canvas#matrix {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.2;
}

/* ==== Flashcard Layout ==== */
.flashcard {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.85);
    z-index: 1;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.flashcard.active {
    display: flex;
    transform: translateX(0%);
    opacity: 1;
}

.content {
    max-width: 700px;
}

/* ==== Headings and Paragraphs ==== */
h1,
h2,
h3 {
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
}

/* ==== Terminal Intro (Glitch + Typing) ==== */
.terminal-intro {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffee;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px #00ffee66;
}

#glitch-text {
    font-size: 1.5rem;
    color: #00ffee;
    text-shadow: 0 0 3px #0ff, 0 0 8px #0ff;
    animation: glitch 1.5s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 red;
    }

    50% {
        text-shadow: -2px 0 blue;
    }

    100% {
        text-shadow: 2px 0 red;
    }
}

.typewriter-line {
    margin-top: 1rem;
    font-size: 1.25rem;
    border-right: 2px solid #00ffee;
    white-space: nowrap;
    overflow: hidden;
}

/* ==== Buttons ==== */
button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #00ffee;
    border: none;
    font-size: 1rem;
    color: #111;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    background: #00ffcc;
}

/* ==== Navigation Tiles ==== */
.tile-nav {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.tile {
    min-width: 70px;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 255, 255, 0.15);
    border: 1px solid #00ffee;
    color: #00ffee;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.tile:hover {
    background-color: rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.tile.active {
    background-color: #00ffee;
    color: #111;
    font-weight: bold;
    box-shadow: 0 0 10px #00ffee;
}

/* ==== Quiz Section ==== */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 0.75rem 0;
    background: rgba(0, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

ul li:hover {
    background: rgba(0, 255, 255, 0.25);
}

/* ==== AI Terminal Assistant ==== */
.terminal-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffee;
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 12px #00ffee33;
}

.terminal-box input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #00ffee;
    background: #0f0f0f;
    color: #00ffee;
    margin-top: 1rem;
}

#assistantResponse {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aafaff;
}

/* ==== Radar Skills Section ==== */
.skill-radar {
    position: relative;
}

.radar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.pulse {
    padding: 1rem;
    background: rgba(0, 255, 255, 0.12);
    border: 1px solid #00ffee;
    animation: pulseGlow 2s infinite ease-in-out;
    border-radius: 5px;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px #00ffee44;
    }

    50% {
        box-shadow: 0 0 15px #00ffee99;
    }

    100% {
        box-shadow: 0 0 5px #00ffee44;
    }
}

/* ==== Links ==== */
a {
    color: #00ffee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==== CV Download Link ==== */
.cv-download {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #00ffee;
    color: #111;
    font-weight: bold;
    border-radius: 4px;
}

/* ==== Responsive ==== */
@media screen and (max-width: 600px) {
    .tile {
        font-size: 0.7rem;
        min-width: 60px;
    }

    .content {
        padding: 1rem;
    }

    .radar {
        grid-template-columns: 1fr;
    }
}