/* Premium Editorial Animations & Typography */

:root {
    --font-heading: 'Noto Serif', serif;
    --font-body: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif,
.font-headline {
    font-family: var(--font-heading);
}

/* Base Reveal States */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.21, 0.45, 0.15, 1.00);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

/* Active Reveal States */
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggering Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-700 {
    transition-delay: 700ms;
}

/* Refined Micro-interactions */
.luxury-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

button,
.btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* Smooth Page Transitions */
main {
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.page-fade-out main {
    opacity: 0.2;
}

/* Page Loader Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #efece7;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    pointer-events: auto;
    /* Block interactions while loading */
}

.page-loader.hidden {
    transform: translateY(-100%);
    /* Slide UP out of view */
    pointer-events: none;
}

.loader-shimmer {
    width: 200px;
    height: 2px;
    background: #dcd9d4;
    position: relative;
    overflow: hidden;
}

.loader-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #111111, transparent);
    animation: loaderSweep 1.5s infinite;
}

@keyframes loaderSweep {
    to {
        left: 100%;
    }
}

/* Text Shimmer Effect for Primary Colors */
.text-shimmer {
    background: linear-gradient(to right,
            #111111 20%,
            #888888 40%,
            #888888 60%,
            #111111 80%);
    background-size: 200% auto;
    color: #111111;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Background Circles Hero Component */
.hero-animated-bg {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    transition: background 0.8s ease;
    cursor: pointer;
    /* Indicate it's clickable */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.circles-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vw;
    max-width: 480px;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-item {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--circle-border);
    background: linear-gradient(to bottom right, var(--circle-gradient), transparent);
    animation: circle-pulse 5s ease-in-out infinite, circle-rotate 5s linear infinite;
    opacity: 0.8;
}

.circle-item:nth-child(1) {
    animation-delay: 0s;
    transform: scale(1);
}

.circle-item:nth-child(2) {
    animation-delay: 0.2s;
    transform: scale(1.05);
}

.circle-item:nth-child(3) {
    animation-delay: 0.4s;
    transform: scale(1.1);
}

/* Circle Glow Overlay */
.circle-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mix-blend-mode: screen;
    background: radial-gradient(circle at center, var(--circle-glow), transparent 70%);
}

@keyframes circle-pulse {

    0%,
    100% {
        scale: 1;
        opacity: 0.8;
    }

    50% {
        scale: 1.05;
        opacity: 1;
    }
}

@keyframes circle-rotate {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/* Background Radial Glows */
.hero-glow-container {
    position: absolute;
    inset: 0;
    mask-image: radial-gradient(90% 60% at 50% 50%, black 40%, transparent);
    pointer-events: none;
}

.hero-glow-1 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 118, 110, 0.3), transparent 70%);
    filter: blur(120px);
}

.hero-glow-2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.15), transparent);
    filter: blur(80px);
}

/* Design Tokens for Variants */
[data-variant="primary"] {
    --circle-border: rgba(16, 185, 129, 0.6);
    --circle-gradient: rgba(16, 185, 129, 0.3);
    --circle-glow: rgba(16, 185, 129, 0.1);
}

[data-variant="secondary"] {
    --circle-border: rgba(139, 92, 246, 0.6);
    --circle-gradient: rgba(139, 92, 246, 0.3);
    --circle-glow: rgba(139, 92, 246, 0.1);
}

[data-variant="tertiary"] {
    --circle-border: rgba(249, 115, 22, 0.6);
    --circle-gradient: rgba(249, 115, 22, 0.3);
    --circle-glow: rgba(249, 115, 22, 0.1);
}

[data-variant="quaternary"] {
    --circle-border: rgba(168, 85, 247, 0.6);
    --circle-gradient: rgba(168, 85, 247, 0.3);
    --circle-glow: rgba(168, 85, 247, 0.1);
}

[data-variant="quinary"] {
    --circle-border: rgba(239, 68, 68, 0.6);
    --circle-gradient: rgba(239, 68, 68, 0.3);
    --circle-glow: rgba(239, 68, 68, 0.1);
}

[data-variant="senary"] {
    --circle-border: rgba(59, 130, 246, 0.6);
    --circle-gradient: rgba(59, 130, 246, 0.3);
    --circle-glow: rgba(59, 130, 246, 0.1);
}

[data-variant="septenary"] {
    --circle-border: rgba(107, 114, 128, 0.6);
    --circle-gradient: rgba(107, 114, 128, 0.3);
    --circle-glow: rgba(107, 114, 128, 0.1);
}

[data-variant="octonary"] {
    --circle-border: rgba(239, 68, 68, 0.6);
    --circle-gradient: rgba(239, 68, 68, 0.3);
    --circle-glow: rgba(239, 68, 68, 0.1);
}

/* Hero Typography */
.hero-title-gradient {
    background: linear-gradient(to bottom, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 32px rgba(94, 234, 212, 0.4));
}