/* ==========================================
   PROJECT SALSETTE: SHOWCASE STYLES
   Extracting Light-Mode & Glassmorphism 
========================================== */

:root {
    --track-bg: rgba(0, 0, 0, 0.1);
    --track-fill: #1A1A1A; /* Charcoal for minimalist look */
}

/* Base styles managed mostly by Tailwind now */

/* --- THE WEBGL CANVAS LAYER --- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    pointer-events: none;
    /* Very faint opacity for the wireframe sea, FBM handles its own opacity */
    opacity: 0.82;
}

.xray-text {
    color: #FFFFFF;
    mix-blend-mode: difference;
    position: relative;
    z-index: 10;
}

/* --- PREMIUM WHITE GLASSMORPHISM (Air, Oil, and Water Blended Glass) --- */
.showcase-glass-panel {
    background: 
        /* Air Layer: 40% representation (crisp, highly transparent frosted light) */
        linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.35) 40%),
        /* Oil Layer: 30% representation (slight iridescent warm sheen) */
        linear-gradient(135deg, rgba(255, 235, 215, 0.12) 0%, rgba(240, 220, 255, 0.1) 30%),
        /* Water Layer: 40% representation (cool fluid light blue/cyan refraction) */
        linear-gradient(225deg, rgba(224, 242, 254, 0.4) 0%, rgba(240, 249, 255, 0.25) 100%);
    background-blend-mode: overlay, screen, normal;
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.03), 
        inset 0 1px 1px rgba(255, 255, 255, 0.65),
        0 1px 2px rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s ease, border 0.7s ease;
}

.showcase-glass-panel:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.06), 
        inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

/* --- EXTRACTED CUSTOM TECH SLIDER (Light Mode Adapted) --- */
.tech-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--track-bg);
}
.tech-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--track-fill);
    transition: all 0.2s ease;
    margin-top: -6px;
}
.tech-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* --- EXTRACTED 3D FLIP CARDS (For the Intelligence Vault) --- */
.flip-card {
    perspective: 1200px;
    background: transparent;
    height: 100%;
    z-index: 1;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { 
    transform: rotateY(-180deg); 
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
}
.flip-card-back { 
    transform: rotateY(180deg); 
    background: #1A1A1A; /* Charcoal back for contrast */
    color: #FFFFFF;
}

/* --- MINIMALIST SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* GSAP Start State */
.gsap-reveal {
    opacity: 0;
    transform: translateY(60px);
    visibility: hidden;
}

/* --- CUSTOM CURSOR --- */
body, a, button {
    cursor: none !important;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

#custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Disable custom cursor and restore default pointer on touch devices */
@media (pointer: coarse) and (hover: none) {
  #custom-cursor {
    display: none !important;
  }
  
  body {
    cursor: auto;
  }
}

/* --- SECURE DOCUMENT MODAL --- */
#document-modal {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}
#document-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- LAUNCHING SOON MARQUEE TICKER (Glossy Glassmorphism) --- */
.launch-ticker-container {
    width: 100vw;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-top: 2px solid rgba(234, 179, 8, 0.4);
    border-bottom: 2px solid rgba(234, 179, 8, 0.4);
    box-shadow: 
        0 12px 50px rgba(234, 179, 8, 0.06), 
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 22px 0;
    position: relative;
    z-index: 10;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.launch-ticker-item {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: #111113;
    display: flex;
    align-items: center;
    gap: 16px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 12px rgba(234, 179, 8, 0.2);
}
.launch-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #eab308;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    animation: simple-pulse 1.8s infinite ease-in-out;
}
@keyframes simple-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.75); box-shadow: 0 0 10px rgba(234, 179, 8, 0.6); }
    50% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 24px rgba(234, 179, 8, 1); }
}

/* --- ORGANIC OIL-WATER FLUID SHIELD --- */
.oil-water-shield {
    background: 
        /* SPECULAR WATER REFLECTION & GLOSS (High-frequency light refractions) */
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.4), transparent 35%),
        radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.3), transparent 40%),
        /* 50% SEAWATER REFRACTION (Cool fluid light blue/cyan) */
        linear-gradient(225deg, rgba(224, 242, 254, 0.18) 0%, rgba(240, 249, 255, 0.12) 100%),
        /* 50% ORGANIC OIL SLICK (Organic translucent warm oil layers) */
        linear-gradient(135deg, rgba(255, 235, 215, 0.08) 0%, rgba(240, 220, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 100%);
    background-blend-mode: screen, normal, normal, normal;
    backdrop-filter: blur(35px) saturate(145%);
    -webkit-backdrop-filter: blur(35px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.03), 
        inset 0 1px 1px rgba(255, 255, 255, 0.85), /* Specular bezel */
        0 1px 2px rgba(0, 0, 0, 0.01);
    padding: 64px 48px;
    position: relative;
    z-index: 10;
}

/* --- MOBILE RESPONSIVE WRAPPING SUITE --- */
.showcase-glass-panel {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

#document-modal pre, 
#document-modal code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    /* Prevent perspective or rotations on mobile for reliable responsive sizing */
    .perspective-\[1000px\] {
        perspective: none !important;
    }
    .flip-card {
        height: auto !important;
        min-height: 0 !important;
    }
    .flip-card-inner {
        transform: none !important;
        transform-style: flat !important;
        transition: none !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .flip-card:hover .flip-card-inner {
        transform: none !important;
    }
    .flip-card-front, .flip-card-back {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        opacity: 1 !important;
        border-radius: 32px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    }
    .flip-card-back {
        background: #1A1A1A !important;
        color: #FFFFFF !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}
