/* ==========================================================================
   GLOBÁLIS BEÁLLÍTÁSOK
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0d6efd;
    --dark-box: rgba(0, 0, 0, 0.04); 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    overflow-x: hidden;
    padding-top: 0; 
}

/* ==========================================================================
   HERO SZEKCIÓ (TÖKÉLETESEN KÖZÉPRE IGAZÍTVA)
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at top left, #ffffff 0%, #e2e8f0 100%);
    position: relative;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#heroCarousel, .carousel-inner {
    flex: 1;
    height: 100%;
    width: 100%;
}

.carousel-item {
    height: 100%;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: flex;
    align-items: center;
}

.hero-container-flex {
    height: 100%;
    width: 100%;
}

.hero-content-box {
    background: var(--dark-box);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    text-align: left;
    overflow: hidden;
    max-width: 850px; 
}

.hero-external-icon {
    font-size: 14rem;
    color: var(--primary-color);
    opacity: 0.12; 
    transform: rotate(-10deg);
    filter: drop-shadow(0 10px 20px rgba(13, 110, 253, 0.15));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #333;
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
}

/* ==========================================================================
   KÁRTYÁK ANIMÁCIÓJA ÉS HOVER EFFEKTEK
   ========================================================================== */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 45px rgba(0,0,0,0.1) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
}

.feature-icon {
    transition: all 0.4s ease;
}

.card:hover .feature-icon {
    transform: scale(1.15);
    color: #0b5ed7 !important; 
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.hover-primary:hover {
    color: #0d6efd !important;
}

/* ==========================================================================
   ANIMÁCIÓK (SLIDER KOMPATIBILIS BEÚSZÁS & HERO LÉPCSŐZETES)
   ========================================================================== */
.hero-content-box {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.carousel-item.active .hero-content-box {
    opacity: 1;
    transform: translateY(0);
}

.hero-step-1, .hero-step-2, .hero-step-3, .hero-step-4, .hero-step-5 {
    opacity: 0;
    transform: translateY(30px);
}

.carousel-item.active .hero-step-1 { opacity: 1; transform: translateY(0); transition: all 0.5s ease-out 0.15s; }
.carousel-item.active .hero-step-2 { opacity: 1; transform: translateY(0); transition: all 0.5s ease-out 0.30s; }
.carousel-item.active .hero-step-3 { opacity: 1; transform: translateY(0); transition: all 0.5s ease-out 0.45s; }
.carousel-item.active .hero-step-4 { opacity: 1; transform: translateY(0); transition: all 0.5s ease-out 0.60s; }

/* Statikus hero esetén (pl. Kapcsolat oldal) */
.hero-reveal.active .hero-step-1 { animation: fadeUpStep 0.8s ease-out forwards; animation-delay: 0.1s; }
.hero-reveal.active .hero-step-2 { animation: fadeUpStep 0.8s ease-out forwards; animation-delay: 0.3s; }
.hero-reveal.active .hero-step-3 { animation: fadeUpStep 0.8s ease-out forwards; animation-delay: 0.5s; }
.hero-reveal.active .hero-step-4 { animation: fadeUpStep 0.8s ease-out forwards; animation-delay: 0.7s; }
.hero-reveal.active .hero-step-5 { animation: fadeUpStep 1.2s ease-out forwards; animation-delay: 0.9s; }

@keyframes fadeUpStep {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-external-icon {
    opacity: 0;
    transform: rotate(-30deg) scale(0.8) translateX(50px);
    transition: all 1s ease-out;
}

.carousel-item.active .hero-external-icon {
    opacity: 0.5;
    transform: rotate(-10deg) scale(1) translateX(0);
    transition-delay: 0.3s;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   LÁBLÉC, GÖRDÍTÉS ÉS COOKIE SÁV (GLOBÁLIS)
   ========================================================================== */
footer {
    margin-top: 0 !important;
}

.footer-link:hover {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

#backToTop.show {
    opacity: 0.9 !important;
    display: block !important;
}

#backToTop:hover {
    opacity: 1 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4) !important;
}

#cookieConsentBanner {
    transition: transform 0.5s ease-in-out;
    transform: translateY(100%);
}
#cookieConsentBanner.show {
    transform: translateY(0);
}

/* ==========================================================================
   MOBIL NÉZET
   ========================================================================== */
@media (max-width: 991px) {
    .hero-container-flex {
        flex-direction: column-reverse; 
        text-align: center;
        justify-content: center;
    }

    .hero-content-box {
        text-align: center;
        margin-top: 30px;
        max-width: 100%;
        padding: 30px 20px !important;
    }

    .hero-external-icon {
        font-size: 8rem;
        margin-bottom: 20px;
    }

    .display-4 { font-size: 2.2rem; }
    
    .hero-step-4 { flex-direction: column; width: 100%; }
    .hero-step-4 .btn { width: 100%; }
}