/* Modern Gaming UI - Layout & Background System */

body {
    background-color: #0a0a14;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%238a2be2' fill-opacity='0.08'%3E%3Cpath opacity='.5' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Dynamic background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 5% 15%, rgba(138, 43, 226, 0.2), transparent 40%),
        radial-gradient(circle at 95% 85%, rgba(255, 140, 0, 0.15), transparent 40%),
        radial-gradient(circle at 95% 10%, rgba(75, 0, 130, 0.1), transparent 35%),
        radial-gradient(circle at 5% 85%, rgba(255, 69, 0, 0.08), transparent 35%),
        linear-gradient(135deg, rgba(10, 10, 22, 0.8) 0%, rgba(16, 16, 35, 0.9) 100%);
    z-index: -2;
}

/* Animated grid background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.5;
    animation: gridMove 100s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(50%) rotate(2deg);
    }
}

/* Enhanced lighting effects */
.ambient-light {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

.light-1 {
    top: -50%;
    left: -20%;
    width: 90%;
    height: 150%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    animation: pulseLight 15s ease-in-out infinite alternate;
}

.light-2 {
    bottom: -80%;
    right: -20%;
    width: 120%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.12) 0%, transparent 70%);
    animation: pulseLight 20s ease-in-out 2s infinite alternate;
}

@keyframes pulseLight {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

/* Main container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 35px;
    position: relative;
    z-index: 1;
}

/* Cool glass container effect */
.glass-container {
    background: rgba(20, 20, 38, 0.7);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(138, 43, 226, 0.2);
    padding: 45px;
    margin-bottom: 40px;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(138, 43, 226, 0.08), transparent);
    z-index: -1;
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.header-decoration {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    overflow: hidden;
}

.header-decoration::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(138, 43, 226, 0.8) 50%, 
        transparent 100%);
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(50%); }
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #8a2be2, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    position: relative;
    display: inline-block;
}

header h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    -webkit-text-stroke: 8px rgba(75, 0, 130, 0.15);
    -webkit-text-fill-color: transparent;
    filter: blur(10px);
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    font-weight: 300;
    position: relative;
    margin-top: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Two-column layout option */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.column {
    display: flex;
    flex-direction: column;
}

/* Modern footer */
footer {
    margin-top: 60px;
    padding: 25px 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.3), transparent);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-dots::before,
.footer-dots::after {
    content: '•';
    color: rgba(138, 43, 226, 0.7);
    margin: 0 12px;
    font-size: 1.2rem;
    position: relative;
    top: -1px;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    .container {
        padding: 25px 20px;
    }
    
    .glass-container {
        padding: 35px 30px;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.8rem;
    }
    
    .glass-container {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Selection styling */
::selection {
    background: rgba(138, 43, 226, 0.4);
    color: white;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 38, 0.6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8a2be2, #7825c5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9d3fff, #8a2be2);
}

/* Loading animation */
.loading-pulse {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-pulse div {
    position: absolute;
    border: 4px solid #8a2be2;
    opacity: 1;
    border-radius: 50%;
    animation: loading-pulse 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-pulse div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes loading-pulse {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
} 