/* ============================================
   Hero Slider Section
   ============================================ */

/* Hide old hero section */
.hero-section:not(.hero-slider-section) {
    display: none;
}

.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-slider-wrapper {
    width: 100%;
    height: 100vh;
    max-height: 800px;
    min-height: 500px;
    position: relative;
}

/* Swiper Container */
.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    height: 100%;
}

/* Hero Slide */
.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Hero Content */
.hero-content {
    color: white;
    padding: 30px 0;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

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

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: white;
    color: #1e40af;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #1e40af;
    text-decoration: none;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-icon-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-icon-wrapper i {
    font-size: 12rem;
    color: white;
    opacity: 0.9;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: rotateIcon 20s linear infinite;
}

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

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 30px !important;
}

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

.swiper-pagination-bullet-active {
    width: 35px;
    border-radius: 6px;
    background: white;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-icon-wrapper {
        width: 350px;
        height: 350px;
    }

    .hero-icon-wrapper i {
        font-size: 10rem;
    }
}

@media (max-width: 992px) {
    .hero-slider-wrapper {
        max-height: 700px;
        min-height: 450px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        max-height: 600px;
        min-height: 400px;
        height: calc(100vh - 70px);
    }

    .hero-content {
        text-align: center;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    .hero-slider-wrapper {
        max-height: 550px;
        min-height: 350px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .swiper-pagination-bullet-active {
        width: 28px;
    }
}

@media (max-width: 400px) {
    .hero-slider-wrapper {
        max-height: 500px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

/* RTL Support */
[dir="rtl"] .hero-buttons {
    direction: rtl;
}

[dir="rtl"] .btn-hero-primary i,
[dir="rtl"] .btn-hero-secondary i {
    margin-left: 0;
    margin-right: 10px;
}

/* Performance Optimization */
.hero-slide,
.hero-icon-wrapper,
.swiper-button-next,
.swiper-button-prev {
    will-change: transform;
    backface-visibility: hidden;
}

/* Accessibility */
.btn-hero-primary:focus,
.btn-hero-secondary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-description,
    .hero-buttons {
        animation: none;
    }

    .hero-image {
        animation: none;
    }

    .hero-icon-wrapper i {
        animation: none;
    }
}

/* ============================================
   Page Layout Adjustments
   ============================================ */

/* Remove top spacing from sections after slider */
.hero-slider-section + section,
.hero-slider-section + .features-section,
.hero-slider-section + .maintenance-info-section {
    margin-top: 0;
    padding-top: 80px;
}

/* Ensure smooth transition between sections */
section {
    position: relative;
}

/* Fix for mobile bottom nav spacing */
@media (max-width: 992px) {
    .hero-slider-wrapper {
        margin-bottom: 0;
    }

    .hero-slider-section + section {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .hero-slider-section + section {
        padding-top: 40px;
    }
}

/* Features section specific adjustments */
.features-section {
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* Smooth scroll padding for fixed header */
html {
    scroll-padding-top: 80px;
}

@media (max-width: 992px) {
    html {
        scroll-padding-top: 70px;
    }
}
