/* ==========================================================================
   GUL Effects — scroll reveal, cursor glow, mouse trail, animations
   ========================================================================== */

/* ── Scroll Reveal ────────────────────────────────────────────────────────────── */
.gul-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gul-reveal.gul-revealed {
    opacity: 1;
    transform: translateY(0);
}

.gul-reveal--left  { transform: translateX(-40px); }
.gul-reveal--right { transform: translateX( 40px); }
.gul-reveal--left.gul-revealed,
.gul-reveal--right.gul-revealed { transform: translateX(0); }

.gul-reveal--scale {
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gul-reveal--scale.gul-revealed { transform: scale(1); }

.gul-reveal--delay-1 { transition-delay: 0.1s; }
.gul-reveal--delay-2 { transition-delay: 0.2s; }
.gul-reveal--delay-3 { transition-delay: 0.3s; }
.gul-reveal--delay-4 { transition-delay: 0.4s; }
.gul-reveal--delay-5 { transition-delay: 0.5s; }
.gul-reveal--delay-6 { transition-delay: 0.6s; }

/* ── Parallax Hero ────────────────────────────────────────────────────────── */
.gul-hero[data-parallax] { overflow: hidden; position: relative; }
.gul-hero[data-parallax] .gul-hero__bg {
    will-change: transform;
    backface-visibility: hidden;
}

/* ── Mouse Trail Canvas ───────────────────────────────────────────────────── */
#gul-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

/* ── Cursor Glow ─────────────────────────────────────────────────────────────── */
.gul-cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,224,255,.07) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: left 0.06s linear, top 0.06s linear;
}

/* ── Keyframe Animations ───────────────────────────────────────────────────── */
@keyframes gul-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gul-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes gul-pulse-ring {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,224,255,.4); }
    50%      { box-shadow: 0 0 0 14px rgba(0,224,255,0); }
}
@keyframes gul-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes gul-float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}

.gul-anim-fadeUp  { animation: gul-fadeUp  0.65s ease both; }
.gul-anim-fadeIn  { animation: gul-fadeIn  0.5s  ease both; }
.gul-anim-pulse   { animation: gul-pulse-ring 2s infinite; }
.gul-anim-float   { animation: gul-float  3s ease-in-out infinite; }
.gul-anim-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
    background-size: 200% auto;
    animation: gul-shimmer 2.5s linear infinite;
}

/* ── Placeholder Image Slots ────────────────────────────────────────────────── */
.gul-img-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.gul-img-placeholder::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-family: monospace;
    color: rgba(0,224,255,.6);
    border: 2px dashed rgba(0,224,255,.25);
    border-radius: 8px;
}
.gul-img-placeholder--square  { aspect-ratio: 1; }
.gul-img-placeholder--portrait { aspect-ratio: 3 / 4; }

/* ── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gul-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gul-anim-fadeUp,
    .gul-anim-fadeIn,
    .gul-anim-pulse,
    .gul-anim-float,
    .gul-anim-shimmer { animation: none; }
    #gul-trail-canvas,
    .gul-cursor-glow  { display: none; }
}

/* ── Mobile: disable desktop-only effects ───────────────────────────────── */
@media (max-width: 768px) {
    #gul-trail-canvas,
    .gul-cursor-glow { display: none; }
}
