/* Google Fonts imported in header */
:root {
    --deep-purple: #4B2E83;
    --royal-gold: #D4AF37;
    --ivory: #FFFFF0;
    --text-light: #FFFFF0;
    
    --font-heading: 'Cinzel', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.6);
    --gold-glow-strong: 0 0 25px rgba(212, 175, 55, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 175, 55, 0.3);
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #2e1a47, #4b2e83, #6a42a3);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--royal-gold);
}

.subheading {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--ivory);
    opacity: 0.9;
}

a {
    text-decoration: none;
    color: var(--royal-gold);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--ivory);
    text-shadow: var(--gold-glow);
}

/* Animations */
@keyframes softAura {
    0% { box-shadow: 0 0 20px rgba(75, 46, 131, 0.5); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }
    100% { box-shadow: 0 0 20px rgba(75, 46, 131, 0.5); }
}

@keyframes floatParticles {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

@keyframes floatCards {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

#particle-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10%;
    background-color: var(--royal-gold);
    border-radius: 50%;
    animation: floatParticles linear infinite;
    pointer-events: none;
    box-shadow: var(--gold-glow);
}

/* Header & Nav */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(46, 26, 71, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.main-header h1 a {
    font-size: 1.8rem;
    color: var(--royal-gold);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.highlight-link {
    background: transparent;
    border: 1px solid var(--royal-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    box-shadow: var(--gold-glow);
    transition: all 0.3s ease;
}
.highlight-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--royal-gold);
    box-shadow: var(--gold-glow-strong);
    transform: translateY(-2px);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--royal-gold);
}

.btn-primary {
    background: var(--royal-gold);
    color: #2e1a47;
    box-shadow: var(--gold-glow);
}
.btn-primary:hover {
    background: transparent;
    color: var(--royal-gold);
    box-shadow: var(--gold-glow-strong);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--royal-gold);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: var(--royal-gold);
    color: #2e1a47;
    box-shadow: var(--gold-glow);
    transform: translateY(-3px);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}
.glass-panel:hover {
    box-shadow: var(--gold-glow);
    transform: translateY(-5px);
    border-color: var(--royal-gold);
    background: rgba(255, 255, 255, 0.08);
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--royal-gold);
    margin: 1rem auto;
    box-shadow: var(--gold-glow);
}

/* Hero Section */
.hero-epic {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}
.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.cosmic-label {
    display: inline-block;
    color: var(--royal-gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(46, 26, 71, 0.5);
}
.hero-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-content .subtext {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

/* Floating Deck Animation */
.floating-deck {
    position: relative;
    width: 250px;
    height: 380px;
    animation: floatCards 6s ease-in-out infinite;
    cursor: pointer;
}
.floating-deck:hover {
    animation-play-state: paused;
}

.floating-deck-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--deep-purple);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--royal-gold);
    border-radius: 12px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5), var(--gold-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fd-1 { transform: rotate(-5deg) translate(-20px, 10px); z-index: 1; background-image: url('../amita1.jpg'); }
.fd-2 { transform: rotate(5deg) translate(20px, 5px); z-index: 2; background-image: url('../amita2.jpg'); }
.fd-3 { transform: rotate(0deg); z-index: 3; background-image: url('../amita3.jpg'); }

/* Hover Reveal - Cards spread out dramatically to show full images */
.floating-deck:hover .fd-1 {
    transform: rotate(-10deg) translate(-180px, 30px) scale(1.05);
    z-index: 10;
}
.floating-deck:hover .fd-2 {
    transform: rotate(10deg) translate(180px, 30px) scale(1.05);
    z-index: 10;
}
.floating-deck:hover .fd-3 {
    transform: translateY(-20px) scale(1.1);
    z-index: 11;
    box-shadow: 0 15px 40px rgba(212,175,55,0.6);
}

/* Portal Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}
.portal-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.portal-card i {
    font-size: 2.5rem;
    color: var(--royal-gold);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.5));
}
.portal-card h4 {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Flow Timeline */
.timeline-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}
.timeline-flow::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(212, 175, 55, 0.3);
    z-index: 0;
}
.flow-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 150px;
}
.flow-icon {
    width: 60px;
    height: 60px;
    background: #2e1a47;
    border: 2px solid var(--royal-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--royal-gold);
    box-shadow: var(--gold-glow);
    transition: transform 0.3s;
}
.flow-step:hover .flow-icon {
    transform: scale(1.1);
    box-shadow: var(--gold-glow-strong);
}

/* Guide Intro */
.guide-card {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
}
.guide-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--royal-gold);
    box-shadow: var(--gold-glow-strong);
    background: url('../amita4.jpg') center/cover;
    flex-shrink: 0;
}
.signature {
    font-family: 'Brush Script MT', cursive, var(--font-subheading);
    font-size: 2.5rem;
    color: var(--royal-gold);
    margin-top: 15px;
}

/* Floating Consult Cards */
.consult-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.consult-card {
    width: 320px;
    position: relative;
}
.consult-card.highlight {
    border-color: var(--royal-gold);
    box-shadow: var(--gold-glow);
    transform: scale(1.05);
}
.consult-card.highlight::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--royal-gold);
    color: #2e1a47;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: var(--gold-glow);
}

/* 6 Card Flip Preview */
.deck-preview {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.mini-tarot-scene {
    width: 120px;
    height: 180px;
    perspective: 1000px;
}
.mini-tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.mini-tarot-scene:hover .mini-tarot-card {
    transform: rotateY(180deg) translateY(-10px);
}
.mini-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    border: 1px solid var(--royal-gold);
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.mini-back {
    background-color: #301b0f;
    background-image: url('../amita4.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-back i { color: var(--royal-gold); font-size: 2rem; opacity: 0.5; }
.mini-front {
    transform: rotateY(180deg);
}

/* Trust Strip */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 5%;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(212,175,55,0.2);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    margin: 60px 0;
}
.trust-item {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
}
.trust-item i {
    font-size: 2rem;
    color: var(--royal-gold);
    text-shadow: var(--gold-glow);
}
.trust-item span {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--ivory);
}

/* Final CTA */
.cta-strip {
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(to right, rgba(46, 26, 71, 0.8), rgba(106, 66, 163, 0.4), rgba(46, 26, 71, 0.8));
    border: 1px solid var(--royal-gold);
    box-shadow: inset 0 0 50px rgba(212,175,55,0.1);
    margin: 50px 5%;
    border-radius: 20px;
}

/* Base Form/Utility overlaps fix */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--gold-glow);
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-control {
    width: 100%; padding: 12px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--ivory); border-radius: 5px; font-family: var(--font-body);
}

/* Footer (retained structure, minimal tweaks) */
.main-footer {
    background: #3a2268;
    padding: 40px 5% 20px;
    margin-top: 50px;
    border-top: 2px solid var(--royal-gold);
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-section h3 { margin-bottom: 15px; font-size: 1.2rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.social-links a { font-size: 1.5rem; margin-right: 15px; }
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, var(--royal-gold), transparent); margin: 30px 0 20px; }
.footer-bottom { text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Utilities */
.section { padding: 80px 5%; text-align: center; position: relative; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--royal-gold);
    cursor: pointer;
    z-index: 1001; /* Above the nav stack */
}

@media(max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(46, 26, 71, 0.95);
        backdrop-filter: blur(15px);
        transform: translateY(-200%); /* Hides it above, sliding down */
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 999;
        border-bottom: 2px solid var(--royal-gold);
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 1.5rem;
    }

    .hero-epic { flex-direction: column; text-align: center; padding: 40px 5%; height: auto; min-height: auto; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero-content .subtext { font-size: 1.2rem; }
    .timeline-flow::before { display: none; }
    .timeline-flow { flex-direction: column; }
    .guide-card { flex-direction: column; text-align: center; padding: 20px; }

    .portal-grid { grid-template-columns: 1fr; gap: 20px; }
    .consult-grid { flex-direction: column; align-items: center; }
    .consult-card { width: 100%; max-width: 350px; }
    .trust-strip { flex-direction: column; gap: 20px; }
    .footer-content { flex-direction: column; text-align: center; }
    .social-links { justify-content: center; display: flex; }
    .cta-strip { padding: 40px 5%; margin: 20px 5%; }
    
    .btn { padding: 12px 20px; font-size: 1rem; width: 100%; max-width: 300px; display: block; margin: 10px auto; }
    .floating-deck { margin: 20px auto; transform: scale(0.8); }
    .floating-deck:hover .fd-1 { transform: rotate(-10deg) translate(-100px, 30px) scale(1.05); }
    .floating-deck:hover .fd-2 { transform: rotate(10deg) translate(100px, 30px) scale(1.05); }

    /* Fanned Deck fixes for mobile touch */
    .deck-container { padding: 40px 10px 80px 40px !important; }
    .magic-card-wrapper { width: 85px !important; height: 140px !important; margin-left: -65px !important; }
    .shuffling-deck .magic-card-wrapper { margin-left: -80px !important; }
    #drawn-cards-container .magic-card-wrapper { transform: translateY(0) scale(1.05) !important; margin: 5px !important; }
}

/* --- Restored Tarot Card Interactive Grid --- */
.tarot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.tarot-card-scene {
    width: 100%;
    aspect-ratio: 2/3;
    perspective: 1000px;
    cursor: pointer;
}
.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}
.tarot-card.selected {
    transform: translateY(-20px) rotateY(180deg);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.8);
}
.tarot-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    border: 2px solid var(--royal-gold);
}
.tarot-card-back {
    background: linear-gradient(135deg, var(--deep-purple), #2e1a47);
    display: flex;
    justify-content: center;
    align-items: center;
}
.tarot-card-back::after {
    content: "⭐";
    font-size: 1.5rem;
    opacity: 0.5;
    color: var(--royal-gold);
}
.tarot-card-front {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
}

/* --- GALLERY STYLES --- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}
.gallery-tab {
    background: none;
    border: none;
    color: var(--ivory);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    opacity: 0.6;
}
.gallery-tab:hover { opacity: 1; text-shadow: var(--gold-glow); }
.gallery-tab.active { opacity: 1; color: var(--royal-gold); }
.gallery-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 2px;
    background: var(--royal-gold);
    box-shadow: var(--gold-glow);
}

.gallery-content { display: none; animation: fadeInUp 0.5s ease; }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.media-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.media-card:hover { transform: translateY(-5px); box-shadow: var(--gold-glow); border-color: var(--royal-gold); }
.media-thumb {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--royal-gold);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
    transition: all 0.3s;
}
.media-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }

.media-info { padding: 15px; }
.media-info h4 { margin-bottom: 5px; font-size: 1.1rem; }
.media-date { font-size: 0.8rem; color: #ccc; }

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.audio-card {
    background: linear-gradient(135deg, rgba(75, 46, 131, 0.4), rgba(46, 26, 71, 0.8));
    border: 1px solid var(--royal-gold);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--gold-glow);
}
.audio-icon {
    font-size: 2.5rem;
    color: var(--royal-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 50%;
}
.audio-details { flex: 1; }

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}
.lightbox-overlay img { max-width: 90%; max-height: 90%; border: 3px solid var(--royal-gold); border-radius: 8px; box-shadow: var(--gold-glow-strong); }
.iframe-container { width: 80%; height: 80%; max-width: 1000px; background: #000; border: 2px solid var(--royal-gold); border-radius: 8px; box-shadow: var(--gold-glow-strong); }
.iframe-container iframe { width: 100%; height: 100%; border: none; }
.close-lightbox { position: absolute; top: 30px; right: 40px; font-size: 3rem; color: var(--royal-gold); cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--ivory); transform: scale(1.1); }
