/* =================================================
   SMARTWEBS INNOVATIONS — Animations
   ================================================= */

/* Reveal on scroll — initial hidden state */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-text { display: block; }
.reveal-text .line, .reveal-text {
    overflow: hidden;
}

/* Section entrance stagger */
[style*="--i"] { transition-delay: calc(var(--i, 0) * 60ms); }

/* Floating icons — infinite */
@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-14px) rotate(4deg); }
}
.tech-item { animation: floatUp 6s ease-in-out infinite; animation-delay: calc(var(--i,0) * 200ms); }

/* Text reveal — hero lines */
.hero-title .line span, .hero-title .line em, .hero-title .line {
    display: inline-block;
}

/* Glass shine on hover */
.glass::after {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.06), transparent 30%);
    opacity: 0; transition: opacity .4s ease;
    pointer-events: none;
}
.glass:hover::after { opacity: 1; }

/* Shining border */
@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.card-shine-border { position: relative; }
.card-shine-border::before {
    background: linear-gradient(135deg, rgba(79,140,255,0.4), rgba(0,229,255,0.4), rgba(79,140,255,0.4));
    background-size: 200% 200%;
    animation: shine 3s linear infinite;
}

/* Tilt cards — vanillaTilt handles the transform */
.tilt { will-change: transform; }

/* Modal animation */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,5,14,0.72); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.modal-body { position: relative; z-index: 2; padding: 32px; max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; border-radius: 20px; animation: popIn .4s cubic-bezier(0.34,1.56,0.64,1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: #fff; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,0.1); }
.modal-loading { padding: 40px; text-align: center; color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
