/* ================================================================
   SheraAI International — Premium Enhancements v2 | shera-ai.com
   Elevating the .com site above sherapk with premium effects
   ================================================================ */

/* ── Text Scramble Effect ── */
.text-scramble { display: inline-block; }
.text-scramble .char { display: inline-block; transition: opacity 0.1s; }

/* ── Cinematic Curtain Reveal ── */
.curtain-reveal {
    position: fixed; inset: 0; z-index: 100000;
    background: #030014; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}
.curtain-reveal.loaded { transform: scaleY(0); }

/* ── Interactive WebGL/Canvas Background ── */
.interactive-bg {
    position: fixed; inset: 0; z-index: -3; pointer-events: none; width: 100%; height: 100%;
}

/* ── Animated Gradient Mesh Background ── */
.gradient-mesh {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(at 20% 20%, rgba(124,77,255,0.35) 0%, transparent 50%),
        radial-gradient(at 80% 10%, rgba(0,229,255,0.25) 0%, transparent 50%),
        radial-gradient(at 50% 100%, rgba(255,107,157,0.2) 0%, transparent 50%),
        radial-gradient(at 10% 80%, rgba(124,77,255,0.2) 0%, transparent 40%),
        radial-gradient(at 90% 90%, rgba(0,229,255,0.15) 0%, transparent 40%);
    animation: mesh-shift 15s ease-in-out infinite alternate;
}
@keyframes mesh-shift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
    100% { filter: hue-rotate(-10deg); }
}

/* ── Premium Reveal Animations ── */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* ── Stagger Delays ── */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Premium Card Hover Effects ── */
.product-card, .glass-card, .customer-card, .showcase-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
}
.product-card:hover, .customer-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(124, 77, 255, 0.3) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px rgba(124, 77, 255, 0.08) !important;
}
.showcase-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35) !important;
}

/* ── CSS Particles (replacing canvas) ── */
.css-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.css-particle {
    position: absolute; width: 2px; height: 2px;
    border-radius: 50%; opacity: 0.3;
    will-change: transform;
    animation: css-float var(--dur, 20s) linear infinite;
}
.css-particle:nth-child(odd) { background: rgba(124,77,255,0.6); box-shadow: 0 0 4px rgba(124,77,255,0.3); }
.css-particle:nth-child(even) { background: rgba(0,229,255,0.5); box-shadow: 0 0 4px rgba(0,229,255,0.3); }
.css-particle:nth-child(3n) { background: rgba(255,107,157,0.4); width: 1.5px; height: 1.5px; opacity: 0.2; }
@keyframes css-float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(var(--dx, 30px), var(--dy, -50px)); }
    50% { transform: translate(var(--dx2, -20px), var(--dy2, 40px)); }
    75% { transform: translate(var(--dx3, 50px), var(--dy3, -30px)); }
    100% { transform: translate(0, 0); }
}

/* ── Scroll Progress ── */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 10001;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transform-origin: left; transform: scaleX(0);
    will-change: transform; box-shadow: 0 0 12px var(--primary);
}

/* ── Cursor Glow Enhancement ── */
.cursor-glow {
    position: fixed; width: 400px; height: 400px;
    border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(124,77,255,0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%); opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
    will-change: left, top;
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 46px; height: 46px;
    background: rgba(7,11,26,0.8); border: 1px solid var(--glass-border);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--gray-300); font-size: 1rem; cursor: pointer;
    z-index: 900; opacity: 0; transform: translateY(20px);
    transition: all 0.3s; backdrop-filter: blur(12px);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
    background: rgba(124,77,255,0.15); border-color: var(--primary);
    color: var(--primary-light); transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124,77,255,0.15);
}

/* ── Magnetic Button Hover ── */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0); animation: ripple-out 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-out { to { transform: scale(4); opacity: 0; } }

/* ── Footer Enhancements ── */
.footer {
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, transparent, rgba(7,11,26,0.5));
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer-logo img { width: 40px; height: 40px; }
.footer-tagline { font-size: 0.9rem; color: var(--gray-400); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--glass-white); border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--gray-400); transition: all 0.3s; font-size: 0.95rem;
}
.footer-social a:hover {
    background: rgba(124,77,255,0.1); border-color: var(--primary);
    color: var(--primary-light); transform: translateY(-3px) scale(1.1);
}
.footer-links h4 {
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
    color: var(--white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
    font-size: 0.9rem; color: var(--gray-400); transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 6px;
}
.footer-links li a:hover { color: var(--white); transform: translateX(4px); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 24px; border-top: 1px solid var(--glass-border); flex-wrap: wrap; gap: 12px;
}
.footer-copyright { font-size: 0.8rem; color: var(--white); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--white); transition: color 0.3s; }
.footer-legal a:hover { color: var(--primary-light); }

/* ── Premium Badge Pulse ── */
@keyframes badge-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(124,77,255,0.5); } 50% { box-shadow: 0 0 0 8px rgba(124,77,255,0); } }
.product-badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #00E5FF; margin-right: 4px; animation: badge-glow 2s ease infinite; display: inline-block; }

/* ── Responsive Overrides ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cursor-glow { display: none; }
}
