/**
 * Premium Design CSS - Big Brand Design System
 * 
 * Additional styles for premium templates with animations and effects
 * 
 * @package Mass Pages by Backlink Hut
 * @version 2.0
 */

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.apc-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.apc-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.apc-animate-delay-1 { transition-delay: 0.1s; }
.apc-animate-delay-2 { transition-delay: 0.2s; }
.apc-animate-delay-3 { transition-delay: 0.3s; }
.apc-animate-delay-4 { transition-delay: 0.4s; }

/* ============================================
   HOVER EFFECTS
   ============================================ */

.apc-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apc-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.apc-hover-scale {
    transition: transform 0.3s ease;
}

.apc-hover-scale:hover {
    transform: scale(1.05);
}

.apc-hover-glow {
    transition: box-shadow 0.3s ease;
}

.apc-hover-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

.apc-btn-animated {
    position: relative;
    overflow: hidden;
}

.apc-btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.apc-btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

.apc-btn-shine {
    position: relative;
    overflow: hidden;
}

.apc-btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.apc-btn-shine:hover::after {
    left: 100%;
}

/* ============================================
   CARD EFFECTS
   ============================================ */

.apc-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.apc-card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.apc-card-gradient-border {
    position: relative;
    background: #fff;
    border-radius: 16px;
}

.apc-card-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apc-card-gradient-border:hover::before {
    opacity: 1;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

.apc-loading {
    position: relative;
}

.apc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.apc-skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.apc-parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

.apc-text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apc-text-shimmer {
    background: linear-gradient(
        90deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #764ba2 75%,
        #667eea 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.apc-text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

.apc-bg-gradient-animate {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.apc-bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

/* ============================================
   STICKY ELEMENTS
   ============================================ */

.apc-sticky {
    position: sticky;
    top: 20px;
}

/* ============================================
   MODAL/OVERLAY EFFECTS
   ============================================ */

.apc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.apc-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   PREMIUM UTILITIES
   ============================================ */

.apc-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.apc-glass-dark {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.apc-shadow-soft {
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.02),
        0 8px 16px rgba(0,0,0,0.04),
        0 16px 32px rgba(0,0,0,0.06);
}

.apc-shadow-strong {
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.05),
        0 12px 24px rgba(0,0,0,0.1),
        0 24px 48px rgba(0,0,0,0.15);
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .apc-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}
