:root {
    --bg-color: #050507;
    --text-color: #e0e0e0;
    --accent-color: #a0a0ff;
    --card-bg: rgba(20, 20, 30, 0.4);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
    --font-ui: 'Inter', sans-serif;
    --secondary-accent: #b080ff;
}

/* CUSTOM CURSOR STYLES */
#cursor-dot,
#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--secondary-accent);
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(160, 160, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering #cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(160, 160, 255, 0.1);
    border-color: var(--secondary-accent);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    /* Hide default cursor */
    /* Sophisticated Dynamic Background */
    background: linear-gradient(135deg, #050507, #0a0a1a, #1a0b1a, #050507);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Star Layer (Static/Slow) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: stars 120s linear infinite;
    opacity: 0.8;
    z-index: -1;

}

/* Nebula / Aurora Effect */
/* Nebula / Aurora Effect - Disabled per user request
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(76, 29, 149, 0.15), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(67, 56, 202, 0.15), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1), transparent 40%);
    background-size: 150% 150%;
    animation: nebulaMove 25s ease-in-out infinite alternate;
    pointer-events: none;
}
*/

@keyframes nebulaMove {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }

    100% {
        background-position: 100% 50%;
        filter: hue-rotate(20deg);
    }
}

/* Shooting Star Styles */
/* Shooting Star Styles - RESTORED & REFINED */
.shooting-star {
    position: fixed;
    width: 100px;
    /* Shorter for elegance */
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    /* Behind content */
    transform: rotate(-35deg);
    opacity: 0;
    pointer-events: none;
    animation: shoot 2s ease-out forwards;
    /* Smoother easing */
    filter: drop-shadow(0 0 2px rgba(160, 160, 255, 0.8));
    /* Subtle violet glow */
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(-35deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-300px, 200px) rotate(-35deg) scale(1);
        opacity: 0;
    }
}

@keyframes stars {
    0% {
        background-position: 0 0, 40px 60px, 130px 270px;
    }

    100% {
        background-position: 550px 550px, 390px 410px, 680px 820px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
}

/* TAROT SHUFFLE ANIMATION */
.tarot-deck-container {
    position: relative;
    width: 120px;
    height: 200px;
    margin: 0 auto 2rem;
    perspective: 1000px;
}

.tarot-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #1a0b0b 0%, #331010 100%);
    border: 1px solid rgba(160, 160, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.tarot-card-back::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 94%;
    border: 1px dashed rgba(160, 160, 255, 0.2);
    border-radius: 4px;
}

.tarot-card-back::after {
    content: '☾';
    font-size: 2rem;
    color: rgba(160, 160, 255, 0.4);
}

.shuffling .tarot-card-back:nth-child(1) {
    animation: shuffle 1.5s infinite ease-in-out;
    z-index: 3;
}

.shuffling .tarot-card-back:nth-child(2) {
    animation: shuffle 1.5s infinite ease-in-out 0.1s;
    z-index: 2;
}

.shuffling .tarot-card-back:nth-child(3) {
    animation: shuffle 1.5s infinite ease-in-out 0.2s;
    z-index: 1;
}

.shuffling .tarot-card-back:nth-child(4) {
    transform: translate(2px, -2px) rotate(2deg);
    z-index: 0;
}

.shuffling .tarot-card-back:nth-child(5) {
    transform: translate(-2px, 2px) rotate(-1deg);
    z-index: 0;
}

@keyframes shuffle {
    0% {
        transform: translateX(0) translateZ(0) rotate(0);
    }

    50% {
        transform: translateX(120px) translateZ(20px) rotate(5deg);
    }

    75% {
        transform: translateX(-20px) translateZ(10px) rotate(-2deg);
    }

    100% {
        transform: translateX(0) translateZ(0) rotate(0);
        box-shadow: 0 0 20px rgba(160, 160, 255, 0.4);
    }
}

/* SPREAD REVEAL ANIMATION */
@keyframes cardFlip {
    0% {
        transform: rotateY(0);
    }

    100% {
        transform: rotateY(180deg);
    }
}

.flipped .tarot-card-inner {
    transform: rotateY(180deg) !important;
}

/* HEADER */
.header {
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* backdrop-filter: blur(5px); Removed */
}

.logo {
    font-family: var(--font-ui);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.8;
    background: linear-gradient(to right, #fff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Resonance Colors & Symbols */
.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 10px;
    margin-top: 1rem;
    justify-items: center;
}

.color-option {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-option input {
    display: none;
}

.swatch {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--swatch-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-option input:checked+.swatch {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--swatch-color), 0 0 5px rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Resonance Symbols */
.symbol-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.symbol-option {
    cursor: pointer;
    text-align: center;
}

.symbol-option input {
    display: none;
}

.symbol-box {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(160, 160, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.symbol-icon {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.symbol-name {
    font-size: 0.7rem;
    opacity: 0.7;
    font-family: var(--font-ui);
    letter-spacing: 0.05em;
}

.symbol-option input:checked+.symbol-box {
    background: rgba(160, 160, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(160, 160, 255, 0.4);
    transform: translateY(-2px);
}

.symbol-option input:checked+.symbol-box .symbol-icon {
    filter: drop-shadow(0 0 8px rgba(200, 200, 255, 0.8));
    transform: scale(1.1);
}

/* Result View */
/* HERO SECTION */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    /* Add padding to prevent top cut off */
    padding-bottom: 50px;
}

/* ASTROLOGY HERO */
.hero-astrology {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero-astrology::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 4px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    background-position: 0 0, 40px 60px, 130px 270px;
    /* animation: stars 120s linear infinite; Removed */
    opacity: 0.6;
}

.hero-astrology::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(76, 29, 149, 0.2), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(29, 78, 216, 0.2), transparent 40%);
    z-index: 1;
}

/* TAROT HERO */
.hero-tarot {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a0b0b, #0f0505);
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
}

.hero-tarot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 120%, rgba(255, 100, 50, 0.05), transparent 60%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 2px, transparent 2px, transparent 10px);
    z-index: 0;
}

/* NUMEROLOGY HERO */
.hero-numerology {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-numerology::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(rgba(0, 50, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 50, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

.hero-numerology::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 100, 0, 0.1) 0%, transparent 80%);
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Moon Effect */
/* Moon Effect - Disabled per user request
.orbit-circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, transparent 50%, #1a1a2e 100%);
    border-radius: 50%;
    box-shadow:
        inset -20px -20px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(100, 100, 255, 0.1),
        inset 10px 10px 20px rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: moonPulse 8s ease-in-out infinite alternate;
}
*/

/* Pulse Effect - Disabled per user request
.orbit-circle-pulse {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(160, 160, 255, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: radar 4s linear infinite;
    opacity: 0;
    pointer-events: none;
}
*/

@keyframes radar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Glowing Aura */
/* Glowing Aura - Disabled per user request
.hero::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(50, 50, 150, 0.08) 0%, rgba(0, 0, 0, 0) 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
*/

@keyframes moonPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(100, 100, 255, 0.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 60px rgba(100, 100, 255, 0.2);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-content {
    z-index: 2;
    position: relative;
    /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); Removed per user request */
}

.hero-sub {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    /* Adjusted in HTML inline style too */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #ffffff;
    /* Force white for max visibility */
    font-weight: 500;
    /* Increase weight slightly */
    opacity: 1;
    position: relative;
    z-index: 10;

    /* Ensure no effects for now */
    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* will-change: auto; Removed */
}

.hero-sub span {
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 3.5rem;
    background: linear-gradient(to right bottom, #fff 30%, #a0a0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(160, 160, 255, 0.5);
    /* Filter removed to prevent blur, using text-shadow for glow instead */
}


.hero-desc-container {
    margin-bottom: 5rem;
}

.hero-jp-main {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 1;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    color: #fff;
    line-height: 1.8;
}

.hero-jp-sub {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 2.4;
    letter-spacing: 0.1em;
}

/* BUTTONS */
.oracle-btn {
    background: rgba(160, 160, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(160, 160, 255, 0.5);
    padding: 1rem 4rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(160, 160, 255, 0.2);
    margin-top: 1rem;
    z-index: 20;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.oracle-btn:hover {
    background: rgba(160, 160, 255, 0.3);
    box-shadow: 0 0 30px rgba(160, 160, 255, 0.6);
    border-color: #fff;
    transform: scale(1.05);
}

.btn-jp {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 0.3rem;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
}

.oracle-btn.full-width {
    width: 100%;
    margin-top: 2rem;
    flex-direction: row;
    justify-content: center;
}

.oracle-btn.small {
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    margin-top: 2rem;
    display: inline-block;
}

/* STATEMENT SECTION */
.statement {
    padding: 10rem 0;
    text-align: center;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.statement-lead {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5rem;
    color: #c0c0ff;
}

.jp-sub {
    font-family: var(--font-body);
    display: block;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    opacity: 0.7;
    color: var(--text-color);
}

.statement-body {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    font-weight: 300;
    font-size: 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(160, 160, 255, 0.1);
    line-height: 1.8;
}

.statement-body p {
    margin-bottom: 2.5rem;
}

.term-note {
    font-size: 0.85rem;
    color: #a0a0ff;
    background: rgba(160, 160, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: inline-block;
    border-left: 2px solid #a0a0ff;
}

.highlight {
    color: var(--accent-color);
    font-weight: 400;
    border-bottom: 1px solid rgba(160, 160, 255, 0.3);
    padding-bottom: 2px;
}

/* SERVICES SECTION */
.services {
    padding: 4rem 0 10rem;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.card {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 160, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(160, 160, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent-color);
    border: 1px solid rgba(160, 160, 255, 0.3);
    pointer-events: none;
    transition: all 0.3s ease;
}

.card:hover .card-label {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(30, 30, 50, 0.6);
    border-color: rgba(160, 160, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(160, 160, 255, 0.4);
    display: none;
    /* Hide old icons if any remain */
}

.card-icon-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(160, 160, 255, 0.4));
    transition: all 0.5s ease;
}

.card:hover .card-icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(160, 160, 255, 0.8));
    color: #fff;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.card-jp {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    color: #aaa;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    opacity: 0.9;
}

/* SYNERGY FOOTER */
.synergy {
    padding: 8rem 0 5rem;
    background: linear-gradient(to bottom, #050507, #020204);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.synergy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: radial-gradient(circle, rgba(160, 160, 255, 0.3) 0%, transparent 70%);
}

.synergy-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.synergy-jp {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5rem;
    letter-spacing: 0.1em;
}

.synergy-text {
    max-width: 600px;
    margin: 0 auto 5rem;
    font-weight: 300;
    font-size: 1rem;
    line-height: 2;
}

.synergy-text p {
    margin-bottom: 2rem;
}

.synergy-final {
    margin-top: 4rem;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.copyright {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    opacity: 0.3;
    letter-spacing: 0.1em;
    margin-top: 6rem;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(160, 160, 255, 0.2);
    border-radius: 8px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    /* Handle taller forms */
    overflow-y: auto;
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(160, 160, 255, 0.3);
    border-radius: 3px;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #fff;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* INPUTS */
.input-group {
    text-align: left;
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.3rem;
    font-family: var(--font-ui);
}

input[type="text"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    border-radius: 4px;
}

input:focus,
select:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Fix for Select dropdown colors in some browsers */
select option {
    background: #1a1a2e;
    color: #fff;
}

/* COLOR INPUT STYLES */
.color-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
}

.color-option {
    cursor: pointer;
    position: relative;
}

.color-option input {
    display: none;
}

.color-option .swatch {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option input:checked+.swatch {
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-option:hover .swatch {
    transform: scale(1.1);
}

/* LOADER */
.loader {
    width: 60px;
    height: 60px;
    margin: 2rem auto;
    position: relative;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-circle::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* RESULT CARD */
.tarot-reveal {
    width: 150px;
    height: 250px;
    margin: 0 auto 2rem;
    perspective: 1000px;
}

.tarot-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.tarot-reveal.flipped .tarot-card-inner {
    transform: rotateY(180deg);
}

.tarot-front,
.tarot-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.tarot-front {
    background: rgba(20, 20, 30, 0.8);
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
}

.tarot-back {
    background: linear-gradient(135deg, #1a1a2e, #000);
    transform: rotateY(180deg);
    color: var(--accent-color);
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(160, 160, 255, 0.3);
}

#resultTitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

#resultDesc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* DETAILED RESULT AREA */
.detailed-result {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(160, 160, 255, 0.2);
    font-size: 0.95rem;
    color: #ddd;
}

.detailed-section {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 2px solid var(--accent-color);
}

.detailed-section h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(160, 160, 255, 0.2);
}

.detailed-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d0d0ff;
}

/* Premium Result Background (CSS alternative to image) */
#stepResult {
    background:
        radial-gradient(circle at 10% 20%, rgba(90, 40, 150, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(40, 90, 160, 0.1) 0%, transparent 40%),
        linear-gradient(to bottom, transparent, rgba(5, 5, 16, 0.8)),
        repeating-linear-gradient(45deg,
            rgba(160, 160, 255, 0.02) 0px,
            rgba(160, 160, 255, 0.02) 1px,
            transparent 1px,
            transparent 10px);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Download Button Style */
#downloadPdfBtn {
    background: linear-gradient(135deg, rgba(160, 160, 255, 0.1), rgba(160, 160, 255, 0.05));
    border: 1px solid rgba(160, 160, 255, 0.3);
    color: var(--text-color);
    transition: all 0.3s ease;
}

#downloadPdfBtn:hover {
    background: rgba(160, 160, 255, 0.2);
    box-shadow: 0 0 15px rgba(160, 160, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .statement,
    .services,
    .synergy {
        padding: 6rem 0;
    }

    body {
        background-size: 300px 300px, 200px 200px, 150px 150px;
    }
}

/* -------------------------------------------------------------------------- */
/*                              LANGUAGE SWITCHER                             */
/* -------------------------------------------------------------------------- */
.lang-switch {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 50%;
    right: 20px;
    /* Adjust based on logo position */
    transform: translateY(-50%);
    z-index: 1000;
}

@media (max-width: 768px) {
    .lang-switch {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(160, 160, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: #fff;
}

.lang-btn.active {
    background: rgba(160, 160, 255, 0.2);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(160, 160, 255, 0.3);
}

/* Visibility Logic */
.text-en {
    display: none;
}

body.lang-en .text-jp {
    display: none !important;
}

body.lang-en .text-en {
    display: block;
    /* animation: fadeIn 0.5s ease; Removed to fix blur */
}

/* Specific overrides for flex/inline elements if needed */
body.lang-en .card-desc.text-en {
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                            MOBILE RESPONSIVENESS                           */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* TYPOGRAPHY */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-jp-main,
    .hero-jp-sub {
        font-size: 0.9rem;
        line-height: 1.6;
        white-space: normal;
        /* Allow text wrapping */
    }

    h1,
    h2,
    h3 {
        overflow-wrap: break-word;
        /* Prevent overflow */
    }

    /* GRID & LAYOUT */
    .cards-grid {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
        gap: 2rem;
    }

    .card {
        min-height: auto;
    }

    .tarot-reveal {
        width: 240px;
        /* Slightly larger on mobile single column */
        height: 400px;
        margin: 0 auto 2rem;
    }

    /* HEADER / NAV */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
        height: auto;
    }

    .lang-switch {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        justify-content: center;
        margin-top: 10px;
    }

    /* INPUTS */
    .input-group {
        width: 100%;
        max-width: 100%;
    }

    .input-group input,
    .input-group select {
        width: 100%;
    }

    /* HERO */
    .hero-content {
        padding: 2rem 0;
        text-align: center;
        max-width: 100%;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    /* FOOTER */
    .synergy-title {
        font-size: 1.8rem;
    }

    .synergy-content {
        padding: 2rem 1rem;
    }

    /* ORACLE MODAL */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }
}

/* PDF GENERATION FIXES */
.pdf-mode .tarot-card-inner {
    transform: none !important;
    perspective: none !important;
}

.pdf-mode .tarot-front {
    display: none !important;
}

.pdf-mode .tarot-back {
    transform: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    backface-visibility: visible !important;
}

.pdf-mode .tarot-reveal {
    perspective: none !important;
    height: auto !important;
    min-height: 400px;
    box-shadow: none !important;
}

.pdf-mode * {
    animation: none !important;
    transition: none !important;
}

.pdf-mode .pdf-header {
    display: block !important;
}

/* About Us Link Style */
.about-link {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.about-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Restore Tarot Flip Animation */
.flipped .tarot-card-inner {
    transform: rotateY(180deg) !important;
}