/* Modern Hero Slider */
.modern-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden;
    padding: 0;
}

/* Reset any container padding that might be affecting width */
.modern-hero .container,
.modern-hero .row,
.modern-hero .col {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure swiper takes full width */
.modern-hero .swiper,
.modern-hero .swiper-wrapper,
.modern-hero .swiper-slide {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure slide content takes full width */
.modern-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.modern-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(1.1);
    transition: transform 10s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: #fff;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.slide-subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.slide-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
}

.slide-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.6s;
    color: rgba(255, 255, 255, 0.9);
}

.slide-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.8s, transform 0.4s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.slide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide-button:hover {
    color: #000;
    transform: translateY(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Navigation */
.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-pagination {
    display: flex;
    gap: 10px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px !important;
    opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-nav-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}

.hero-nav-button:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25), 0 0 24px rgba(255,255,255,0.25);
}

.hero-nav-button i {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.hero-button-prev i {
    transform: rotate(-18deg);
}

.hero-button-next i {
    transform: rotate(18deg);
}

.hero-nav-button:hover i {
    transform: rotate(0deg) scale(1.08);
}

/* soft glow ring */
.hero-nav-button::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,0.25), rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hero-nav-button:hover::after {
    opacity: 1;
}

/* subtle pulse animation on idle */
.hero-nav-button {
    animation: navPulse 3.2s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
}

/* keyboard focus for accessibility */
.hero-nav-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Active slide animations */
.swiper-slide-active .slide-subtitle,
.swiper-slide-active .slide-title,
.swiper-slide-active .slide-description,
.swiper-slide-active .slide-button {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .slide-title {
        font-size: 4rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .slide-title {
        font-size: 3.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
        max-width: 500px;
    }
}

@media (max-width: 767.98px) {
    .modern-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .slide-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-nav {
        bottom: 20px;
    }
    
    .hero-nav-button {
        width: 40px;
        height: 40px;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 575.98px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 0.8rem;
    }
    
    .slide-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* Performance optimizations */
.modern-slide * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
