@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
    --primary-color: #9b59b6;
    --secondary-color: #6a0dad;
    --accent-color: #e4c1f9;
    --light-color: #f8f0ff;
    --dark-color: #1a0033;
    --crystal-color: #a7c7e7;
    --gold-color: #ffd700;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #02001f;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%239C92AC' fill-opacity='0.06'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #16001E 0%, #220033 100%);
    color: #e5e0eb;
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L5 12L12 22L19 12L12 2Z' fill='%23e4c1f9' fill-opacity='0.5'/%3E%3C/svg%3E"), auto;
}

.container {
    text-align: center;
    z-index: 1;
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.7), rgba(39, 10, 71, 0.7));
    border-radius: 15px;
    border: 1px solid rgba(228, 193, 249, 0.2);
    box-shadow: 0 0 40px rgba(155, 89, 182, 0.3);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(30deg);
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.mystical-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 193, 249, 0.1) 0%, transparent 70%);
    filter: blur(10px);
    animation: orbFloat 6s ease-in-out infinite alternate;
}

.orb-1 {
    top: 10%;
    left: 15%;
}

.orb-2 {
    bottom: 10%;
    right: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 2s;
}

.orb-3 {
    top: 50%;
    left: 20%;
    width: 60px;
    height: 60px;
    animation-delay: 1s;
}

.orb-4 {
    bottom: 30%;
    left: 10%;
    width: 40px;
    height: 40px;
    animation-delay: 3s;
}

.orb-5 {
    top: 25%;
    right: 10%;
    width: 50px;
    height: 50px;
    animation-delay: 2.5s;
}

@keyframes orbFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-color), var(--gold-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.7);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s ease forwards 0.5s;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.logo span {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--gold-color);
}

.logo::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(228, 193, 249, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.1; }
}

.language-selector {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    gap: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s ease forwards 1s;
    position: relative;
    z-index: 2;
}

.language-option {
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 1.8rem 3.5rem;
    overflow: hidden;
    border: none;
    background: transparent;
}

/* Crystal button effect */
.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(106, 13, 173, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
    transition: all 0.5s ease;
    border: 1px solid rgba(228, 193, 249, 0.3);
    box-shadow: 
        0 0 15px rgba(155, 89, 182, 0.3),
        inset 0 0 10px rgba(228, 193, 249, 0.2);
}

.language-option::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(106, 13, 173, 0.1);
    clip-path: polygon(50% 5%, 95% 27.5%, 95% 72.5%, 50% 95%, 5% 72.5%, 5% 27.5%);
    z-index: -1;
    transition: all 0.5s ease;
    border: 1px solid rgba(228, 193, 249, 0.1);
}

.language-option:hover {
    transform: translateY(-5px) scale(1.05);
}

.language-option:hover::before {
    background: rgba(106, 13, 173, 0.4);
    box-shadow: 
        0 0 25px rgba(155, 89, 182, 0.5),
        inset 0 0 20px rgba(228, 193, 249, 0.4);
    filter: brightness(1.2);
}

.language-option:hover::after {
    background: rgba(106, 13, 173, 0.2);
    filter: brightness(1.2);
}

.language-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--light-color);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.language-option:hover .language-name {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(228, 193, 249, 0.7);
}

.hover-text {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(228, 193, 249, 0.7);
}

.language-option:hover .hover-text {
    opacity: 1;
    transform: translateY(0);
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 8px rgba(228, 193, 249, 0.7); }
    to { text-shadow: 0 0 15px rgba(228, 193, 249, 1); }
}

/* Quantum Doors Transition Effect */
.quantum-doors-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}

.door-left, .door-right {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #16001E, #320050);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.door-left {
    left: 0;
    top: 0;
    transform: translateX(-100%);
}

.door-right {
    right: 0;
    top: 0;
    transform: translateX(100%);
}

.quantum-doors-container.active {
    visibility: visible;
    pointer-events: all;
}

.quantum-doors-container.active .door-left {
    transform: translateX(0);
}

.quantum-doors-container.active .door-right {
    transform: translateX(0);
}

/* Sacred Symbol Container */
.sacred-symbol-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quantum-doors-container.active .sacred-symbol-container {
    opacity: 1;
}

.sacred-symbol {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: spin 12s linear infinite;
}

.sacred-symbol-inner {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    animation: spin-reverse 8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.symbol-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.5) 0%, rgba(106, 13, 173, 0.3) 30%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    animation: pulse 4s ease infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
}

.quantum-energy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.quantum-particle {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
}

.quantum-doors-message {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-family: 'Cinzel', serif;
}

.quantum-doors-container.active .quantum-doors-message {
    opacity: 1;
    transition-delay: 0.5s;
}

.quantum-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    background: 
        radial-gradient(circle at 20% 30%, rgba(155, 89, 182, 0.4), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(106, 13, 173, 0.4), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(228, 193, 249, 0.2), transparent 60%);
    animation: auraMove 30s infinite alternate;
    filter: blur(60px);
}

@keyframes auraMove {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    100% {
        background-position: 100% 100%, 0% 0%, 50% 0%;
    }
}

.cosmic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(228, 193, 249, 0.7);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 2s ease forwards 0.7s;
}

.language-reveal-area {
    max-width: 700px;
    height: 80px;
    margin: 2rem auto;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--light-color);
    position: relative;
    padding: 1rem;
    opacity: 0;
    animation: fadeInUp 2s ease forwards 0.9s;
}

.language-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    text-align: center;
    padding: 0 2rem;
}

.language-message::before, .language-message::after {
    content: '"';
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
    opacity: 0.5;
}

.language-message::before {
    left: 5px;
    top: 0;
}

.language-message::after {
    right: 5px;
    bottom: -10px;
}

.language-message.active {
    opacity: 1;
    transform: translateY(0);
    animation: messageGlow 2s ease-in-out infinite alternate;
}

@keyframes messageGlow {
    from { text-shadow: 0 0 5px rgba(228, 193, 249, 0.5); }
    to { text-shadow: 0 0 12px rgba(228, 193, 249, 0.8); }
}

.sacred-geometry {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.geometry-1 {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation: slowRotate 60s linear infinite;
}

.geometry-2 {
    bottom: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation: slowRotate 80s linear infinite reverse;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.light-effect {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    filter: blur(3px);
    animation: lightFloat 3s ease-in-out infinite alternate;
    z-index: 0;
    opacity: 0.5;
}

.light-1 { top: 20%; left: 30%; animation-delay: 0s; }
.light-2 { top: 40%; right: 25%; animation-delay: 0.5s; }
.light-3 { bottom: 30%; left: 40%; animation-delay: 1s; }
.light-4 { top: 60%; right: 40%; animation-delay: 1.5s; }
.light-5 { bottom: 20%; right: 30%; animation-delay: 2s; }

@keyframes lightFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
    100% {
        transform: translateY(-10px) scale(1.5);
        opacity: 0.5;
    }
}

.constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Entry animation */
@keyframes pageEntry {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body {
    animation: pageEntry 2s ease-in-out forwards;
}

/* Button energy particles */
.energy-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 3.5rem;
    }
    
    .language-selector {
        flex-direction: column;
        gap: 5rem;
    }
    
    .mystical-quote {
        font-size: 1rem;
    }
}