/* Hero Swiper Slider - Clean Professional Styles */

.hero-swiper-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    z-index: 1;
}

/* Height Settings */
.hero-swiper-slider.hero-height-fullscreen {
    height: 100vh;
    min-height: 600px;
}

.hero-swiper-slider.hero-height-custom {
    /* Height set via Elementor controls */
}

.hero-swiper-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background */
.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-background .hero-bg-image,
.hero-slide-background .hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ken Burns Effect */
.ken-burns-enabled .hero-bg-image {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0) translateY(0);
    }
    25% {
        transform: scale(1.1) translateX(-2%) translateY(-1%);
    }
    50% {
        transform: scale(1.05) translateX(1%) translateY(-2%);
    }
    75% {
        transform: scale(1.08) translateX(-1%) translateY(1%);
    }
    100% {
        transform: scale(1.03) translateX(2%) translateY(-1%);
    }
}

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

/* Content Wrapper - Always centered */
.hero-slide-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hero-slide-content-wrapper .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content */
.hero-slide-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.swiper-slide-active .hero-slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Pre-title */
.hero-pre-title {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.swiper-slide-active .hero-pre-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-pre-title span {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Title */
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-title .title-line-1,
.hero-title .title-line-2 {
    display: block;
}

.hero-title .title-line-2 {
    margin-top: 10px;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 2px;
}

/* Description */
.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.swiper-slide-active .hero-description {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.8s;
}

.swiper-slide-active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* No radius as requested */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-button:hover::before {
    left: 100%;
}

/* Button classes matching theme */
.hero-button-primary {
    /* These styles will be overridden by theme classes */
    background: #333;
    color: #fff;
}

.hero-button-secondary {
    /* These styles will be overridden by theme classes */
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* Play Button */
.hero-play-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.hero-play-button .play-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.hero-play-button .play-icon i {
    font-size: 16px;
    margin-left: 3px;
}

.hero-play-button .play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.hero-play-button:hover .play-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Navigation - Full Width Positioning */
.hero-swiper-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-swiper-prev,
.hero-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-swiper-prev {
    left: 30px;
}

.hero-swiper-next {
    right: 30px;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Pagination */
.hero-swiper-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.pagination-style-dots .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.pagination-style-dots .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 1);
}

.pagination-style-lines .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.pagination-style-lines .swiper-pagination-bullet-active {
    background: #ffffff;
}

.pagination-style-numbers {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

/* Progress Bar */
.hero-swiper-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hero-swiper-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    width: 0%;
    transition: width 0.3s ease;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.hero-scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 20px;
}

.hero-scroll-indicator .wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.hero-scroll-indicator .arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-scroll-indicator .arrow span {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: arrow 2s infinite;
}

.hero-scroll-indicator .arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scroll {
    0%, 20% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

@keyframes arrow {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Animation Classes */
.fadeIn {
    animation: fadeIn 1s ease;
}

.fadeInUp {
    animation: fadeInUp 1s ease;
}

.fadeInDown {
    animation: fadeInDown 1s ease;
}

.fadeInLeft {
    animation: fadeInLeft 1s ease;
}

.fadeInRight {
    animation: fadeInRight 1s ease;
}

.zoomIn {
    animation: zoomIn 1s ease;
}

.bounceIn {
    animation: bounceIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-swiper-slider.hero-height-fullscreen {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-swiper-prev,
    .hero-swiper-next {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .hero-swiper-prev {
        left: 20px;
    }
    
    .hero-swiper-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-swiper-slider.hero-height-fullscreen {
        min-height: 450px;
    }
    
    .hero-slide-content-wrapper .container {
        padding: 0 15px; /* Normal padding since navigation is hidden */
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .hero-button {
        justify-content: center;
        padding: 12px 25px;
    }
    
    .hero-play-button {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-slide-content-wrapper .container {
        padding: 0 15px; /* Normal padding since navigation is hidden */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-pre-title span {
        font-size: 12px;
        padding: 6px 15px;
        letter-spacing: 2px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
}

/* Hide navigation buttons on mobile - cleaner solution */
@media (max-width: 768px) {
    .hero-swiper-prev,
    .hero-swiper-next {
        display: none; /* Hide navigation buttons on mobile */
    }
    
    .hero-slide-content-wrapper .container {
        padding: 0 15px; /* Reset padding when navigation is hidden */
    }
}


/* RTL Support */
.rtl .hero-swiper-prev {
    right: 30px;
    left: auto;
}

.rtl .hero-swiper-next {
    left: 30px;
    right: auto;
}

.rtl .hero-play-button {
    margin-right: 20px;
    margin-left: 0;
}

.rtl .hero-play-button .play-icon i {
    margin-right: 3px;
    margin-left: 0;
}

/* Performance Optimizations */
.hero-swiper-slider * {
    will-change: transform;
}

.hero-slide-background img,
.hero-slide-background video {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Print Styles */
@media print {
    .hero-swiper-slider {
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-swiper-navigation,
    .hero-swiper-pagination,
    .hero-scroll-indicator {
        display: none !important;
    }
}