/* ============================================
   DUBA TRAPÉZ – Extra Prémium Effektek v2.0
   LÁTVÁNYOS, SZEMBETŰNŐ animációk & vizuális változások
   ============================================ */

/* -----------------------------------------------
   1. SCROLL PROGRESS BAR – tetején, jól látható
----------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #DA291C, #ff6b5a, #ffd700, #ff6b5a, #DA291C);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 10000;
    transition: width 0.05s linear;
    box-shadow: 0 0 15px rgba(218, 41, 28, 0.8), 0 0 30px rgba(218, 41, 28, 0.4);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* -----------------------------------------------
   2. HERO – ANIMATED PARTICLES CANVAS
----------------------------------------------- */
#hero-particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    z-index: 2 !important;
}

/* -----------------------------------------------
   3. STATS BAR – GLOW & NEON EFFEKT
----------------------------------------------- */
.stats-bar {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%) !important;
    position: relative;
    overflow: hidden;
}

.stats-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 41, 28, 0.1), transparent);
    animation: statsGlowSweep 4s ease-in-out infinite;
}

@keyframes statsGlowSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.stat-number {
    text-shadow: 0 0 20px rgba(218, 41, 28, 0.5), 0 0 40px rgba(218, 41, 28, 0.2) !important;
}

.stat-item {
    border-right-color: rgba(218, 41, 28, 0.15) !important;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #DA291C, transparent);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(218, 41, 28, 0.6);
}

.stat-item.anim-visible::after {
    width: 80%;
}

/* -----------------------------------------------
   4. TERMÉKKÁRTYÁK – DRÁMAI HOVER
----------------------------------------------- */
.product-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border: 1px solid transparent !important;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(218, 41, 28, 0.15), 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(218, 41, 28, 0.3) !important;
}

/* Animált border gradient a hoveren */
.product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #DA291C, #ff6b5a, #DA291C, transparent, #DA291C);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderGlowRotate 3s ease infinite;
}

.product-card:hover::before {
    opacity: 1;
}

@keyframes borderGlowRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Fénycsík effekt – végigfut a kártyán hoverre */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.product-card:hover::after {
    animation: cardShine 0.8s ease forwards;
}

@keyframes cardShine {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

/* Kép zoom erősebb + filter effekt */
.product-card:hover .product-card-image img {
    transform: scale(1.12) !important;
    filter: brightness(1.05) contrast(1.05);
}

/* -----------------------------------------------
   5. SZOLGÁLTATÁS KÁRTYÁK – GLASSMORPHISM
----------------------------------------------- */
.services {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 50%, #f0f0f0 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Rács mintázat háttér */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(218, 41, 28, 0.06) 1px, transparent 0);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(218, 41, 28, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 24px 64px rgba(218, 41, 28, 0.12), 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(218, 41, 28, 0.25) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Ikon konténer – üveg effekt */
.service-icon {
    background: linear-gradient(135deg, rgba(218, 41, 28, 0.12), rgba(218, 41, 28, 0.04)) !important;
    border: 1px solid rgba(218, 41, 28, 0.12);
    box-shadow: 0 4px 20px rgba(218, 41, 28, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(218, 41, 28, 0.2);
}

/* -----------------------------------------------
   6. SVG WAVE ELVÁLASZTÓK – NAGY, LÁTHATÓ
----------------------------------------------- */
/* Section divider – ELTÁVOLÍTVA */
.section-divider {
    display: none !important;
}

/* -----------------------------------------------
   7. FLOATING DECORÁCIÓ – nagy, mozgó háttér elemek
----------------------------------------------- */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border: 2px solid rgba(218, 41, 28, 0.06);
    animation: floatShape 20s ease-in-out infinite;
    opacity: 0.4;
}

.floating-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 3%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-color: rgba(218, 41, 28, 0.08);
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 55%;
    right: 5%;
    border-radius: 50%;
    border-color: rgba(218, 41, 28, 0.05);
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 90px;
    height: 90px;
    bottom: 12%;
    left: 10%;
    transform: rotate(45deg);
    animation-delay: -10s;
}

.floating-shape:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 25%;
    right: 12%;
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    animation-delay: -7.5s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(90deg);
    }

    50% {
        transform: translate(-15px, 20px) rotate(180deg);
    }

    75% {
        transform: translate(25px, 15px) rotate(270deg);
    }
}

/* Morphing blob háttér */
.blob-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 30% 70% 53% 47% / 26% 46% 54% 74%;
    background: linear-gradient(135deg, rgba(218, 41, 28, 0.06), rgba(218, 41, 28, 0.02));
    filter: blur(60px);
    animation: morphBlob 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes morphBlob {

    0%,
    100% {
        border-radius: 30% 70% 53% 47% / 26% 46% 54% 74%;
        transform: rotate(0deg) scale(1);
    }

    33% {
        border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
        transform: rotate(120deg) scale(1.15);
    }

    66% {
        border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
        transform: rotate(240deg) scale(0.9);
    }
}

/* -----------------------------------------------
   8. REFERENCIA SLIDER ENHANCEMENT
----------------------------------------------- */
.references {
    background: linear-gradient(135deg, #1a1a2e 0%, #141414 50%, #1a1a2e 100%) !important;
    position: relative;
}

.references .section-tag {
    color: rgba(218, 41, 28, 0.8) !important;
}

.references .section-title {
    color: #fff !important;
}

.references .section-subtitle {
    color: rgba(255, 255, 255, 0.65) !important;
}

.references h1 {
    color: var(--color-primary) !important;
    text-shadow: 0 0 30px rgba(218, 41, 28, 0.3);
}

.ref-slide {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ref-slide:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(218, 41, 28, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ref-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(218, 41, 28, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.ref-slide:hover::after {
    opacity: 1;
}

.ref-slide img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.ref-slide:hover img {
    transform: scale(1.15) !important;
}

/* Slider dots stílus javítás */
.slider-dot {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.slider-dot.active {
    background: var(--color-primary) !important;
    box-shadow: 0 0 12px rgba(218, 41, 28, 0.5);
}

/* -----------------------------------------------
   9. MAP SZEKCIÓ – NEON KERET  
----------------------------------------------- */
.map-section {
    background: linear-gradient(180deg, #f2f2f2 0%, #e8e8e8 100%);
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
}

.map-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #DA291C, transparent 40%, transparent 60%, #DA291C);
    background-size: 200% 200%;
    animation: mapBorderGlow 4s ease infinite;
    border-radius: 14px;
    z-index: -1;
}

@keyframes mapBorderGlow {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }
}

/* -----------------------------------------------
   10. ANIMATED GRADIENT HÁTTÉR SÁVOK
----------------------------------------------- */
.gradient-divider {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
            #DA291C 0%, #ff6b5a 25%, #ffd700 50%, #ff6b5a 75%, #DA291C 100%);
    background-size: 200% 100%;
    animation: dividerFlow 2s linear infinite;
    box-shadow: 0 0 20px rgba(218, 41, 28, 0.4), 0 0 40px rgba(218, 41, 28, 0.2);
}

@keyframes dividerFlow {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* -----------------------------------------------
   11. AJÁNLATKÉRÉS – PRÉMIUM HÁTTÉR
----------------------------------------------- */
.quote-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #141414 70%, #0a0a0a 100%) !important;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 41, 28, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.quote-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 41, 28, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Form stílus – prémium inputok */
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15), 0 4px 20px rgba(218, 41, 28, 0.1) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* -----------------------------------------------
   12. TYPEWRITER KURZOR
----------------------------------------------- */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--color-primary);
    margin-left: 3px;
    animation: blinkCursor 0.7s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 8px rgba(218, 41, 28, 0.5);
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* -----------------------------------------------
   13. WHY-US SZEKCIÓ – ERŐSEBB VIZUÁLIS HATÁS
----------------------------------------------- */
.why-us {
    position: relative;
    overflow: hidden;
}

.why-us-image img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.why-us-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

/* Dekoratív keret a kép mögött */
.why-us-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(218, 41, 28, 0.2);
    border-radius: inherit;
    z-index: -1;
    transition: all 0.6s ease;
}

.why-us-image:hover::before {
    top: -8px;
    right: -8px;
    border-color: rgba(218, 41, 28, 0.4);
}

/* Badge orbiting */
.why-us-badge {
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.why-us-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 30px rgba(218, 41, 28, 0.4) !important;
}

.why-us-badge::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px dashed rgba(218, 41, 28, 0.3);
    border-radius: 50%;
    animation: orbitDash 15s linear infinite;
}

@keyframes orbitDash {
    to {
        transform: rotate(360deg);
    }
}

/* -----------------------------------------------
   14. HEADER – GLASSMORPHISM SCROLL
----------------------------------------------- */
.site-header.scrolled .header-main {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

/* -----------------------------------------------
   15. FOOTER – PRÉMIUM HÁTTÉR
----------------------------------------------- */
.site-footer .footer-main {
    position: relative;
    overflow: hidden;
}

.site-footer .footer-main::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 41, 28, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer link hover glow */
.footer-contact-list a {
    transition: all 0.3s ease !important;
}

.footer-contact-list a:hover {
    color: var(--color-primary) !important;
    text-shadow: 0 0 10px rgba(218, 41, 28, 0.3);
}

/* -----------------------------------------------
   16. FILTER BAR – PRÉMIUM PILL GOMBOK
----------------------------------------------- */
.filter-btn {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.filter-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(218, 41, 28, 0.15);
}

.filter-btn.active {
    box-shadow: 0 8px 24px rgba(218, 41, 28, 0.3), 0 0 0 3px rgba(218, 41, 28, 0.15) !important;
    transform: translateY(-2px);
}

/* -----------------------------------------------
   17. COOKIE BAR – BLUR
----------------------------------------------- */
.cookie-bar {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* -----------------------------------------------
   18. CURSOR EFFEKTEK (Desktop)
----------------------------------------------- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle, rgba(218, 41, 28, 0.07) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 15px rgba(218, 41, 28, 0.6), 0 0 30px rgba(218, 41, 28, 0.3);
}

.cursor-dot.active {
    opacity: 1;
}

.cursor-dot.hover {
    width: 40px;
    height: 40px;
    background: rgba(218, 41, 28, 0.15);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(218, 41, 28, 0.4);
}

/* -----------------------------------------------
   19. ANIMATED NUMBER GLOW (stats)
----------------------------------------------- */
.stat-number.counted {
    text-shadow: 0 0 30px rgba(218, 41, 28, 0.8), 0 0 60px rgba(218, 41, 28, 0.4) !important;
}

/* -----------------------------------------------
   20. BACK TO TOP – PULSE GLOW
----------------------------------------------- */
.back-to-top {
    box-shadow: 0 4px 20px rgba(218, 41, 28, 0.3) !important;
}

.back-to-top:hover {
    box-shadow: 0 8px 30px rgba(218, 41, 28, 0.5), 0 0 0 6px rgba(218, 41, 28, 0.15) !important;
    transform: translateY(-3px) !important;
}

/* -----------------------------------------------
   21. SECTION COUNTER NUMBERS
----------------------------------------------- */
.section-counter-num {
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.04;
    position: absolute;
    top: -20px;
    right: 30px;
    font-family: var(--font-main);
    z-index: 0;
    background: linear-gradient(135deg, var(--color-primary), rgba(218, 41, 28, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

/* -----------------------------------------------
   PREFERS REDUCED MOTION & MOBILE
----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .cursor-glow,
    .cursor-dot,
    .floating-shape,
    .blob-bg,
    .scroll-progress {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {

    .cursor-glow,
    .cursor-dot {
        display: none !important;
    }

    .floating-shape {
        display: none;
    }

    .blob-bg {
        width: 300px;
        height: 300px;
    }

    .section-counter-num {
        font-size: 3rem;
    }
}