:root {
    --color-bg: #F9F7F2;
    --color-text: #2C3E50;
    --color-primary: #D4AF37;
    /* Gold */
    --color-secondary: #4A6C6F;
    /* Muted Teal/Green */
    --color-accent: #E67E22;
    /* Warm Terracotta/Orange from 'Gate' */
    --color-dark: #1A252F;
    --color-light: #FFFFFF;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: --font-body;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.btn-nav {
    border: 1px solid var(--color-secondary);
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--color-secondary);
    color: var(--color-light);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/wholeness.dc9d124c22a0.jpg") no-repeat center center/cover;
    filter: brightness(0.7);
    z-index: -1;
}

.hero-content {
    color: var(--color-light);
    max-width: 800px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-primary);
    color: var(--color-dark);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s ease;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
}

.cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

/* About */
.about {
    padding: var(--spacing-xl) 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.highlight {
    font-family: var(--font-heading);
    font-size: 1.4rem !important;
    color: var(--color-primary) !important;
    font-style: italic;
}

.circle-shape {
    width: 400px;
    height: 400px;
    background: url("images/ritual.0028d38a7ddb.jpg") no-repeat center center/cover;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.2);
}

/* Guide */
.guide {
    background: #fff;
    padding: var(--spacing-xl) 0;
}

.guide h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    padding: 2rem;
    background: var(--color-bg);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 0;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

/* Cards Section */
.cards-section {
    padding: var(--spacing-xl) 20px;
    text-align: center;
}

.cards-section h2 {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: #666;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card-item {
    width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card-item:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    height: 400px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-item:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    text-align: left;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Epilogue */
.epilogue {
    background: var(--color-secondary);
    color: var(--color-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.epilogue h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.epilogue p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* CTA */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: url("images/gate.9eeac8da7eb7.jpg") no-repeat center center/cover;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #444;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: #888;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .circle-shape {
        width: 300px;
        height: 300px;
    }

    .nav-links {
        display: none;
        /* Simple hide for mobile for now, or add hamburger */
    }
}

/* Divination Section */
.divination-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a1a 100%);
    color: var(--color-light);
    overflow: hidden;
    min-height: 800px;
    display: flex;
    align-items: center;
}

#div-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.div-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.4);
    z-index: 2;
}

.div-container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.div-stage {
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.div-stage.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.div-content {
    max-width: 800px;
    margin: 0 auto;
}

.div-content h2 {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.div-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Breathing Animation */
.breathing-circle {
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    margin: 0 auto 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-circle::before {
    content: '';
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: breath 8s infinite ease-in-out;
}

@keyframes breath {

    0%,
    100% {
        transform: scale(0.6);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* Questions */
.div-progress {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.div-question-text {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.div-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.div-option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    padding: 15px 30px;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease both;
}

.div-option-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Card Reveal */
.div-card-reveal {
    perspective: 1000px;
    width: 300px;
    height: 450px;
    margin: 0 auto 2rem;
}

.div-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.div-card-inner.flipped {
    transform: rotateY(180deg);
}

.div-card-front,
.div-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.div-card-front {
    background: #1a1a2e;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.div-card-back-pattern {
    width: 80%;
    height: 80%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.div-card-back-pattern::after {
    content: '✵';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.div-card-back {
    background: #fff;
    color: var(--color-dark);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.div-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#div-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.div-message-container {
    min-height: 100px;
    margin-bottom: 2rem;
}

.div-card-message {
    font-size: 1.4rem;
    font-style: italic;
    font-family: var(--font-heading);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.div-restart-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.div-restart-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-question {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .div-content h2 {
        font-size: 2.5rem;
    }

    .div-question-text {
        font-size: 1.8rem;
    }

    .div-card-reveal {
        width: 260px;
        height: 390px;
    }
}
