/**
 * QUACKWEB PREMIUM EFFECTS - STYLES
 * Dodatkowe style dla efektów wizualnych
 */

/* ===== MOUSE FOLLOWER ===== */
.mouse-follower {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease, background 0.1s ease;
}

.mouse-follower.active {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 70%);
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cta-button,
.submit-btn,
.filter-btn {
    position: relative;
    overflow: hidden;
}

/* ===== SMOOTH CARD TRANSITIONS (NO 3D TILT) ===== */
.service-card,
.portfolio-item,
.ai-project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* ===== GLOW EFFECTS ===== */
.section-title {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                 0 0 40px rgba(212, 175, 55, 0.2);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                     0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.5),
                     0 0 60px rgba(212, 175, 55, 0.3),
                     0 0 90px rgba(212, 175, 55, 0.15);
    }
}

.hero-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-title .highlight {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                 0 0 60px rgba(212, 175, 55, 0.4);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                     0 0 60px rgba(212, 175, 55, 0.4);
    }
    50% {
        text-shadow: 0 0 40px rgba(212, 175, 55, 1),
                     0 0 80px rgba(212, 175, 55, 0.6),
                     0 0 120px rgba(212, 175, 55, 0.3);
    }
}

/* Glow on service icons */
.service-icon {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: filter 0.4s ease;
}

.service-card:hover .service-icon {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6))
            drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
}

/* Glow on stat numbers */
.stat-number {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Button glow effect - REMOVED, styles moved to style.css */

/* ===== TEXT REVEAL ANIMATION ===== */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ENHANCED HOVER STATES ===== */
.service-card,
.portfolio-item,
.ai-project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    filter: blur(1px);
}

/* ===== MAGNETIC BUTTONS - REMOVED, styles in style.css ===== */

/* ===== ANIMATED UNDERLINES ===== */
.nav-menu a {
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    width: 55%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-yellow),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 1.5s ease;
}

.nav-menu a:hover::before {
    transform: translateX(100%);
}

/* ===== GLITCH EFFECT ON HOVER (opcjonalny) ===== */
.hero-title:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* ===== PULSING ELEMENTS ===== */
.stat-number {
    animation: pulse 4s ease-in-out infinite;
}

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

/* ===== HOVER LIFT EFFECT ===== */
.client-logo {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease,
                box-shadow 0.4s ease;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.1);
    filter: grayscale(0%) brightness(1.2);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

/* ===== GRADIENT TEXT ===== */
.section-title {
    background: linear-gradient(135deg,
        #ffffff 0%,
        #d4af37 50%,
        #e8c547 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

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

/* ===== SUBTLE BORDER GLOW ===== */
.service-card,
.portfolio-item,
.ai-project-card {
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.service-card:hover,
.portfolio-item:hover,
.ai-project-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2),
                0 0 40px rgba(212, 175, 55, 0.1),
                inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* ===== SPOTLIGHT EFFECT ===== */
.portfolio-item,
.service-card {
    position: relative;
    overflow: hidden;
}

.portfolio-item::after,
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::after,
.service-card:hover::after {
    opacity: 1;
}

/* ===== ENHANCED SHADOWS - REMOVED, styles in style.css ===== */

/* ===== SMOOTH TRANSITIONS FOR ALL ===== */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SCROLL INDICATOR - PRZYKLEJONY DO DNA STRONY ===== */
.scroll-indicator-fixed {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    z-index: 9998;
    animation: scroll-indicator-pulse 2s ease-in-out infinite;
    pointer-events: all;
    cursor: pointer;
    /* Smooth transitions dla wszystkiego */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.scroll-indicator-fixed:hover {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator-fixed:active {
    transform: translateX(-50%) scale(0.95);
}

.scroll-indicator-fixed::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-yellow);
    border-radius: 50%;
    animation: scroll-dot 2s ease-in-out infinite;
}

/* Tekst "Przewiń w dół" */
.scroll-text-fixed {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 9998;
    pointer-events: all;
    cursor: pointer;
    animation: scroll-indicator-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    /* Smooth transitions */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease,
                text-shadow 0.3s ease;
}

.scroll-text-fixed:hover {
    color: rgba(212, 175, 55, 1);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateX(-50%) scale(1.05);
}

.scroll-text-fixed:active {
    transform: translateX(-50%) scale(0.95);
}

/* Ukryj gdy użytkownik przewinie stronę - z smooth animation */
.scroll-indicator-fixed.hidden,
.scroll-indicator-fixed.hidden:hover {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    animation: fadeOutScroll 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scroll-text-fixed.hidden,
.scroll-text-fixed.hidden:hover {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    animation: fadeOutScroll 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animacje */
@keyframes scroll-indicator-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeOutScroll {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes scroll-dot {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* ===== LOADING ANIMATION FOR IMAGES ===== */
img {
    animation: fade-in-image 0.6s ease;
}

@keyframes fade-in-image {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.service-card,
.portfolio-item,
.ai-project-card,
.cta-button,
.submit-btn {
    will-change: transform, box-shadow;
}

/* Reset will-change after animation */
.service-card:not(:hover),
.portfolio-item:not(:hover),
.ai-project-card:not(:hover) {
    will-change: auto;
}

/* ===== ANIMATED LOGO ===== */
.logo {
    position: relative;
    transition: all 0.4s ease;
}

.logo::before {
    content: '🦆';
    position: absolute;
    left: -30px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.logo:hover::before {
    animation: quack 0.5s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

@keyframes quack {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    50% {
        transform: scale(0.9) rotate(10deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Disable heavy effects on mobile */
    .mouse-follower {
        display: none !important;
    }

    /* Simplify animations */
    .service-card,
    .portfolio-item,
    .ai-project-card {
        transform: none !important;
    }

    /* Reduce glow effects */
    .hero-title .highlight {
        animation: none;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .mouse-follower,
    #particles-canvas,
    .custom-cursor,
    .scroll-indicator-fixed,
    .scroll-text-fixed {
        display: none !important;
    }
}
