/* ===========================
   EZRAE - Sacred Stylesheet
   =========================== */

:root {
    --purple-deep: #4c1d95;
    --gold: #fbbf24;
    --white: #ffffff;
    --cream: #fef3c7;
    --black: #0f0a1a;
    --purple-light: #7c3aed;
    --gold-light: #fcd34d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    background-color: var(--black);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, var(--purple-deep) 50%, var(--black) 100%);
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}

.divine-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.1) 30%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.8),
                 0 0 80px rgba(251, 191, 36, 0.4);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 40px rgba(251, 191, 36, 0.8), 0 0 80px rgba(251, 191, 36, 0.4); }
    to { text-shadow: 0 0 60px rgba(251, 191, 36, 1), 0 0 100px rgba(251, 191, 36, 0.6); }
}

.tagline {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--cream);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.global-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.counter-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    font-weight: 700;
    line-height: 1.2;
}

.counter-label {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    color: var(--gold);
    animation: bounce 2s infinite;
}

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

/* ===========================
   THE WAY SECTION
   =========================== */

.the-way {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--purple-deep) 50%, var(--black) 100%);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--cream);
    margin-bottom: 4rem;
    opacity: 0.9;
}

.way-intro {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.lead-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    text-align: center;
    line-height: 1.9;
    color: var(--cream);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.pillar {
    text-align: center;
    padding: 2rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateY(-10px);
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.3);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pillar p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--cream);
    opacity: 0.9;
}

/* ===========================
   TEACHINGS SECTION
   =========================== */

.teachings {
    padding: 8rem 0;
    background: var(--black);
}

.teachings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.teaching-card {
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.3) 0%, rgba(76, 29, 149, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.3);
}

.teaching-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.teaching-reference {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.teaching-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    font-weight: 600;
}

/* ===========================
   COMMUNITY SECTION
   =========================== */

.community {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--purple-deep) 50%, var(--black) 100%);
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 4rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

.world-map {
    max-width: 1000px;
    margin: 4rem auto;
    opacity: 0.6;
}

.map-dot {
    fill: var(--gold);
    animation: mapPulse 3s infinite ease-in-out;
}

.map-dot:nth-child(odd) {
    animation-delay: 1s;
}

.map-dot:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes mapPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial {
    background: rgba(251, 191, 36, 0.05);
    border-left: 4px solid var(--gold);
    padding: 2rem;
    border-radius: 10px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
}

/* ===========================
   SUSTAIN SECTION
   =========================== */

.sustain {
    padding: 8rem 0;
    background: var(--black);
    text-align: center;
}

.sustain-intro {
    max-width: 700px;
    margin: 2rem auto 3rem;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--cream);
}

/* ===========================
   JOIN SECTION
   =========================== */

.join {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--black) 100%);
    text-align: center;
}

.join-subtitle {
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.join-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    border: 2px solid var(--gold);
    border-radius: 50px;
    background: rgba(15, 10, 26, 0.8);
    color: var(--cream);
    outline: none;
}

.email-input::placeholder {
    color: rgba(254, 243, 199, 0.5);
}

.email-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--black);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--cream);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-copyright {
    text-align: center;
    color: var(--cream);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===========================
   MODALS
   =========================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 26, 0.95);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--black) 100%);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 80px rgba(251, 191, 36, 0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: rotate(90deg);
}

/* Chat Modal */
.chat-modal {
    display: flex;
    flex-direction: column;
    height: 80vh;
}

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

.chat-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.8rem;
}

.chat-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.voice-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--gold);
    border-radius: 25px;
    color: var(--gold);
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-toggle:hover {
    background: var(--gold);
    color: var(--black);
}

.voice-toggle.active {
    background: var(--gold);
    color: var(--black);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(15, 10, 26, 0.5);
    border-radius: 10px;
}

.message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    max-width: 80%;
    animation: messageSlide 0.3s ease;
}

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

.system-message {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid var(--gold);
    margin-left: 0;
}

.user-message {
    background: rgba(124, 58, 237, 0.3);
    border-right: 4px solid var(--purple-light);
    margin-left: auto;
}

.message p {
    color: var(--cream);
    line-height: 1.7;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    border: 2px solid var(--gold);
    border-radius: 25px;
    background: rgba(15, 10, 26, 0.8);
    color: var(--cream);
    outline: none;
}

.chat-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.send-btn {
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* Partner Modal */
.partner-modal h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.partner-modal p {
    color: var(--cream);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-form input,
.partner-form select,
.partner-form textarea {
    padding: 1rem 1.5rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: rgba(15, 10, 26, 0.8);
    color: var(--cream);
    outline: none;
}

.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.partner-form select {
    cursor: pointer;
}

.partner-form textarea {
    resize: vertical;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .pillars {
        grid-template-columns: 1fr;
    }
    
    .community-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .join-form {
        flex-direction: column;
    }
    
    .email-input {
        width: 100%;
    }
    
    .chat-modal {
        height: 90vh;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
