/* ============================================
   DUBAI TRAPÉZVESZTŐ – Animációk v2.0
   Prémium szekció-animációk és mikro-effektek
   ============================================ */

/* -----------------------------------------------
   ALAP KEYFRAME-EK
----------------------------------------------- */

/* Általános felfedő animációk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(48px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes revealClip {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    to {
        clip-path: inset(0 0% 0 0);
        opacity: 1;
    }
}

/* Szöveg soronkénti reveal */
@keyframes slideUpLine {
    from {
        transform: translateY(110%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Számláló felvillantás */
@keyframes flashRed {

    0%,
    100% {
        color: var(--color-primary);
    }

    50% {
        color: #fff;
    }
}

/* Forgás */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Pulzálás */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(218, 41, 28, 0.4);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 14px rgba(218, 41, 28, 0);
    }
}

@keyframes pulseLine {

    0%,
    100% {
        width: 56px;
    }

    50% {
        width: 96px;
    }
}

/* Hero lebegő részecskék */
@keyframes floatDot {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.5;
    }

    33% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }

    66% {
        transform: translateY(10px) translateX(-8px) scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.5;
    }
}

/* Hero cím animáció szavakra */
@keyframes heroWordIn {
    from {
        transform: translateY(100%) rotateX(-90deg);
        opacity: 0;
    }

    to {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

/* Shake (validációs hiba) */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

/* Piros vonal felhúzódás */
@keyframes lineGrow {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Ikonok ugrálása */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* Kártya flip-in */
@keyframes cardFlipIn {
    from {
        transform: perspective(600px) rotateY(-25deg) translateY(20px);
        opacity: 0;
    }

    to {
        transform: perspective(600px) rotateY(0deg) translateY(0);
        opacity: 1;
    }
}

/* Lüktetés (badge) */
@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-20deg);
    }

    70% {
        transform: scale(1.15) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Csúszó aláhúzás */
@keyframes underlineSlide {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Page loader spinner */
@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* Hullámos háttér (newsletter) */
@keyframes waveMove {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* -----------------------------------------------
   PAGE LOADER
----------------------------------------------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #141414;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(218, 41, 28, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spinLoader 0.75s linear infinite;
}

.loading-overlay::after {
    content: 'DUBAI TRAPÉZ';
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

/* -----------------------------------------------
   HERO SZEKCIÓ ANIMÁCIÓK
----------------------------------------------- */

/* Lebegő geometriai díszítő elemek */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0;
}

/* Piros oldalsáv dekoráció */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(), transparent);
    z-index: 2;
    animation: fadeInDown 1.2s ease 0.5s both;
}

/* Hero tartalom animált belépése */
.hero-content .breadcrumb {
    animation: fadeInDown 0.7s ease 0.3s both;
}

.hero-content .hero-title {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-content .hero-subtitle {
    /* Kikapcsolva – typewriter effekt veszi át (extras.js) */
    /* animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both; */
    opacity: 1;
}

.hero-content .hero-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}

/* Hero gomb hover pulzálás */
.btn-primary:hover {
    animation: pulse 0.6s ease;
}

/* Scroll jelző bouncing */
.hero-scroll-indicator {
    animation: bounce 2.5s ease-in-out 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* -----------------------------------------------
   STATS SÁV
----------------------------------------------- */
.stats-bar {
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 41, 28, 0.08), transparent);
    animation: shimmerStat 3s ease-in-out 2s infinite;
}

@keyframes shimmerStat {
    from {
        left: -60%;
    }

    to {
        left: 110%;
    }
}

/* Stat elemek – Intersection Observer adja */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) {
    transition-delay: 0.0s;
}

.stat-item:nth-child(2) {
    transition-delay: 0.15s;
}

.stat-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-item:nth-child(4) {
    transition-delay: 0.45s;
}

/* Szám beúszás után felvillant */
.stat-number.counted {
    animation: flashRed 0.4s ease;
}

/* -----------------------------------------------
   SZEKCIÓ FEJLÉCEK
----------------------------------------------- */
.section-header {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-header.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

/* A piros vonal az animált section-tag-eken */
.section-tag.anim-visible::before,
.section-tag.anim-visible::after {
    animation: lineGrow 0.5s ease 0.4s both;
}

/* -----------------------------------------------
   TERMÉKKÁRTYÁK
----------------------------------------------- */
.product-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
    /* hover felülírja */
}

.product-card.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Kártyákon belüli badge pop animáció */
.product-badge {
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

/* Specifikáció ikonok hover animációja */
.spec-item:hover i {
    animation: iconBounce 0.5s ease;
}

/* Gomb hover effekt kártyákon */
.product-card .btn-dark {
    position: relative;
    overflow: hidden;
}

.product-card .btn-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.product-card .btn-dark:hover::after {
    transform: translateX(0);
}

/* -----------------------------------------------
   MIÉRT MI? SZEKCIÓ
----------------------------------------------- */
.why-us-content {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-us-content.anim-visible {
    opacity: 1;
    transform: translateX(0);
}

.why-us-image {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.why-us-image.anim-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Lista elemek szaggatott megjelenése */
.why-list li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-list li.anim-visible {
    opacity: 1;
    transform: translateX(0);
}

.why-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.why-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.why-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.why-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.why-list li:nth-child(5) {
    transition-delay: 0.5s;
}

/* Forgó jelvény – a Prémium kör */
.why-us-badge {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: opacity 0.6s ease 0.6s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
}

.why-us-image.anim-visible .why-us-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Lassan forgó jelvény folyamatosan */
@keyframes rotateSlowly {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* -----------------------------------------------
   SZOLGÁLTATÁS KÁRTYÁK
----------------------------------------------- */
.service-card {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.service-card.anim-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Szaggatott megjelenés */
.service-card:nth-child(1) {
    transition-delay: 0.0s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(5) {
    transition-delay: 0.4s;
}

.service-card:nth-child(6) {
    transition-delay: 0.5s;
}

/* Ikon hover animáció */
.service-card:hover .service-icon {
    animation: spinIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fényes csúszó shimmer overlay a hover-nél */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(218, 41, 28, 0.04) 60%, transparent 80%);
    transform: translateX(-100%) skewX(-10deg);
    transition: transform 0.6s ease;
}

.service-card:hover::after {
    transform: translateX(200%) skewX(-10deg);
}

/* -----------------------------------------------
   REFERENCIÁK
----------------------------------------------- */
.ref-card {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ref-card.anim-visible {
    opacity: 1;
    transform: scale(1);
}

.ref-card:nth-child(1) {
    transition-delay: 0.0s;
}

.ref-card:nth-child(2) {
    transition-delay: 0.15s;
}

.ref-card:nth-child(3) {
    transition-delay: 0.3s;
}

.ref-card:nth-child(4) {
    transition-delay: 0.45s;
}

/* Overlay mindig actív, intensity hover-en nő */
.ref-overlay {
    opacity: 0.25;
    transition: opacity 0.4s ease;
}

.ref-card:hover .ref-overlay {
    opacity: 1;
}

/* Kép zoom */
.ref-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ref-card:hover img {
    transform: scale(1.08);
}

/* Overlay szöveg slide-up */
.ref-overlay h4 {
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.ref-card:hover .ref-overlay h4 {
    transform: translateY(0);
}

.ref-overlay p {
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
}

.ref-card:hover .ref-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* -----------------------------------------------
   AJÁNLATKÉRÉS SZEKCIÓ
----------------------------------------------- */
.quote-info {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.quote-info.anim-visible {
    opacity: 1;
    transform: translateX(0);
}

.quote-form-wrapper {
    opacity: 0;
    transform: translateX(32px) translateY(8px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    /* Lebegő árnyék animáció */
}

.quote-form-wrapper.anim-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Kapcsolati itemek szaggatott megjelenése */
.contact-item {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-item.anim-visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-item:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-item:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-item:nth-child(3) {
    transition-delay: 0.3s;
}

.contact-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* Form inputok fókusz animáció */
.form-group input,
.form-group select,
.form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
}

/* Submit gomb shimmer */
#form-submit-btn {
    position: relative;
    overflow: hidden;
}

#form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: shimmerBtn 3s ease-in-out 2s infinite;
}

@keyframes shimmerBtn {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* -----------------------------------------------
   HÍRLEVÉL SZEKCIÓ
----------------------------------------------- */
.newsletter {
    background-size: 300% 300%;
    background-image: linear-gradient(135deg,
            #DA291C 0%,
            #c0201a 35%,
            #e63325 65%,
            #DA291C 100%);
    animation: waveMove 8s ease infinite;
}

.newsletter-text h3 {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.newsletter-text h3.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-text p {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.newsletter-text p.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-form {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.newsletter-form.anim-visible {
    opacity: 1;
    transform: translateX(0);
}

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
.footer-col {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-col.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-col:nth-child(1) {
    transition-delay: 0.0s;
}

.footer-col:nth-child(2) {
    transition-delay: 0.1s;
}

.footer-col:nth-child(3) {
    transition-delay: 0.2s;
}

.footer-col:nth-child(4) {
    transition-delay: 0.3s;
}

/* Social gombok hover rotáció */
.footer-socials a:hover,
.header-top-socials a:hover {
    transform: rotate(360deg) scale(1.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

.footer-socials a,
.header-top-socials a {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* -----------------------------------------------
   NAVIGÁCIÓ
----------------------------------------------- */

/* Logó hover effekt */
.logo:hover .logo-icon {
    animation: spinIn 0.4s ease;
}

/* Hamburger animáció már a main CSS-ben van */

/* Scroll spy – aktív link */
.nav-link.active-nav {
    color: var(--color-primary);
}

.nav-link.active-nav::after {
    transform: scaleX(1);
}

/* -----------------------------------------------
   BACK TO TOP
----------------------------------------------- */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top:hover {
    animation: pulse 0.5s ease;
}

/* -----------------------------------------------
   ÁLTALÁNOS PARALLAX OVERLAY
----------------------------------------------- */
[data-parallax] {
    will-change: transform;
}

/* -----------------------------------------------
   SMOOTH REVEAL – általános osztályok
   (megtartjuk visszafelé kompatibilitásért)
----------------------------------------------- */
.fade-in-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* -----------------------------------------------
   SPECIÁLIS HOVER EFFEKTEK
----------------------------------------------- */

/* Navigáció link hover: szöveg színváltás */
.nav-link {
    transition: color 0.25s ease;
}

/* Gomb sarok-animáció (border sweep) */
.btn {
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover::before {
    opacity: 1;
}

/* Termék szűrő aktív gyűrű */
.filter-btn.active {
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.25);
}

/* Spec sor hover */
.spec-item {
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-radius: 3px;
    padding: 2px 4px;
}

.product-card:hover .spec-item:hover {
    background: rgba(218, 41, 28, 0.05);
    padding-left: 8px;
}

/* Statisztika szám pulse ha scrollba kerül */
.stat-number {
    display: inline-block;
    transition: color 0.3s ease;
}