@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-glow {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
    }
}

@keyframes hero-pulse {
    25% {
        transform: scale(1.05);
    }

    75% {
        transform: scale(0.95);
    }
}

.pb-hero-section {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    background-image: var(--hero-bg);
    background-color: var(--hero-bg-color, transparent);
    background-size: var(--hero-bg-size, cover);
    background-position: var(--hero-bg-pos, center);
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    z-index: 10;
}

.pb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    opacity: var(--overlay-opacity);
    z-index: 1;
}

.pb-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.pb-hero-subtitle {
    display: block;
    font-family: var(--subtitle-font);
    text-align: var(--subtitle-align, center);
    font-size: var(--subtitle-size, 1.5rem);
    font-weight: var(--subtitle-weight, normal);
    font-style: var(--subtitle-style, normal);
    color: var(--subtitle-color, #fff);
    margin-bottom: 20px;
    letter-spacing: var(--subtitle-spacing, 0px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pb-hero-title {
    font-family: var(--title-font);
    text-align: var(--title-align, center);
    font-size: var(--title-size, 5rem);
    font-weight: var(--title-weight, 800);
    font-style: var(--title-style, normal);
    line-height: 1.1;
    color: var(--title-color, #fff);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: var(--title-spacing, 0px);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.pb-hero-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pb-neon-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--btn-padding, 20px 40px);
    background-color: var(--btn-color);
    color: var(--btn-text-color, #FFF);
    text-decoration: none;
    font-family: var(--btn-font, "Outfit", sans-serif);
    font-size: var(--btn-size, 18px);
    font-weight: var(--btn-weight, 700);
    font-style: var(--btn-style, normal);
    border-radius: var(--btn-radius, 12px);
    border: none;
    transition: 0.5s;
    letter-spacing: var(--btn-spacing, 1px);
    z-index: 5;
    text-align: var(--btn-align, center);
}

.pb-neon-btn:hover {
    transform: scale(1.05);
    background-color: var(--btn-bg-hover, #e60000);
    color: var(--btn-text-hover, #ffffff);
}

.pb-neon-btn:active {
    transform: scale(0.95);
}

.pb-neon-btn:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from var(--angle),
            transparent 150deg,
            var(--btn-glow) 230deg,
            var(--btn-color) 360deg);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--btn-radius, 12px);
    padding: 4px;
    z-index: -1;
    filter: blur(25px);
    animation: rotate-glow 2s linear infinite;
}

.pb-neon-btn:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from var(--angle),
            transparent 100deg,
            var(--btn-glow) 215deg,
            var(--btn-color) 360deg);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--btn-radius, 12px);
    padding: 2px;
    z-index: -1;
    animation: rotate-glow 2s linear infinite;
}

.pb-neon-btn.reverse-flow:before,
.pb-neon-btn.reverse-flow:after {
    animation-direction: reverse;
}

.elementor-animation-pulse:hover {
    animation: hero-pulse 1s linear infinite;
}

@media (max-width: 768px) {
    .pb-hero-title {
        font-size: 3rem;
    }

    .pb-hero-subtitle {
        font-size: 1.2rem;
    }

    .pb-hero-section {
        background-attachment: scroll;
    }
}

/* --- New Multi-Style Support --- */

/* Video Background */
.pb-hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Ensure overlay sits on top of video */
.pb-hero-overlay {
    z-index: 1;
}

.pb-hero-content {
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Wider container for grid layouts */
    padding: 20px;
    margin: 0 auto;
}

/* Grid Layout (Styles 7, 8) */
.pb-hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.pb-hero-grid-layout.reverse {
    direction: rtl;
    /* Quick way to swap columns visually */
}

.pb-hero-grid-layout.reverse>* {
    direction: ltr;
    /* Reset text direction inside columns */
}

.pb-hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Default align left for grid */
}

.pb-hero-text-col .pb-hero-title,
.pb-hero-text-col .pb-hero-subtitle {
    text-align: left;
}

.pb-hero-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pb-hero-img-col img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Secondary Button (Default overrides can go here if needed) */
.pb-btn-secondary:before,
.pb-btn-secondary:after {
    /* Now uses --btn-glow from variables */
}

.pb-btn-secondary:hover {
    background-color: var(--btn-color) !important;
    color: var(--btn-text-color) !important;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .pb-hero-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pb-hero-text-col {
        align-items: center;
    }

    .pb-hero-text-col .pb-hero-title,
    .pb-hero-text-col .pb-hero-subtitle {
        text-align: center;
    }

    .pb-hero-grid-layout.reverse {
        direction: ltr;
        display: flex;
        flex-direction: column-reverse;
    }
}



/* --- Video Controls --- */
.video-controls-ui {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.ctrl-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.ctrl-btn:hover {
    background: var(--btn-color, #8e44ad);
    border-color: var(--btn-color, #8e44ad);
    box-shadow: 0 0 15px var(--btn-color, #8e44ad);
    transform: scale(1.1);
}

.ctrl-btn i {
    font-size: 14px;
}

/* Hero Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-bg-slider .swiper-slide {
    background-size: cover;
    background-position: center;
}
.hero-bg-slider .swiper-button-prev,
.hero-bg-slider .swiper-button-next {
    background: var(--swiper-navigation-bg, rgba(0,0,0,0.4));
    color: var(--swiper-navigation-color, #ffffff);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s;
}
.hero-bg-slider .swiper-button-prev:hover,
.hero-bg-slider .swiper-button-next:hover {
    background: rgba(0,0,0,0.7);
}
.hero-bg-slider .swiper-button-prev:after,
.hero-bg-slider .swiper-button-next:after {
    display: none; /* hide default Swiper arrows */
}
.hero-bg-slider .swiper-button-prev i,
.hero-bg-slider .swiper-button-next i {
    font-size: 20px;
    color: var(--swiper-navigation-color, #ffffff);
    transition: transform 0.2s ease;
}
/* Arrows vertical position */
.hero-bg-slider.swiper-nav-top .swiper-button-prev,
.hero-bg-slider.swiper-nav-top .swiper-button-next {
    top: 30px;
    transform: translateY(0);
}
.hero-bg-slider.swiper-nav-middle .swiper-button-prev,
.hero-bg-slider.swiper-nav-middle .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
}
.hero-bg-slider.swiper-nav-bottom .swiper-button-prev,
.hero-bg-slider.swiper-nav-bottom .swiper-button-next {
    top: auto;
    bottom: 30px;
    transform: translateY(0);
}
/* Bullets positions */
.hero-bg-slider.swiper-bullets-top_left .swiper-pagination {
    top: 20px;
    bottom: auto;
    left: 20px;
    right: auto;
    text-align: left;
}
.hero-bg-slider.swiper-bullets-top_center .swiper-pagination {
    top: 20px;
    bottom: auto;
    left: 0;
    right: 0;
    text-align: center;
}
.hero-bg-slider.swiper-bullets-top_right .swiper-pagination {
    top: 20px;
    bottom: auto;
    left: auto;
    right: 20px;
    text-align: right;
}
.hero-bg-slider.swiper-bullets-bottom_left .swiper-pagination {
    bottom: 20px;
    top: auto;
    left: 20px;
    text-align: left;
}
.hero-bg-slider.swiper-bullets-bottom_center .swiper-pagination {
    bottom: 20px;
    top: auto;
    left: 0;
    right: 0;
    text-align: center;
}
.hero-bg-slider.swiper-bullets-bottom_right .swiper-pagination {
    bottom: 20px;
    top: auto;
    left: auto;
    right: 20px;
    text-align: right;
}
.hero-bg-slider.swiper-bullets-middle_left .swiper-pagination {
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    right: auto;
    width: auto;
    flex-direction: column;
    display: flex;
    gap: 8px;
}
.hero-bg-slider.swiper-bullets-middle_right .swiper-pagination {
    top: 50%;
    transform: translateY(-50%);
    left: auto;
    right: 20px;
    width: auto;
    flex-direction: column;
    display: flex;
    gap: 8px;
}
/* Pagination bullets style */
.hero-bg-slider .swiper-pagination-bullet {
    width: var(--swiper-bullet-size, 12px);
    height: var(--swiper-bullet-size, 12px);
    background: var(--swiper-pagination-bullet-color, rgba(255,255,255,0.6));
    opacity: 0.7;
    margin: 0 calc(var(--swiper-bullet-gap, 8px) / 2);
    transition: all 0.2s ease;
}

.hero-bg-slider .swiper-pagination-bullet-active {
    background: var(--swiper-pagination-bullet-active-color, #2271b1);
    opacity: 1;
}

/* Override Swiper's default horizontal gap */
:root {
    --swiper-pagination-bullet-horizontal-gap: var(--swiper-bullet-gap, 8px);
}
.hero-bg-slider.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.hero-bg-slider .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 calc(var(--swiper-pagination-bullet-horizontal-gap, 8px) / 2);
}