/* Soul Codex Generator - Mystical CSS Styling */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Philosopher:wght@400;700&display=swap');

/* Brand Color Palette - Sacred Codex Design */
:root {
    /* Sacred Codex Colors - Based on Provided Examples */
    --parchment-cream: #F5F2E8;       /* Cream parchment background */
    --cosmic-navy: #1A2332;           /* Deep cosmic navy blue sections */
    --sacred-gold: #D4AF37;           /* Golden text and accents */
    --text-dark: #2C1810;             /* Dark brown-purple text on cream */
    --cosmic-stars: #4A6FA5;          /* Starry blue accents */
    
    /* UI Elements */
    --background-primary: var(--parchment-cream);
    --background-cosmic: var(--cosmic-navy);
    --text-primary: var(--text-dark);
    --text-light: var(--sacred-gold);
    --accent-gold: var(--sacred-gold);
    
    /* Form Elements */
    --input-bg: rgba(212, 175, 55, 0.1);
    --input-border: rgba(212, 175, 55, 0.3);
    --button-bg: var(--cosmic-navy);
    --button-text: var(--sacred-gold);
    --button-hover: rgba(26, 35, 50, 0.9);

    /* Fonts - Sacred Typography */
    --font-header: 'Cinzel', serif;
    --font-body: 'Philosopher', serif;
    
    /* Gradient Combinations */
    --primary-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --cosmic-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-galactic) 100%);
    --mystical-blend: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-galactic) 100%);
}

/* Body and Background - Sacred Codex Style */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    background: var(--parchment-cream);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 35, 50, 0.05) 0%, transparent 50%);
}

.cosmic-background {
    background: var(--color-primary);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

/* Animated Constellation Background */
.constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.stars:before,
.stars:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 
        10px 10px var(--color-accent),
        30px 20px var(--color-accent),
        50px 50px var(--color-accent),
        70px 30px var(--color-accent),
        90px 70px var(--color-accent),
        120px 40px var(--color-accent),
        150px 90px var(--color-accent),
        180px 60px var(--color-accent),
        210px 100px var(--color-accent),
        240px 30px var(--color-accent),
        270px 80px var(--color-accent),
        300px 50px var(--color-accent),
        330px 120px var(--color-accent),
        360px 70px var(--color-accent),
        390px 110px var(--color-accent),
        420px 40px var(--color-accent),
        450px 90px var(--color-accent),
        480px 20px var(--color-accent),
        510px 60px var(--color-accent),
        540px 100px var(--color-accent),
        570px 30px var(--color-accent),
        600px 80px var(--color-accent),
        630px 50px var(--color-accent),
        660px 120px var(--color-accent),
        690px 70px var(--color-accent),
        720px 110px var(--color-accent),
        750px 40px var(--color-accent),
        780px 90px var(--color-accent),
        810px 20px var(--color-accent),
        840px 60px var(--color-accent),
        870px 100px var(--color-accent),
        900px 30px var(--color-accent),
        930px 80px var(--color-accent),
        960px 50px var(--color-accent),
        990px 120px var(--color-accent),
        1020px 70px var(--color-accent),
        1050px 110px var(--color-accent),
        1080px 40px var(--color-accent),
        1110px 90px var(--color-accent),
        1140px 20px var(--color-accent),
        1170px 60px var(--color-accent),
        1200px 100px var(--color-accent),
        1230px 30px var(--color-accent),
        1260px 80px var(--color-accent),
        1290px 50px var(--color-accent),
        1320px 120px var(--color-accent),
        1350px 70px var(--color-accent),
        1380px 110px var(--color-accent),
        1410px 40px var(--color-accent),
        1440px 90px var(--color-accent);
    animation: sparkle 3s infinite ease-in-out;
}

.stars:after {
    animation-delay: 1.5s;
    opacity: 0.7;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Enhanced Constellation Animations */
@keyframes constellationMove {
    0% { transform: translateX(-20px) translateY(-10px); }
    33% { transform: translateX(10px) translateY(-20px); }
    66% { transform: translateX(15px) translateY(10px); }
    100% { transform: translateX(-20px) translateY(-10px); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    25% { opacity: 0.8; transform: scale(1.1); }
    50% { opacity: 1; transform: scale(1.2); }
    75% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes cosmicFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(90deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

/* Constellation Lines */
.constellation-line {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    height: 1px;
    opacity: 0.3;
    animation: constellationPulse 4s infinite ease-in-out;
}

@keyframes constellationPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

/* Enhanced Stars */
.star {
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
    animation: starTwinkle 3s infinite ease-in-out;
}

.star.bright {
    box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent);
    animation-duration: 2s;
}

.star.dim {
    opacity: 0.6;
    animation-duration: 4s;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SACRED SYMBOLS & VISUAL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Sacred Symbol Containers */
.sacred-symbol {
    max-width: 150px;
    max-height: 150px;
    margin: 1rem auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(var(--color-galactic-rgb), 0.3));
    transition: all 0.3s ease;
}

.sacred-symbol:hover {
    filter: drop-shadow(0 0 20px rgba(var(--color-galactic-rgb), 0.6));
    transform: scale(1.05);
}

/* Chapter Symbol Headers */
.chapter-symbol {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.chapter-symbol .sacred-symbol {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

/* Specific Symbol Animations */
.soul-mandala {
    animation: sacredRotation 20s linear infinite;
}

.astro-wheel {
    animation: zodiacRotation 30s linear infinite;
}

.vedic-chart {
    animation: subtlePulse 4s ease-in-out infinite;
}

.numerology-grid {
    animation: numberFlow 8s ease-in-out infinite;
}

.celtic-tree {
    animation: treeBreath 6s ease-in-out infinite;
}

.tree-of-life {
    animation: sephirotGlow 12s ease-in-out infinite;
}

.flower-of-life {
    animation: flowerBloom 15s ease-in-out infinite;
}

.merkaba {
    animation: merkabaRotation 10s linear infinite;
}

/* Sacred Animation Keyframes */
@keyframes sacredRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes subtlePulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes numberFlow {
    0%, 100% { filter: brightness(1) hue-rotate(0deg); }
    33% { filter: brightness(1.2) hue-rotate(60deg); }
    66% { filter: brightness(0.9) hue-rotate(120deg); }
}

@keyframes treeBreath {
    0%, 100% { transform: scale(1); filter: hue-rotate(0deg); }
    50% { transform: scale(1.05); filter: hue-rotate(30deg); }
}

@keyframes sephirotGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px var(--color-galactic)); }
    25% { filter: brightness(1.3) drop-shadow(0 0 15px var(--color-highlight)); }
    50% { filter: brightness(1.1) drop-shadow(0 0 10px var(--color-cosmic-pink)); }
    75% { filter: brightness(1.2) drop-shadow(0 0 12px var(--color-galactic)); }
}

@keyframes flowerBloom {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

@keyframes merkabaRotation {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(15deg); }
    50% { transform: rotateY(180deg) rotateX(0deg); }
    75% { transform: rotateY(270deg) rotateX(-15deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

/* Visual Worksheets */
.sacred-worksheet {
    background: rgba(var(--color-primary-rgb), 0.9);
    border: 2px solid var(--color-galactic);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.worksheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-galactic);
    padding-bottom: 1rem;
}

.worksheet-header .sacred-symbol {
    width: 60px;
    height: 60px;
}

.worksheet-title {
    font-family: var(--font-header);
    color: var(--color-accent);
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
}

.worksheet-section {
    margin: 1.5rem 0;
}

.worksheet-section h4 {
    color: var(--color-galactic);
    font-family: var(--font-header);
    margin-bottom: 0.5rem;
}

.worksheet-lines {
    margin: 1rem 0;
}

.worksheet-line {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-galactic) 20%, 
        var(--color-galactic) 80%, 
        transparent 100%);
    margin: 1rem 0;
    opacity: 0.6;
}

.worksheet-footer {
    margin-top: 2rem;
    text-align: center;
}

.sacred-border {
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-galactic) 0%, 
        var(--color-highlight) 25%, 
        var(--color-cosmic-pink) 50%, 
        var(--color-highlight) 75%, 
        var(--color-galactic) 100%);
    border-radius: 2px;
    animation: borderFlow 8s ease-in-out infinite;
}

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

/* Chapter Visual Enhancements */
.chapter-header {
    position: relative;
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: radial-gradient(ellipse at center, 
        rgba(var(--color-galactic-rgb), 0.1) 0%,
        rgba(var(--color-secondary-rgb), 0.05) 50%,
        transparent 100%);
    border-radius: 20px;
}

.chapter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(var(--color-galactic-rgb), 0.1) 25%, 
        transparent 50%, 
        rgba(var(--color-cosmic-pink-rgb), 0.1) 75%, 
        transparent 100%);
    border-radius: 20px;
    animation: sacredShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sacredShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* AI Generated Image Containers */
.mystical-chart {
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
    border: 2px solid var(--color-galactic);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mystical-chart img {
    width: 100%;
    height: auto;
    display: block;
}

.chart-caption {
    background: var(--color-secondary);
    color: var(--color-accent);
    padding: 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

/* Sacred Geometry Overlays */
.sacred-overlay {
    position: relative;
    overflow: hidden;
}

.sacred-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(var(--color-galactic-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--color-cosmic-pink-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(var(--color-highlight-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: geometryFloat 15s ease-in-out infinite;
}

@keyframes geometryFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.05) rotate(120deg); }
    66% { transform: scale(0.95) rotate(240deg); }
}

/* Responsive Sacred Symbols */
@media (max-width: 768px) {
    .sacred-symbol {
        max-width: 100px;
        max-height: 100px;
    }
    
    .chapter-symbol .sacred-symbol {
        width: 80px;
        height: 80px;
    }
    
    .worksheet-header .sacred-symbol {
        width: 40px;
        height: 40px;
    }
    
    .sacred-worksheet {
        padding: 1rem;
    }
    
    .mystical-chart {
        max-width: 100%;
        margin: 1rem 0;
    }
}

/* Cosmic Particles Enhancement */
.cosmic-particle {
    position: absolute;
    background: radial-gradient(circle, var(--color-galactic) 0%, transparent 70%);
    border-radius: 50%;
    animation: cosmicFloat 8s infinite ease-in-out;
}

/* Floating Cosmic Particles - Reduced */
.cosmic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.cosmic-particles::before,
.cosmic-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 
        50px 100px var(--color-galactic),
        150px 200px rgba(255, 105, 180, 0.8),
        250px 150px var(--color-cosmic-pink),
        350px 300px rgba(218, 112, 214, 0.6),
        450px 50px var(--color-galactic),
        550px 250px rgba(255, 105, 180, 0.9),
        650px 100px var(--color-cosmic-pink),
        750px 200px rgba(218, 112, 214, 0.7),
        850px 350px var(--color-galactic),
        950px 150px rgba(255, 105, 180, 0.8),
        1050px 280px var(--color-cosmic-pink),
        1150px 80px rgba(218, 112, 214, 0.6);
    animation: floatParticles 8s ease-in-out infinite;
}

.cosmic-particles::after {
    animation-delay: 4s;
    opacity: 0.6;
    transform: scale(0.7);
}

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

/* Main Card Styling */
.mystical-card {
    background: rgba(30, 27, 60, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(74, 144, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(108, 92, 231, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 2;
    margin: 1rem;
    overflow: visible;
    min-height: fit-content;
}

.mystical-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(25, 25, 112, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(72, 61, 139, 0.06) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 20px;
}

.mystical-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
}

/* Typography */
.mystical-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, 
        var(--color-accent) 0%, 
        var(--color-accent-alt) 25%, 
        var(--color-accent) 50%, 
        #F0F8FF 75%, 
        var(--color-accent) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 
        0 0 10px rgba(192, 192, 192, 0.6),
        0 0 20px rgba(135, 206, 235, 0.4),
        0 0 30px rgba(25, 25, 112, 0.3),
        0 0 40px rgba(72, 61, 139, 0.2);
    animation: cosmicShimmer 3s ease-in-out infinite, stellarPulse 4s ease-in-out infinite;
    position: relative;
    letter-spacing: 2px;
}

.mystical-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, 
        rgba(135, 206, 235, 0.1) 0%,
        rgba(25, 25, 112, 0.15) 30%,
        rgba(72, 61, 139, 0.1) 60%,
        transparent 100%);
    border-radius: 20px;
    z-index: -2;
    animation: cosmicAura 6s ease-in-out infinite;
}

.mystical-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: linear-gradient(45deg, 
        rgba(192, 192, 192, 0.3) 0%, 
        rgba(135, 206, 235, 0.3) 50%, 
        rgba(192, 192, 192, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
}

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

@keyframes stellarPulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(192, 192, 192, 0.6),
            0 0 20px rgba(135, 206, 235, 0.4),
            0 0 30px rgba(25, 25, 112, 0.3),
            0 0 40px rgba(72, 61, 139, 0.2);
        transform: scale(1);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(192, 192, 192, 0.8),
            0 0 30px rgba(135, 206, 235, 0.6),
            0 0 45px rgba(25, 25, 112, 0.4),
            0 0 60px rgba(72, 61, 139, 0.3);
        transform: scale(1.02);
    }
}

@keyframes cosmicAura {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 0.5;
        transform: scale(1.05) rotate(120deg);
    }
    66% { 
        opacity: 0.4;
        transform: scale(0.95) rotate(240deg);
    }
}

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

.mystical-subtitle {
    font-family: var(--font-header);
    font-size: 1.4rem;
    background: linear-gradient(90deg, 
        var(--color-accent) 0%,
        var(--color-accent-alt) 50%,
        var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(218, 112, 214, 0.4);
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.3));
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--color-accent-alt);
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 1px;
    font-weight: 500;
}

.brand-footer {
    font-size: 0.85rem;
    color: var(--color-accent-alt);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Landing Page Specific Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cosmic-subtitle {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(218, 112, 214, 0.5);
}

.hero-subtitle .lead {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

.btn-cosmic {
    background: linear-gradient(135deg, #2C1810 0%, #4A2C5A 50%, #1a1a2e 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(255, 107, 157, 0.3),
        0 0 30px rgba(196, 113, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.btn-cosmic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b9d, #c471ed, #12c2e9, #a8e6cf, #ff6b9d);
    background-size: 300% 300%;
    border-radius: 32px;
    z-index: -1;
    animation: galaxySwirl 3s ease-in-out infinite;
}

.btn-cosmic .btn-text {
    /* Fallback color for browsers that don't support gradient text */
    color: #ffffff;
    background: linear-gradient(45deg, 
        #ffffff 0%, 
        #ff6b9d 15%, 
        #c471ed 30%, 
        #12c2e9 45%, 
        #ffffff 60%, 
        #a8e6cf 75%, 
        #ff6b9d 90%, 
        #ffffff 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: galaxySwirl 4s ease-in-out infinite;
    font-weight: 900;
    font-size: 1.1em;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 107, 157, 0.6),
        0 0 30px rgba(196, 113, 237, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.7);
}

.btn-cosmic:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(255, 107, 157, 0.4),
        0 0 40px rgba(196, 113, 237, 0.3);
    animation: galaxySwirl 1.5s ease-in-out infinite;
}

.btn-cosmic-outline {
    background: transparent;
    border: 2px solid;
    border-image: linear-gradient(45deg, #ff6b9d, #c471ed, #12c2e9, #a8e6cf) 1;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.btn-cosmic-outline .btn-text-outline {
    color: #ffffff;
    background: linear-gradient(45deg, 
        #ffffff 0%, 
        #ff6b9d 25%, 
        #c471ed 50%, 
        #12c2e9 75%, 
        #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: galaxySwirl 3s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 107, 157, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.7);
}

.btn-cosmic-outline:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 112, 214, 0.3);
}

.section-spacing {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(218, 112, 214, 0.4);
}

.large-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

.cosmic-text {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

.cosmic-highlight {
    background: linear-gradient(135deg, rgba(218, 112, 214, 0.2), rgba(255, 20, 147, 0.2));
    border: 1px solid rgba(218, 112, 214, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list {
    padding: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--color-accent);
    width: 20px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.cosmic-questions {
    margin: 2rem 0;
}

.question-item {
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.question-item i {
    color: var(--color-accent);
}

.small-text {
    font-size: 0.9rem;
}

/* Animation classes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing page cards start hidden for animation */
.landing-page .mystical-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Form page cards are always visible */
.form-page .mystical-card {
    opacity: 1;
    transform: translateY(0);
}

.landing-page .mystical-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .cosmic-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-cta .btn {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
        max-width: 300px;
    }
    
    .hero-cta {
        text-align: center;
    }
}

/* Fix desktop button alignment */
.hero-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.mystical-label {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.mystical-footer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

/* Form Styling */
.mystical-input {
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-weight: 500;
}

/* Specific styling for date and time inputs to ensure proper functionality */
.mystical-input[type="date"],
.mystical-input[type="time"] {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mystical-input[type="date"]::-webkit-calendar-picker-indicator,
.mystical-input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 4px;
    opacity: 0.9;
    width: 20px;
    height: 20px;
}

.mystical-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.mystical-input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: scale(1.1);
}

/* Firefox date/time input styling */
.mystical-input[type="date"]::-moz-focus-inner,
.mystical-input[type="time"]::-moz-focus-inner {
    border: 0;
}

/* Ensure date/time inputs are clickable */
.mystical-input[type="date"],
.mystical-input[type="time"] {
    pointer-events: auto !important;
    user-select: none;
}

.mystical-input:focus {
    border-color: #74C0FC;
    box-shadow: 
        0 0 0 4px rgba(116, 192, 252, 0.3),
        0 10px 15px -3px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    outline: none;
}

.mystical-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.mystical-input.is-valid {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.mystical-input.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Select dropdown styling for better visibility */
.mystical-input select,
select.mystical-input {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    cursor: pointer;
}

.mystical-input select option,
select.mystical-input option {
    background: rgba(26, 35, 50, 0.95) !important;
    color: #FFFFFF !important;
    padding: 8px 12px;
}

/* Form labels styling for better readability */
.mystical-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mystical-label i {
    color: #74C0FC;
}

/* Google Places Autocomplete Dropdown Styling */
.pac-container {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(74, 144, 226, 0.4) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
}

.pac-item {
    background-color: transparent !important;
    color: #2C1810 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 10px 14px !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
}

.pac-item:hover {
    background-color: rgba(74, 144, 226, 0.2) !important;
    color: #1A2332 !important;
}

.pac-item-selected {
    background-color: rgba(74, 144, 226, 0.3) !important;
    color: #1A2332 !important;
}

.pac-item-query {
    color: #2C1810 !important;
    font-weight: 600 !important;
}

.pac-matched {
    color: #4A90E2 !important;
    font-weight: 700 !important;
}

/* Button Styling */
.mystical-btn {
    background: linear-gradient(135deg, 
        var(--color-highlight) 0%,
        var(--color-accent) 30%,
        var(--color-highlight) 70%,
        var(--color-accent-alt) 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(232, 232, 232, 0.3);
    border-radius: 25px;
    padding: 1rem 3rem !important;
    font-size: 1rem !important;
    font-weight: 600;
    color: #1B1D1F;
    text-transform: uppercase;
    letter-spacing: 0.2px !important;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 15px rgba(218, 112, 214, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible !important;
    min-width: 450px !important;
    max-width: none !important;
    width: 450px !important;
    font-family: var(--font-body);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap !important;
    display: inline-block;
    text-align: center;
}

.mystical-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 100%;
    box-shadow: 
        0 8px 20px rgba(218, 112, 214, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 105, 180, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Removed distracting buttonPulse animation */

.mystical-btn:active {
    transform: translateY(0);
}

.mystical-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Removed distracting sweep animation */

/* Simple button hover effects */
#generateBtn:hover {
    background: linear-gradient(135deg, #7B68EE 0%, #4A90E2 100%) !important;
    transform: translateY(-1px);
}

#generateBtn:active {
    transform: translateY(0);
}

/* Landing page button hover */
.hero-cta a:hover {
    background: linear-gradient(135deg, #7B68EE 0%, #4A90E2 100%) !important;
    transform: translateY(-1px);
}

.hero-cta a:active {
    transform: translateY(0);
}

/* Learn More button hover */
.hero-cta button:hover {
    background: rgba(123, 104, 238, 0.1) !important;
    border-color: #7B68EE !important;
    color: #9370DB !important;
    transform: translateY(-1px);
}

/* Divider */
.divider {
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Alert Styling */
.alert-success {
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    padding: 1.5rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.alert-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border: none;
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
    padding: 1.5rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Message Area Styling */
#messageArea {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
}

/* Ensure alerts don't overflow */
#messageArea .alert {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    min-height: auto;
    height: auto;
}

/* Fix button styling in alerts */
#messageArea .btn {
    white-space: nowrap;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Preview text styling */
#messageArea small {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.4;
    word-break: break-word;
}

/* Cosmic button for download in success messages */
.btn-cosmic {
    background: linear-gradient(135deg, var(--color-highlight), var(--color-accent));
    border: 2px solid rgba(232, 232, 232, 0.3);
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 27, 58, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    white-space: nowrap;
    display: inline-block;
    margin: 0.5rem 0;
    color: #1B1D1F;
    text-decoration: none;
    font-family: var(--font-body);
}

.btn-cosmic:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(26, 27, 58, 0.6);
    border-color: rgba(255, 105, 180, 0.6);
    color: #1B1D1F;
    text-decoration: none;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.generating {
    animation: pulse 2s infinite;
}

/* Processing status styling */
#processingStatus {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

#processingDetail {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(108, 92, 231, 0.3);
    line-height: 1.4;
    margin-top: 0.75rem;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mystical-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
    
    .mystical-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .mystical-subtitle {
        font-size: 1.1rem;
    }
    
    .mystical-label {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .mystical-input {
        font-size: 1.2rem;
        padding: 1.1rem 1.3rem;
    }
    
    .mystical-btn {
        min-width: 100% !important;
        width: 100% !important;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Processing status text */
    #processingStatus {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
    
    /* Processing detail text */
    #processingDetail {
        font-size: 1rem !important;
        line-height: 1.4;
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .cosmic-background {
        padding: 1rem 0;
    }
    
    .mystical-card {
        padding: 1.8rem 1.2rem;
        margin: 0.25rem;
    }
    
    .mystical-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .mystical-label {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .mystical-input {
        font-size: 1.3rem;
        padding: 1.2rem 1.4rem;
    }
    
    .mystical-btn {
        font-size: 1.2rem;
        padding: 1.1rem 2rem;
    }
    
    /* Processing text should be larger on mobile */
    #processingStatus {
        font-size: 1.2rem !important;
        font-weight: 600;
    }
    
    #processingDetail {
        font-size: 1.1rem !important;
        margin-top: 1rem;
    }
    
    /* Success message text */
    .alert p {
        font-size: 1.1rem !important;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .alert small {
        font-size: 1rem !important;
        line-height: 1.4;
        font-weight: 400;
    }
    
    /* Make all alert text larger and more readable */
    .alert {
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    .mystical-title i {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .stars:before,
    .stars:after {
        animation: none;
    }
    
    .mystical-btn {
        transition: none;
    }
    
    .generating {
        animation: none;
    }
}

/* Brand Logo Styling */
.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo svg {
    filter: drop-shadow(0 4px 8px rgba(193, 136, 104, 0.3));
    animation: gentleGlow 4s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
    0% { filter: drop-shadow(0 4px 8px rgba(193, 136, 104, 0.3)); }
    100% { filter: drop-shadow(0 6px 12px rgba(193, 136, 104, 0.5)); }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .mystical-card {
        background: white;
        border: 2px solid black;
    }
    
    .mystical-input {
        border: 2px solid black;
    }
    
    .mystical-btn {
        background: black;
        color: white;
    }
}
