body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #0d001a, #000000);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    z-index: -1;
}

header {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(to bottom, #1a0033, rgba(26, 0, 51, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.intro {
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.6;
}

.intro h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #d4b3ff;
}

.intro p {
    font-size: 1.1rem;
}

.buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4b0082, #1a0033);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
}

.button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #6a00b8, #2a004f);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem;
    width: 90%;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.card h2 {
    margin: 0 0 1rem;
    color: #d4b3ff;
}

.card a {
    color: #9d7eff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.card a:hover {
    color: #c4a9ff;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to top, #1a0033, rgba(26, 0, 51, 0.8));
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.tesseract {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    opacity: 0.7;
    z-index: -1;
    perspective: 1000px;
}

/* Inner cube */
.tesseract::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 2px solid rgba(157, 126, 255, 0.8);
    box-shadow: 0 0 10px rgba(157, 126, 255, 0.5), 
                inset 0 0 10px rgba(157, 126, 255, 0.5);
    background: transparent;
    transform-style: preserve-3d;
}

/* Outer cube */
.tesseract::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(157, 126, 255, 0.8);
    box-shadow: 0 0 20px rgba(157, 126, 255, 0.5),
                inset 0 0 20px rgba(157, 126, 255, 0.5);
    background: transparent;
    transform-style: preserve-3d;
}

/* Connecting lines */
.tesseract-lines {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
    animation: rotate3D 20s infinite linear;
    opacity: 0.5;
    z-index: -1;
}

.cube {
    transform-style: preserve-3d;
    position: relative;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: visible;
}

.connecting-line {
    position: absolute;
    background: rgba(157, 126, 255, 0.6);
    box-shadow: 0 0 8px rgba(157, 126, 255, 0.4);
    transform-style: preserve-3d;
}

.line-container {
    transform-style: preserve-3d;
}

@keyframes rotate3D {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
}