body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.main-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.main-header p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.solar-system {
    width: 100vw;
    height: 100vh;
}

svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sun {
    fill: #ffcc00;
    filter: drop-shadow(0 0 20px #ffcc00);
    cursor: pointer;
}

.orbit {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-dasharray: 2 4;
}

.planet {
    fill: inherit;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    fill-opacity: 0.9;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.planet:hover {
    filter: drop-shadow(0 0 10px currentColor);
}

.planet-label {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-family: sans-serif;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

/* Per-planet colors */
#planet-about { fill: #2e7dd1; }
#planet-projects { fill: #c1440e; }
#planet-writing { fill: #c88f5a; }
#planet-contact { fill: #7fcfe9; }


/* Info Box */
.info-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 25px;
    z-index: 101;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

.info-box.hidden {
    display: none;
}

.info-box:not(.hidden) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

#info-title {
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    font-weight: 400;
}

#info-content ul {
    list-style: none;
    padding: 0;
}

#info-content li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

#info-content li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #ffcc00;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: opacity 0.3s ease;
}

.overlay.hidden {
    display: none;
}

