:root {
    --primary-purple: #8A2BE2;
    --primary-gold: #FFD700;
    --ethereal-blue: #4B0082;
}

/* Base styles for proper scrolling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: #0a0a1a;
    color: white;
    font-family: 'Arial', sans-serif;
    position: relative;
    min-height: 100vh;
    padding: 120px 0 60px 0; /* Increased top padding to prevent form from being cut off */
}

.spiritual-gate {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.gate-doors {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.gate-left, .gate-right {
    width: 50%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(75, 0, 130, 0.7),
        rgba(138, 43, 226, 0.3)
    );
    position: relative;
    transform-origin: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    transform: rotateY(0deg);
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gate-left {
    transform-origin: left;
}

.gate-right {
    transform-origin: right;
}

.gate-left::before, .gate-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,0 L100,50 L50,100 L0,50 Z' fill='none' stroke='rgba(255,215,0,0.2)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    animation: patternFloat 20s linear infinite;
    opacity: 0.3;
}

.gate-light {
    position: absolute;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.8),
        transparent 70%
    );
    z-index: -1;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gate-light::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(138, 43, 226, 0.2) 45deg,
        rgba(255, 215, 0, 0.2) 180deg,
        transparent 360deg
    );
    animation: lightSpin 10s linear infinite;
}

/* Form container improvements */
.consultation-form {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 40px auto; /* Increased top margin */
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Ensure form stays above background elements */
}

.consultation-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-purple), 
        var(--primary-gold), 
        var(--ethereal-blue)
    );
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
    opacity: 0.5;
}

.form-group {
    margin: 2rem 0;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(138, 43, 226, 0.2);
}

.form-group input:focus {
    background: rgba(20, 0, 40, 0.7);
    box-shadow: 
        inset 0 0 15px rgba(138, 43, 226, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.mystical-line {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-purple),
        var(--primary-gold),
        transparent
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-group input:focus + .mystical-line {
    transform: scaleX(1);
}

.submit-btn {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        var(--primary-purple),
        transparent
    );
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.submit-btn:hover .btn-aura {
    width: 200%;
    height: 200%;
}

@keyframes gateOpen {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(60deg);
    }
}

@keyframes lightExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    100% {
        width: 100vw;
        height: 100vh;
        opacity: 1;
    }
}

/* Enhanced form entrance animation */
.consultation-form {
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.consultation-form.entering {
    opacity: 1 !important;
    transform: translateY(0) !important;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.5), 0 0 100px rgba(255, 215, 0, 0.3) !important;
}

@keyframes formRise {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.mystical-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mystical-symbols::before {
    content: '✧ ☽ ✴ ⚡ ☯ ⚘ ॐ ∞ ⋆';
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.3);
    animation: symbolsFloat 10s linear infinite;
}

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

.mystical-orbs {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mystical-orbs::before,
.mystical-orbs::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(138, 43, 226, 0.2) 0%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    animation: orbFloat 15s infinite alternate;
}

.mystical-orbs::after {
    right: 10%;
    animation-delay: -7.5s;
}

@keyframes patternFloat {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

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

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: translate(-30px, 30px) scale(1);
        opacity: 0.3;
    }
}

.side-illustrations {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.side-illustrations::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(138, 43, 226, 0.03) 70%),
        repeating-conic-gradient(from 0deg, transparent 0deg 30deg, rgba(255, 215, 0, 0.02) 30deg 60deg);
    animation: sacredGeometrySpin 40s linear infinite;
}

.cosmic-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.cosmic-connections::before {
    content: '1 ∞ 3 ⚡ 5 ☯ 7 ✧ 9';
    position: absolute;
    width: 100%;
    font-family: 'Times New Roman', serif;
    font-size: 1.8rem;
    display: flex;
    justify-content: space-around;
    color: rgba(138, 43, 226, 0.6);
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    animation: numerologyPulse 4s ease-in-out infinite;
}

.left-side, .right-side {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.left-side { left: 0; }
.right-side { right: 0; }

.sacred-tree {
    width: 200px;
    height: 300px;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Cpath d='M50,0 C25,40 0,80 50,160 C100,80 75,40 50,0' stroke='rgba(138, 43, 226, 0.4)' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    animation: treeGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.3));
}

.astral-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 49.9%,
        rgba(138, 43, 226, 0.2) 50%,
        transparent 50.1%
    );
    animation: astralPulse 3s ease-in-out infinite;
}

.floating-crystals {
    position: relative;
    width: 200px;
    height: 200px;
}

.floating-crystals::before {
    content: '💎';
    position: absolute;
    font-size: 3rem;
    animation: crystalFloat 6s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.moon-phases {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.moon-phases::before {
    content: '🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘';
    font-size: 1.5rem;
    animation: moonCycle 20s linear infinite;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 2;
}

.constellation {
    width: 200px;
    height: 200px;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 L90,50 L50,90 L10,50 Z M50,20 L80,50 L50,80 L20,50 Z' stroke='rgba(255, 215, 0, 0.3)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    animation: constellationTwinkle 4s ease-in-out infinite;
}

.zodiac-connection {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zodiacRotate 30s linear infinite;
}

@keyframes sacredGeometrySpin {
    from { transform: translate(-25%, -25%) rotate(0deg); }
    to { transform: translate(-25%, -25%) rotate(360deg); }
}

@keyframes numerologyPulse {
    0%, 100% { 
        transform: scale(1);
        letter-spacing: normal;
    }
    50% { 
        transform: scale(1.1);
        letter-spacing: 0.2em;
    }
}

@keyframes astralPulse {
    0%, 100% { opacity: 0.2; transform: scaleX(1); }
    50% { opacity: 0.5; transform: scaleX(1.2); }
}

@keyframes zodiacRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.energy-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        rgba(138, 43, 226, 0.1) 1px,
        transparent 2px
    );
    opacity: 0.3;
    animation: energyFlow 3s linear infinite;
}

@keyframes treeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
        transform: scale(1.05);
    }
}

@keyframes crystalFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes moonCycle {
    0% { transform: translateX(50px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-50px); opacity: 0; }
}

@keyframes constellationTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes energyFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

/* Quick Interest Bubbles */
.quick-interests {
    margin: 2rem 0;
    text-align: center;
}

.quick-interests h3 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.interest-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.interest-bubble {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.interest-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(138, 43, 226, 0.2),
        transparent 70%
    );
    opacity: 0;
    transition: all 0.3s ease;
}

.interest-bubble:hover::before {
    opacity: 1;
    animation: rotateBubbleGlow 2s linear infinite;
}

.interest-bubble.selected {
    background: rgba(138, 43, 226, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.bubble-icon {
    font-size: 1.3rem;
    animation: bubbleIconFloat 3s ease-in-out infinite;
}

.bubble-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

@keyframes bubbleIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wisdom-pyramids {
        gap: 3rem;
    }
    
    .pyramid {
        width: 340px;
        height: 440px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 100px 0 40px 0; /* Adjusted top padding for mobile */
    }
    
    .consultation-form {
        padding: 30px 20px;
        margin: 20px auto; /* Adjusted top margin for mobile */
    }
    
    .pyramid {
        width: 100%;
        max-width: 320px;
        height: 420px;
    }
}

@media (max-height: 800px) {
    body {
        padding: 100px 0 40px 0; /* Adjusted for shorter screens */
    }
    
    .consultation-form {
        margin: 20px auto;
    }
} 