/* ========== VARIABLES ========== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: #0f0f2e;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --accent-gold: #ffd700;
    --accent-purple: #9b59b6;
    --accent-blue: #3498db;
    --accent-pink: #ff6b9d;
    --accent-cyan: #00d4ff;
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.6);
    --shadow-glow-strong: 0 0 60px rgba(102, 126, 234, 0.8);
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 25px 60px rgba(102, 126, 234, 0.4);
}

/* ========== BACKGROUND ANIMATION ========== */
body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(155, 89, 182, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: bg-pulse 10s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes bg-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ========== FLOATING STARS ========== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite;
}

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

/* ========== HEADER & NAVIGATION ========== */
.main-header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.nav-menu a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.nav-menu i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: var(--primary-gradient);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    animation: title-float 3s ease-in-out infinite;
}

@keyframes title-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-date {
    font-size: 1.1rem;
    color: rgba(255, 215, 0, 0.9);
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(15, 15, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow-strong), var(--shadow-card-hover);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========== TAROT CARDS (WITH IMAGES) ========== */
.cards-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tarot-card {
    background: linear-gradient(145deg, #1a1a3e 0%, #0a0a1a 100%);
    border: 3px solid var(--accent-gold);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.tarot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tarot-card:hover::before {
    opacity: 1;
}

.tarot-card.reversed {
    transform: rotate(180deg);
    border-color: var(--accent-purple);
}

.tarot-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
}

.tarot-card-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.tarot-card:hover .tarot-card-image {
    transform: scale(1.05);
}

.arcane-num {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.arcane-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.card-position {
    font-size: 0.95rem;
    color: var(--accent-purple);
    font-style: italic;
    display: block;
    margin-bottom: 0.6rem;
    padding: 0.3rem 1rem;
    background: rgba(155, 89, 182, 0.2);
    border-radius: 20px;
    display: inline-block;
}

.card-orientation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.card-meaning {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid var(--accent-purple);
}

/* ========== ARCANES PREVIEW ========== */
.arcanes-preview {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: rgba(15, 15, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.arcanes-preview h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.arcanes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.arcane-preview {
    background: linear-gradient(145deg, #1a1a3e 0%, #0a0a1a 100%);
    padding: 1rem 0.8rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

.arcane-preview:hover {
    background: var(--primary-gradient);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    border-color: var(--accent-gold);
}

.arcane-preview:hover .arcane-number,
.arcane-preview:hover .arcane-name {
    color: white;
}

.arcane-number {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.arcane-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== FORMS & INPUTS ========== */
.question-form,
.numerology-form,
.compatibility-form,
.horoscope-form,
.palmistry-form,
.dream-form {
    max-width: 750px;
    margin: 3rem auto;
    padding: 3rem 2.5rem;
    background: rgba(15, 15, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    background: rgba(5, 5, 16, 0.8);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
    background: rgba(10, 10, 30, 0.9);
}

/* ========== BUTTONS ========== */
.btn-mystic {
    width: 100%;
    padding: 1.3rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-mystic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-mystic:hover::before {
    width: 300px;
    height: 300px;
}

.btn-mystic:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.7);
}

.btn-mystic:active {
    transform: translateY(-2px);
}

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

/* ========== RESULT CONTAINER ========== */
.result-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(15, 15, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.6s ease;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

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

/* ========== INTERPRETATION ========== */
.interpretation,
.analysis,
.prediction,
.angel-message {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(5, 5, 16, 0.6);
    border-radius: 20px;
    border-left: 4px solid var(--accent-purple);
}

.interpretation h3,
.analysis h3,
.prediction h3,
.angel-message h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
}

.interpretation div,
.analysis div,
.prediction div,
.angel-message div {
    line-height: 2;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.interpretation p,
.analysis p,
.prediction p,
.angel-message p {
    margin-bottom: 1.2rem;
}

/* ========== NUMEROLOGY CARDS ========== */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.number-card {
    background: linear-gradient(145deg, #1a1a3e 0%, #0a0a1a 100%);
    border: 3px solid var(--accent-gold);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.number-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

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

.number-card.life-path {
    border-color: var(--accent-purple);
}

.number-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.number-display {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    color: var(--accent-gold);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.number-info p {
    color: var(--text-secondary);
    margin: 0.8rem 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.number-info strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* ========== RUNES ========== */
.runes-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rune-card {
    background: linear-gradient(145deg, #1a1a3e 0%, #0a0a1a 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
}

.rune-card:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 25px 60px rgba(255, 215, 0, 0.5);
    border-color: var(--accent-cyan);
}

.rune-symbol {
    font-size: 5rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    font-family: 'Times New Roman', serif;
    letter-spacing: 5px;
}

.rune-name {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.8rem;
}

.rune-meaning {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== ORACLE ========== */
.oracle-card {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(145deg, #1a1a3e 0%, #0a0a1a 100%);
    border: 4px solid var(--accent-gold);
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-glow-strong);
    position: relative;
    overflow: hidden;
}

.oracle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.oracle-symbol {
    font-size: 6rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
    position: relative;
    z-index: 1;
}

.oracle-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.oracle-meaning {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* ========== FOOTER ========== */
.main-footer {
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    margin-top: 5rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 1.5rem;
    }

    .nav-menu {
        display: none;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }

    .question-form,
    .result-container {
        padding: 2rem 1.5rem;
    }

    .cards-display,
    .runes-display {
        grid-template-columns: 1fr;
    }
}

/* ========== LOADING ANIMATION ========== */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== GLOW EFFECTS ========== */
.glow-text {
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
}

/* ========== PARTICLE EFFECTS ========== */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(100vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0);
    }
}
