:root {
    --bg-color: #050510;
    --text-color: #e0e0ff;
    --accent-color: #00f3ff;
    /* Cyan */
    --accent-secondary: #bd00ff;
    /* Purple */
    --glass-bg: rgba(10, 10, 30, 0.6);
    --glass-border: rgba(0, 243, 255, 0.3);
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#ui-layer {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

#hud-nav,
#content-area,
#hud-footer,
.sidebar {
    pointer-events: auto;
}

#hud-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    font-family: var(--font-header);
    font-size: 0.9rem;
    cursor: pointer;
    color: rgba(224, 224, 255, 0.7);
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links li:hover,
.nav-links li.active {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

#content-area {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

h1 {
    font-family: var(--font-header);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hud-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2rem;
    font-family: var(--font-header);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.hud-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

#hud-footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-header);
    font-size: 0.8rem;
    color: rgba(224, 224, 255, 0.5);
}

.blink {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #0f0;
    border-radius: 50%;
    margin-right: 5px;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(100px, 9999px, 120px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 50px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(120px, 9999px, 150px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(80px, 9999px, 100px, 0);
    }
}

#projects h2,
#skills h2,
#contact h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

#labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s;
}

.planet-label {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-header);
    font-size: 0.8rem;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 0 0 5px #000;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.planet-label:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: rgba(10, 10, 30, 0.95);
    border-left: 1px solid var(--accent-color);
    backdrop-filter: blur(20px);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.sidebar-header h2 {
    font-family: var(--font-header);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0;
}

.close-sidebar-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-sidebar-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.project-image img {
    height: 250px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 100%;
    object-fit: cover;
}

#projects h2 {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 1.5rem;
    opacity: 0.7;
    pointer-events: none;
}

.blur-background {
    filter: blur(8px) brightness(0.4);
    transition: filter 0.5s ease;
}

.blur-background~#ui-layer #labels-container {
    opacity: 0;
    pointer-events: none;
}

#experience-modal {
    display: none;
}

.name-title {
    font-family: var(--font-header);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bio-desc {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: rgba(224, 224, 255, 0.8);
    line-height: 1.6;
}

.contact-info {
    margin-bottom: 2rem;
    font-family: var(--font-header);
    color: var(--accent-secondary);
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.project-card {
    background: rgba(10, 10, 30, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    animation: slideUp 0.5s ease-out;
    overflow: hidden;
}

.project-content {
    padding: 2rem;
}

.project-card h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent-color);
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    color: var(--accent-color);
}

.close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-header);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.close-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
    font-family: var(--font-header);
    transition: all 0.3s;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
    background: rgba(0, 243, 255, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.modal-content {
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid var(--accent-secondary);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.2);
}

.modal-content h2 {
    font-family: var(--font-header);
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.modal-content h3 {
    font-family: var(--font-header);
    color: var(--accent-color);
    margin: 1.5rem 0 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.exp-item,
.edu-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-secondary);
}

.exp-item h4,
.edu-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.5rem;
}

.school {
    display: block;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: var(--accent-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}