/* ===========================
   Klarvoyance Production Styles
   =========================== */

/* --- Body Background Mesh --- */
body {
    background-color: #f7f7f7;
    background-image:
        radial-gradient(at 40% 20%, rgba(220, 220, 230, 0.8) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(240, 230, 240, 0.8) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(220, 240, 250, 0.8) 0px, transparent 50%);
    background-attachment: fixed;
}

/* --- Glass Morphism --- */
.glass-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Text Micro Label --- */
.text-micro {
    /* Slightly larger for mobile readability while keeping the "eyebrow" feel. */
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- IRIS CSS Eye --- */
.realistic-iris {
    background:
        radial-gradient(circle at center, #000 20%, transparent 21%),
        conic-gradient(from 0deg,
            #0a1d35 0%,
            #1e40af 10%,
            #60a5fa 20%,
            #f59e0b 35%,
            #d97706 45%,
            #f59e0b 55%,
            #60a5fa 70%,
            #1e40af 85%,
            #0a1d35 100%);
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

.iris-fibers {
    background: repeating-conic-gradient(rgba(255,255,255,0.1) 0deg 0.5deg, transparent 0.5deg 2deg);
    mix-blend-mode: overlay;
}

/* --- Capability Card Hover --- */
.card-wp {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(1.1);
    transform: scale(1);
    transition: transform 0.7s ease, filter 0.7s ease;
    will-change: transform;
}

.card-wp:hover .card-img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.6s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* Bottom accent line inside capability cards */
.card-content::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #334155;
    margin-top: auto;
    padding-top: 16px;
    border-radius: 2px;
    background-clip: content-box;
}

@media (max-width: 991px) {
    .card-content {
        min-height: 230px;
    }
}

.card-wp:hover .card-content {
    transform: translateY(-20px);
}

/* --- Gallery Scroll (no scrollbar) --- */
.gallery-scroll::-webkit-scrollbar {
    height: 0;
    background: transparent;
}
.gallery-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Liquid Glass Button --- */
@keyframes liquid-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-fluid-glass {
    background: linear-gradient(
        110deg,
        #f1f5f9 0%, #dbeafe 25%, #e2e8f0 45%, #bfdbfe 60%, #f8fafc 80%, #cbd5e1 100%
    );
    background-size: 300% 300%;
    animation: liquid-flow 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.9),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 4px 15px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.btn-fluid-glass::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 15%;
    right: 15%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.05));
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(0.5px);
    opacity: 0.8;
}

.btn-fluid-glass:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 1),
        inset 0 -3px 5px rgba(0, 0, 0, 0.05),
        0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-fluid-glass:active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(1.25) saturate(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), inset 0 0 10px rgba(255,255,255,1);
}

/* --- Hero Fade-in Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.5s; }
.animate-delay-4 { animation-delay: 0.7s; }

/* --- IRIS Section --- */
.iris-section {
    position: relative;
}

.iris-sticky-wrapper {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iris-content-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 30%);
    opacity: 0;
    max-width: 640px;
    width: 100%;
    padding: 0 1.5rem;
    text-align: left;
}

@media (max-width: 767px) {
    .iris-content-box {
        max-width: 100%;
        padding: 0 1.25rem;
        top: 45%;
    }
}

.css-iris-eye {
    opacity: 0;
    transform: scale(0);
}

.iris-advantage-text {
    opacity: 0;
    transform: translateY(100%);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s;
}

.mobile-menu-overlay a:hover {
    color: #666;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Swiper overrides --- */
.swiper {
    overflow: visible !important;
}

/* --- Sticky Capability Cards (Mobile) --- */
.sticky-cards-container {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 7rem;
}

.sticky-card:nth-child(2) { top: 7.5rem; }
.sticky-card:nth-child(3) { top: 8rem; }
.sticky-card:nth-child(4) { top: 8.5rem; }
.sticky-card:nth-child(5) { top: 9rem; }

/* --- Form Styles --- */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #1a1a1a;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #999;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Testimonial Carousel --- */
.testimonial-slide {
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

/* --- CountUp --- */
.count-up {
    transition: opacity 0.3s;
}

/* --- Bottom Bar hiding --- */
.bottom-bar {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bottom-bar.hidden-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* When bar is embedded in the landing zone, ensure it's fully interactive */
#cta-landing-zone .bottom-bar-inner {
    pointer-events: auto;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .card-img {
        transition: none !important;
    }
    .btn-fluid-glass {
        animation: none !important;
    }
}

/* --- Print --- */
@media print {
    .glass-nav, .bottom-bar, .mobile-menu-overlay, .banner-top {
        display: none !important;
    }
    body {
        background: white !important;
    }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .desktop-capabilities { display: none !important; }
    .mobile-capabilities { display: block !important; }
}

@media (min-width: 992px) {
    .desktop-capabilities { display: block !important; }
    .mobile-capabilities { display: none !important; }
}

/* Bottom bar layout is controlled by Tailwind classes in index.html */

/* --- Partner Logo Bar --- */
.partner-logos img,
.partner-logos svg {
    height: 24px;
    opacity: 0.35;
    filter: grayscale(100%);
    transition: opacity 0.3s;
}

.partner-logos img:hover,
.partner-logos svg:hover {
    opacity: 0.7;
}

/* --- Nav active link --- */
.nav-link-active {
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

/* --- Pulse animation for Demo link --- */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.demo-pulse {
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* --- FAQ Accordion --- */
details summary::-webkit-details-marker,
details summary::marker {
    display: none;
    content: '';
}

details summary {
    list-style: none;
}

/* --- Form success --- */
.form-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.form-success p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}
