/* Global design system for Soulpage */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
}

body {
    background:
        linear-gradient(145deg, rgba(168, 85, 247, 0.08), transparent 36%),
        linear-gradient(315deg, rgba(236, 72, 153, 0.08), transparent 42%),
        var(--bg-dark);
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Background Animation Styles */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background: #000;
}

.video-simulation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.6) saturate(1.2);
    animation: kenBurns 40s linear infinite alternate;
}

.video-simulation.layer-1 {
    animation: kenBurns 40s linear infinite alternate, crossFade1 20s infinite;
}

.video-simulation.layer-2 {
    animation: kenBurns 40s linear infinite alternate-reverse, crossFade2 20s infinite;
}

@keyframes crossFade1 {
    0%, 45% { opacity: 0.6; }
    50%, 95% { opacity: 0; }
    100% { opacity: 0.6; }
}

@keyframes crossFade2 {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 0.6; }
    100% { opacity: 0; }
}

.cards-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.card-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 180px;
}

.card-column:nth-child(even) {
    animation: scrollUp 60s linear infinite;
}

.card-column:nth-child(odd) {
    animation: scrollDown 50s linear infinite;
}

.bg-card {
    width: 100%;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(10, 10, 12, 0.8) 80%, var(--bg-dark) 100%);
    z-index: 2;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

@keyframes fadeInVideo {
    from { opacity: 0; transform: scale(1.2); filter: brightness(0) blur(20px); }
    to { opacity: 0.6; transform: scale(1); filter: brightness(0.6) blur(0); }
}

.glass {
    background: rgba(18, 18, 26, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-nav {
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ec4899);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

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

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.soulpage-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.soulpage-loader.active {
    display: grid;
}

.soulpage-loader-panel {
    min-width: 220px;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    background: rgba(20, 20, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.soulpage-loader-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 700;
    animation: pulseGlow 1.2s ease-in-out infinite;
}

.soulpage-loader-text {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.soulpage-loader-subtext {
    margin-top: 6px;
    color: rgb(156, 163, 175);
    font-size: 13px;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
    50% { transform: scale(1.06); box-shadow: 0 0 34px rgba(236, 72, 153, 0.38); }
}
