/* ============================================
   Masterlay Renovations - Animations
   ============================================ */

/* Preloader */
@keyframes loader-progress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes loader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Ken Burns - Hero Background */
@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.ken-burns {
    animation: ken-burns 20s ease-in-out infinite alternate;
}

/* Pulse Glow - CTA buttons */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 164, 22, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(250, 164, 22, 0); }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Scroll Indicator Bounce */
@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.bounce-down {
    animation: bounce-down 2s ease-in-out infinite;
}

/* Text Reveal Container */
.text-reveal-line {
    overflow: hidden;
    display: block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.text-reveal-line .line-inner {
    display: block;
    transform: translateY(110%);
}

/* Image Reveal */
.image-reveal {
    clip-path: inset(100% 0 0 0);
}

.image-reveal.revealed {
    clip-path: inset(0% 0 0 0);
}

.image-reveal img {
    transform: scale(1.2);
    transition: transform 1.2s var(--transition-smooth);
}

.image-reveal.revealed img {
    transform: scale(1);
}

/* Fade animation helper classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-up.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient-animated {
    background: linear-gradient(135deg, #FAA416, #FDB844, #FAA416);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-strong {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-outline {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(250, 164, 22, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-dot.active {
    width: 50px;
    height: 50px;
    background: rgba(250, 164, 22, 0.15);
}

.cursor-outline.active {
    width: 60px;
    height: 60px;
    border-color: rgba(250, 164, 22, 0.3);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

/* Decorative line draw */
.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.line-draw.animated {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2s var(--transition-smooth);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--color-dark-card) 25%, var(--color-dark-hover) 50%, var(--color-dark-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
