/* ===== Prozilli Design System — Dark Cinematic ===== */

/* Cinematic hex background */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #0a0a0f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='150'%3E%3Cpath d='M42 99L0 75V24L42 0l42 24v51L42 99zm0 51L0 126V75l42-24 42 24v51L42 150z' fill='none' stroke='%23910000' stroke-width='1' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 84px 150px;
}
.grid-overlay::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(145, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 28, 63, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(101, 0, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Nav glass */
.nav-glass {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cinematic card — solid dark with subtle depth */
.glass-card {
    background: rgba(14, 14, 22, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.glass-card:hover {
    border-color: rgba(145, 0, 0, 0.25);
    box-shadow: 0 0 50px rgba(145, 0, 0, 0.12), 0 0 20px rgba(0, 212, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

/* Card background image layer */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    transition: opacity 0.4s;
    z-index: 0;
}
.glass-card:hover .card-bg {
    opacity: 0.22;
}
.glass-card > *:not(.card-bg) {
    position: relative;
    z-index: 1;
}

/* Section hero — full-bleed cinematic background per section */
.section-hero {
    position: relative;
    overflow: hidden;
}
.section-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.25) saturate(0.8);
    z-index: 0;
}
.section-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.8) 0%,
        rgba(10, 10, 15, 0.6) 40%,
        rgba(10, 10, 15, 0.8) 100%
    );
    z-index: 1;
}
.section-hero > *:not(.section-hero-bg):not(.section-hero-overlay):not(.orb) {
    position: relative;
    z-index: 2;
}

/* Animated gradient border */
.gradient-border {
    position: relative;
}
.gradient-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #910000, #d4a847, #00d4ff, transparent);
    background-size: 200% 100%;
    animation: shimmer-border 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}
.gradient-border:hover::after {
    opacity: 1;
}
@keyframes shimmer-border {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Shimmer text effect */
.shimmer-text {
    background: linear-gradient(90deg, #910000 0%, #d4a847 30%, #fff 50%, #d4a847 70%, #910000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 4s linear infinite;
}
@keyframes shimmer-text {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* LISA status dot */
.lisa-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 4px #00d4ff, 0 0 8px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 8px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.5); }
}

/* Breathing glow for LISA widget */
.lisa-breathe {
    animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.4), 0 0 50px rgba(0, 212, 255, 0.2); }
}

/* Hero section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    animation: hero-zoom 20s ease-in-out infinite alternate;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.9);
}
@keyframes hero-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.6) 60%,
        #0a0a0f 100%
    );
}

/* Scanline overlay on hero */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}
.hero-section > .relative { z-index: 2; }

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Float animation */
.float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gold accent line */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #910000, #d4a847, transparent);
}

/* Particle canvas */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Section glow border */
.glow-border {
    position: relative;
    background: rgba(10, 10, 15, 0.95);
}
.glow-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(145, 0, 0, 0.25), rgba(0, 212, 255, 0.15), transparent);
}

/* Icon glow on card hover */
.icon-glow {
    transition: filter 0.4s, transform 0.4s;
}
.glass-card:hover .icon-glow {
    filter: drop-shadow(0 0 8px currentColor);
    transform: scale(1.1);
}

/* Ambient orb decorations */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    animation: orb-drift 12s ease-in-out infinite alternate;
}
.orb-gold { background: #d4a847; }
.orb-blue { background: #00d4ff; }
.orb-purple { background: #8b5cf6; }
.orb-crimson { background: #910000; }
.orb-navy { background: #001c3f; }
@keyframes orb-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -20px); }
}

/* LISA widget */
.lisa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}
.lisa-widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
}
.lisa-widget-btn:hover {
    transform: scale(1.1);
    border-color: rgba(0, 212, 255, 0.5);
}
.lisa-widget-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: min(320px, calc(100vw - 48px));
    max-height: 400px;
    overflow-y: auto;
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.lisa-widget-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Typing cursor effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #d4a847;
    font-weight: 300;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Staggered reveal for children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-bg { animation: none; }
    .shimmer-text { animation: none; background: linear-gradient(90deg, #d4a847, #fff); -webkit-background-clip: text; background-clip: text; }
    .reveal { opacity: 1; transform: none; }
    .stagger-children > * { opacity: 1; transform: none; }
    .float { animation: none; }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #d4a847;
    outline-offset: 2px;
}
