/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: #0f0f1a;
    color: #fff;
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-animation {
    text-align: center;
}

/* 3D Cube Animation */
.cube-wrapper {
    width: 100px;
    height: 100px;
    perspective: 400px;
    margin-bottom: 20px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 3s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.front  { transform: rotateY(0deg) translateZ(50px); }
.back   { transform: rotateY(180deg) translateZ(50px); }
.right  { transform: rotateY(90deg) translateZ(50px); }
.left   { transform: rotateY(-90deg) translateZ(50px); }
.top    { transform: rotateX(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotate {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.loading-text {
    font-size: 24px;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Main Content */
.content {
    position: relative;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.content.hidden {
    opacity: 0;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0f0f1a 0%, #1a1a3a 100%);
    overflow: hidden;
}

/* Add floating shapes */
.animated-background::before,
.animated-background::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.05);
    animation: float 15s infinite ease-in-out;
}

.animated-background::before {
    top: -150px;
    left: -150px;
}

.animated-background::after {
    bottom: -150px;
    right: -150px;
    animation-delay: -7.5s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(100px, 100px) rotate(180deg) scale(1.5); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0f0f1a 70%);
}

/* Selection Container */
.selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

/* Decorative elements */
.selection-container::before,
.selection-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    left: 50%;
    transform: translateX(-50%);
}

.selection-container::before {
    top: 0;
}

.selection-container::after {
    bottom: 0;
}

/* Add corner decorations */
.corner-decoration {
    position: fixed;
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.corner-decoration:nth-child(1) {
    top: 0;
    left: 0;
    border-top: 3px solid rgba(74, 144, 226, 0.3);
    border-left: 3px solid rgba(74, 144, 226, 0.3);
}

.corner-decoration:nth-child(2) {
    top: 0;
    right: 0;
    border-top: 3px solid rgba(74, 144, 226, 0.3);
    border-right: 3px solid rgba(74, 144, 226, 0.3);
}

.corner-decoration:nth-child(3) {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid rgba(74, 144, 226, 0.3);
    border-left: 3px solid rgba(74, 144, 226, 0.3);
}

.corner-decoration:nth-child(4) {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid rgba(74, 144, 226, 0.3);
    border-right: 3px solid rgba(74, 144, 226, 0.3);
}

.title {
    font-size: 48px;
    margin-bottom: 60px;
    color: #fff;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    animation: fadeInDown 1s ease-out;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    position: relative;
    width: 300px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Add subtle glow effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4a90e2;
    transition: transform 0.3s ease;
}

/* Discord card specific styling */
.discord-card .card-icon {
    color: #7289da;
}

.discord-card:hover .card-icon {
    color: #8ea1e1;
}

.card:hover .card-icon {
    transform: scale(1.2);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Card Hover Effect */
.card-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.card:hover .card-hover-effect {
    width: 200%;
    height: 200%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 36px;
    }
    
    .card {
        width: 100%;
        max-width: 300px;
    }
}