/* ============================================
   MYSTICAL ESOTERIC DESIGN - ALEKSANDR SHEPS
   ============================================ */

:root {
    --bg-dark: #0f0a1a;
    --bg-darker: #0a0515;
    --bg-card: #1a1429;
    --accent-gold: #c9a961;
    --accent-purple: #7d5ba6;
    --accent-cyan: #4a9fb5;
    --accent-pink: #a85a8a;
    --text-primary: #e8dcc8;
    --text-secondary: #b8a89a;
    --text-muted: #8b7d6f;
    --border-color: #3d2f4a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '◆';
    display: block;
    font-size: 1.2rem;
    color: var(--accent-purple);
    margin: 0.5rem 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 16px 40px;
    border: 2px solid var(--accent-gold);
    background: transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    color: var(--text-primary);
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.4);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1rem;
    border: 2px solid var(--accent-gold);
    color: var(--text-primary);
}

.btn-large:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
    background: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.3);
}

/* ============================================
   MODAL / POP-UP
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 5, 21, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, #2a1f3a 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 0 60px rgba(201, 169, 97, 0.2),
        inset 0 0 60px rgba(201, 169, 97, 0.05);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-mystical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.6;
}

.modal-stars {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    animation: twinkle 3s ease-in-out infinite;
}

.modal-stars::before {
    content: '✦ ◆ ✦';
    letter-spacing: 5px;
    color: var(--accent-gold);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: var(--accent-gold);
}

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

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.modal-subtitle {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.modal-form {
    margin: 2rem 0;
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(201, 169, 97, 0.05);
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.1);
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(201, 169, 97, 0.03);
    border-radius: 2px;
}

.form-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.form-agreement label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.form-error {
    display: block;
    color: #d4756e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.modal-footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ============================================
   MYSTICAL BACKGROUND ELEMENTS
   ============================================ */

.hero-mystical-bg,
.section-mystical-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.mystical-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
    animation: float 12s ease-in-out infinite;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: -150px;
    left: 5%;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation-delay: 3s;
}

.circle-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -100px;
    left: 15%;
    animation-delay: 6s;
}

.circle-4,
.circle-5,
.circle-6,
.circle-7 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation-delay: 2s;
}

.circle-4 {
    top: 50%;
    right: 5%;
}

.circle-5 {
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.circle-6 {
    top: 20%;
    left: 5%;
    animation-delay: 1s;
}

.circle-7 {
    bottom: 5%;
    right: 10%;
    animation-delay: 5s;
}

.tarot-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.symbol {
    position: absolute;
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.symbol-1 {
    top: 10%;
    left: 10%;
}

.symbol-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.symbol-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.symbol-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 6s;
}

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

.hero {
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-highlight {
    margin: 2.5rem 0;
    padding: 2rem;
    border-left: 3px solid var(--accent-gold);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.05) 0%, rgba(74, 159, 181, 0.03) 100%);
    border-radius: 2px;
}

.hero-highlight p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.image-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-card);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(201, 169, 97, 0.2),
        inset 0 0 60px rgba(201, 169, 97, 0.05);
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-image.active {
    opacity: 1;
}

.image-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
    transform: scale(1.3);
}

.dot:hover {
    border-color: var(--accent-gold);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
    margin: 0 auto;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */

.problems {
    padding: 6rem 20px;
    background: var(--bg-dark);
    position: relative;
}

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

.problem-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.problem-card:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(125, 91, 166, 0.05) 100%);
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.15);
}

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

.card-symbol {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-card h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

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

.insight-box {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(74, 159, 181, 0.05) 100%);
    padding: 3rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.insight-divider {
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.insight-box p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.insight-box strong {
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 6rem 20px;
    background: var(--bg-darker);
    position: relative;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.services-list h3 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.services-list ul {
    list-style: none;
}

.services-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.services-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.services-list li:hover {
    color: var(--accent-cyan);
    padding-left: 2.5rem;
}

.services-highlight {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1rem 0;
}

.highlight-content p:first-child,
.highlight-content p:last-child {
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   INTERACTION SECTION
   ============================================ */

.interaction {
    padding: 6rem 20px;
    background: var(--bg-dark);
    position: relative;
}

.benefits-section h3 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 1px;
}

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

.benefit-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(125, 91, 166, 0.05) 100%);
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.15);
}

.benefit-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.benefit-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.interaction-note {
    background: linear-gradient(135deg, rgba(74, 159, 181, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.interaction-note p {
    font-size: 1.15rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 6rem 20px;
    background: var(--bg-darker);
    position: relative;
}

.cta-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 2rem;
    font-style: italic;
}

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

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 20px;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.footer-note {
    color: var(--accent-gold);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

/* ============================================
   BUTTON CENTERING ON MOBILE
   ============================================ */

@media (max-width: 768px) {
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .hero-visual {
        order: -1;
    }

    .modal-container {
        padding: 2rem;
        max-width: 90%;
    }

    .btn-primary,
    .btn-large {
        width: 100%;
        padding: 18px 30px;
        font-size: 1rem;
    }

    .btn-submit {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .btn-large {
        width: 100%;
        padding: 18px 20px;
        font-size: 1rem;
        display: block;
        margin: 0 auto;
    }

    .btn-primary {
        width: 100%;
        padding: 18px 20px;
        font-size: 1rem;
        display: block;
        margin: 0 auto;
    }

    .btn-submit {
        padding: 16px 20px;
        font-size: 1rem;
    }
}
