/**
 * Custom CSS для Soul Map Service (T019)
 * Theme: Gemini III (Quiet Luxury / Mystic Neo-Noir)
 */

/* ==========================================
   CSS Variables (Gemini III Palette)
   ========================================== */
:root {
    --color-brand-dark: #04030D;
    /* Deep Void */
    --color-brand-light: #FAF6F3;
    /* Soft Cream */
    --color-brand-accent: #CBA378;
    /* Gold */
    --color-brand-secondary: #C98685;
    /* Dusty Rose */
    --color-brand-primary: #344E95;
    /* Deep Blue */

    /* Glassmorphism (Matte Effect) */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Thinner, subtler border */
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    /* Deeper shadow */

    /* Glow */
    --glow-accent: 0 0 20px rgba(203, 163, 120, 0.3);
}

/* ==========================================
   Global Styles
   ========================================== */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--color-brand-dark);
    color: var(--color-brand-light);
}

/* Custom selection color */
::selection {
    background: var(--color-brand-accent);
    color: var(--color-brand-dark);
}

/* ==========================================
   Aura Background Animation (Aurora Gradients)
   ========================================== */
.aura-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--color-brand-dark);
}

/* Creating the Aurora effect using multiple blurred blobs */
.aura-bg::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    top: -20%;
    left: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 78, 149, 0.2) 0%, transparent 70%);
    /* Deep Blue */
    filter: blur(80px);
    opacity: 0.6;
    animation: aurora-drift-1 25s infinite alternate ease-in-out;
}

.aura-bg::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    bottom: -10%;
    right: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 134, 133, 0.15) 0%, transparent 70%);
    /* Dusty Rose */
    filter: blur(80px);
    opacity: 0.5;
    animation: aurora-drift-2 30s infinite alternate ease-in-out;
}

@keyframes aurora-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.1);
    }
}

@keyframes aurora-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, -20px) scale(0.9);
    }
}

/* ==========================================
   Glassmorphism Effects (Matte/Frosted)
   ========================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    /* Sharper corners for "Quiet Luxury" */
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: rgba(4, 3, 13, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   Button Styles (Quiet Luxury)
   ========================================== */
.btn-primary {
    background: var(--color-brand-light);
    /* Cream background */
    color: var(--color-brand-dark);
    /* Dark text */
    padding: 1rem 3rem;
    border-radius: 2px;
    /* Minimalist sharp corners */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--color-brand-accent);
    /* Gold hover */
    color: var(--color-brand-dark);
    box-shadow: 0 0 30px rgba(203, 163, 120, 0.4);
    /* Soft gold glow */
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==========================================
   Form Styles (Minimalist Lines)
   ========================================== */
.input-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(250, 246, 243, 0.2);
    /* Cream with opacity */
    border-radius: 0;
    padding: 1rem 0;
    /* Remove horizontal padding */
    color: var(--color-brand-light);
    width: 100%;
    transition: all 0.4s ease;
    font-family: 'Playfair Display', serif;
    /* Elegant serif input */
    font-size: 1.5rem;
    text-align: center;
}

.input-field::placeholder {
    color: rgba(250, 246, 243, 0.3);
    font-family: 'Montserrat', sans-serif;
    /* Sans serif placeholder */
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.input-field:focus {
    outline: none;
    border-bottom-color: var(--color-brand-accent);
    box-shadow: 0 10px 20px -10px rgba(203, 163, 120, 0.2);
}

/* ==========================================
   Progress Bar (Minimalist Line)
   ========================================== */
.progress-bar {
    height: 1px;
    /* Ultra thin */
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-brand-accent);
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px var(--color-brand-accent);
}

/* ==========================================
   Loading Animation (Breathing Star)
   ========================================== */
@keyframes star-pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px var(--color-brand-light));
    }
}

.loading-pulse {
    animation: star-pulse 3s ease-in-out infinite;
}

/* ==========================================
   Card Styles
   ========================================== */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: rgba(203, 163, 120, 0.3);
    /* Gold hint on hover */
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   Text Utilities
   ========================================== */
.text-gold {
    color: var(--color-brand-accent);
}

.font-editorial {
    font-family: 'Playfair Display', serif;
}

.font-tech {
    font-family: 'Montserrat', sans-serif;
}