/* ==========================================================================
   Hero Slider - Companii
   ========================================================================== */

.filia-hero-slider {
    position: relative;
    width: 100%;
    height: var(--slider-height, 100vh);
    min-height: 600px;
    overflow: hidden;
    background: #111;
}

/* ---- Slides ---- */
.filia-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.filia-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
    display: flex;
    align-items: center;
}

.filia-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Overlay gradient */
.filia-hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Slide 1 — Training (red tones) */
.filia-hero-slide-1 .filia-hero-slide-overlay {
    background: linear-gradient(
        135deg,
        var(--slide-color, #ED1C24) 0%,
        #8b0000 30%,
        rgba(20, 0, 0, 0.95) 70%,
        rgba(10, 0, 0, 0.9) 100%
    );
    opacity: 0.93;
}

/* Slide 2 — CSR (deep blue/purple) */
.filia-hero-slide-2 .filia-hero-slide-overlay {
    background: linear-gradient(
        135deg,
        var(--slide-color, #1a1a2e) 0%,
        #16213e 30%,
        #0f3460 60%,
        rgba(10, 10, 30, 0.95) 100%
    );
    opacity: 0.93;
}

/* Slide 3 — 20% tax (warm burgundy) */
.filia-hero-slide-3 .filia-hero-slide-overlay {
    background: linear-gradient(
        135deg,
        var(--slide-color, #3d0c11) 0%,
        #6b1d2a 30%,
        #2c0a0e 60%,
        rgba(20, 5, 5, 0.95) 100%
    );
    opacity: 0.93;
}

/* When there's a background image, reduce overlay */
.filia-hero-slide[style*="background-image"] .filia-hero-slide-overlay {
    opacity: 0.8;
}

/* ---- Content ---- */
.filia-hero-slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 80px;
    opacity: 0;
    transform: translateY(40px);
}

.filia-hero-slide.is-active .filia-hero-slide-content {
    animation: heroSlideIn 0.9s 0.3s ease forwards;
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filia-hero-slide-label {
    display: inline-block;
    font-family: 'Anton', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-left: 40px;
    position: relative;
}

.filia-hero-slide-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.filia-hero-slide-title {
    font-family: 'Anton', 'Heebo', sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.22;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filia-hero-slide-subtitle {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(16px, 1.6vw, 19px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin: 0 0 35px 0;
    max-width: 480px;
}

.filia-hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #ED1C24;
    color: #fff;
    font-family: 'Heebo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filia-hero-slide-btn:hover {
    background: #fff;
    color: #ED1C24;
    transform: translateX(5px);
    text-decoration: none;
}

.filia-hero-slide-btn svg {
    transition: transform 0.3s ease;
}

.filia-hero-slide-btn:hover svg {
    transform: translateX(4px);
    stroke: #ED1C24;
}

/* ==========================================================================
   Visual Illustrations (right side)
   ========================================================================== */
.filia-hero-slide-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9) translateX(30px);
}

.filia-hero-slide.is-active .filia-hero-slide-visual {
    animation: visualFadeIn 1s 0.5s ease forwards;
}

@keyframes visualFadeIn {
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Common visual container */
.filia-visual-training,
.filia-visual-csr,
.filia-visual-tax {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Connecting lines between icons */
.filia-visual-training::after,
.filia-visual-csr::after,
.filia-visual-tax::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.015) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Main icon (center) */
.filia-visual-icon-main {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.filia-visual-icon-main i {
    font-size: 52px;
    color: #fff;
}

/* Slide 1 main icon */
.filia-visual-training .filia-visual-icon-main {
    background: radial-gradient(circle, rgba(237, 28, 36, 0.4), rgba(237, 28, 36, 0.15));
    border: 2px solid rgba(237, 28, 36, 0.4);
    box-shadow: 0 0 60px rgba(237, 28, 36, 0.2), inset 0 0 40px rgba(237, 28, 36, 0.1);
}

/* Slide 2 main icon */
.filia-visual-csr .filia-visual-icon-main {
    background: radial-gradient(circle, rgba(15, 52, 96, 0.5), rgba(22, 33, 62, 0.2));
    border: 2px solid rgba(100, 149, 237, 0.3);
    box-shadow: 0 0 60px rgba(100, 149, 237, 0.15), inset 0 0 40px rgba(100, 149, 237, 0.1);
}

/* Slide 3 main icon */
.filia-visual-tax .filia-visual-icon-main {
    background: radial-gradient(circle, rgba(107, 29, 42, 0.5), rgba(61, 12, 17, 0.2));
    border: 2px solid rgba(220, 100, 100, 0.3);
    box-shadow: 0 0 60px rgba(220, 100, 100, 0.15), inset 0 0 40px rgba(220, 100, 100, 0.1);
}

/* Floating icons */
.filia-visual-icon-float {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    z-index: 4;
}

.filia-visual-icon-float i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.filia-float-1 {
    top: 15%;
    right: 10%;
    animation: iconFloat1 6s ease-in-out infinite;
}

.filia-float-2 {
    bottom: 20%;
    left: 5%;
    animation: iconFloat2 7s ease-in-out infinite;
}

.filia-float-3 {
    top: 55%;
    right: 2%;
    animation: iconFloat3 5s ease-in-out infinite;
}

@keyframes iconFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, 15px) rotate(5deg); }
}

@keyframes iconFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, -10px) rotate(-5deg); }
}

@keyframes iconFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-8px, -12px); }
}

/* Rings */
.filia-visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filia-visual-ring.filia-ring-1 {
    width: 280px;
    height: 280px;
    animation: ringPulse 4s ease-in-out infinite;
}

.filia-visual-ring.filia-ring-2 {
    width: 380px;
    height: 380px;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.04);
    animation: ringSpin 20s linear infinite;
}

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

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

/* Particles (slide 1) */
.filia-visual-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(237, 28, 36, 0.5);
}

.filia-p1 {
    top: 25%;
    left: 20%;
    animation: particleDrift 8s ease-in-out infinite;
}

.filia-p2 {
    bottom: 30%;
    right: 15%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    animation: particleDrift 6s ease-in-out infinite reverse;
}

.filia-p3 {
    top: 40%;
    left: 35%;
    width: 8px;
    height: 8px;
    background: rgba(237, 28, 36, 0.3);
    animation: particleDrift 10s ease-in-out infinite;
}

@keyframes particleDrift {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    25% { transform: translate(15px, -20px); opacity: 1; }
    50% { transform: translate(-10px, 10px); opacity: 0.3; }
    75% { transform: translate(20px, 5px); opacity: 0.8; }
}

/* Hexagon (slide 2 - CSR) */
.filia-visual-hexagon {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 15%;
    right: 15%;
    z-index: 2;
}

.filia-visual-hexagon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(100, 149, 237, 0.08);
    border: 1px solid rgba(100, 149, 237, 0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexRotate 12s linear infinite;
}

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

/* 20% Badge (slide 3) */
.filia-visual-badge {
    position: absolute;
    bottom: 12%;
    left: 10%;
    font-family: 'Anton', sans-serif;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -2px;
    z-index: 1;
    animation: badgePulse 3s ease-in-out infinite;
}

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

/* ---- Navigation dots ---- */
.filia-hero-dots {
    position: absolute;
    bottom: 50px;
    left: 80px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.filia-hero-dot {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    transition: background 0.3s;
}

.filia-hero-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.filia-hero-dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #ED1C24;
    border-radius: 2px;
    transition: none;
}

.filia-hero-dot.is-active .filia-hero-dot-progress {
    animation: dotProgress 5s linear forwards;
}

@keyframes dotProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ---- Counter ---- */
.filia-hero-counter {
    position: absolute;
    bottom: 50px;
    right: 80px;
    z-index: 10;
    font-family: 'Anton', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.filia-hero-counter-current {
    font-size: 32px;
    color: #fff;
}

.filia-hero-counter-sep {
    margin: 0 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media only screen and (max-width: 1024px) {
    .filia-hero-slider {
        min-height: 500px;
        height: 100vh;
    }

    .filia-hero-slide-content {
        padding: 0 40px;
        max-width: 500px;
    }

    .filia-hero-dots {
        left: 40px;
        bottom: 35px;
    }

    .filia-hero-counter {
        right: 40px;
        bottom: 35px;
    }

    .filia-visual-training,
    .filia-visual-csr,
    .filia-visual-tax {
        width: 280px;
        height: 280px;
    }

    .filia-visual-icon-main {
        width: 100px;
        height: 100px;
    }

    .filia-visual-icon-main i {
        font-size: 38px;
    }

    .filia-visual-icon-float {
        width: 45px;
        height: 45px;
    }

    .filia-visual-icon-float i {
        font-size: 18px;
    }

    .filia-visual-ring.filia-ring-1 {
        width: 200px;
        height: 200px;
    }

    .filia-visual-ring.filia-ring-2 {
        width: 270px;
        height: 270px;
    }
}

@media only screen and (max-width: 767px) {
    .filia-hero-slider {
        min-height: 100vh;
        height: 100vh;
    }

    .filia-hero-slide {
        align-items: center;
        padding-bottom: 0;
    }

    .filia-hero-slide-content {
        padding: 0 24px;
        max-width: 100%;
    }

    .filia-hero-slide-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .filia-hero-slide-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .filia-hero-slide-visual {
        width: 100%;
        height: 100%;
        opacity: 0.25 !important;
        justify-content: flex-end;
        padding-right: 20px;
        align-items: flex-start;
        padding-top: 100px;
    }

    .filia-hero-slide.is-active .filia-hero-slide-visual {
        animation: none;
        opacity: 0.25 !important;
        transform: none;
    }

    .filia-visual-training,
    .filia-visual-csr,
    .filia-visual-tax {
        width: 200px;
        height: 200px;
    }

    .filia-visual-icon-main {
        width: 80px;
        height: 80px;
    }

    .filia-visual-icon-main i {
        font-size: 30px;
    }

    .filia-visual-icon-float {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .filia-visual-icon-float i {
        font-size: 14px;
    }

    .filia-hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .filia-hero-dot {
        width: 35px;
    }

    .filia-hero-counter {
        right: 24px;
        bottom: 24px;
    }

    .filia-hero-counter-current {
        font-size: 24px;
    }

    .filia-visual-badge {
        font-size: 50px;
    }

    .filia-visual-hexagon {
        width: 60px;
        height: 60px;
    }

    .filia-visual-ring.filia-ring-1 {
        width: 150px;
        height: 150px;
    }

    .filia-visual-ring.filia-ring-2 {
        width: 200px;
        height: 200px;
    }
}

@media only screen and (max-width: 480px) {
    .filia-hero-slider {
        min-height: 100vh;
        height: 100vh;
    }

    .filia-hero-slide-content {
        padding: 0 16px;
    }

    .filia-hero-slide-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .filia-hero-slide-label {
        font-size: 12px;
    }
}
