/* 
 * Fire & Life Safety Engineering Company
 * Modern Minimal Slider & Glassmorphism Intro Area
 * Colors: rgb(231, 17, 44) / #e7112c (Primary Red), #6d6e71 (Gray), #ffffff (White)
 * Font: Inter (Professional Minimal)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   MODERN MINIMAL SLIDER
   ============================================ */

.homepage-slides {
    position: relative;
    overflow: hidden;
}

.single-slide-item {
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    color: #ffffff;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

/* Image preloading and quality enhancement */
.single-slide-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

/* Smooth zoom effect on hover */
.homepage-slides:hover .single-slide-item {
    transform: scale(1.02);
}

.single-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 17, 44, 0.35) 0%, rgba(231, 17, 44, 0.25) 50%, rgba(109, 110, 113, 0.15) 100%);
    z-index: 1;
}

.single-slide-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-area-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

.hero-area-content .section-title {
    margin-bottom: 40px;
}

.hero-area-content h6 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 18px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.single-slide-item h1 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin: 18px 0 24px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.single-slide-item p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.hero-area-content .main-btn {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    padding: 16px 40px;
    background: rgb(231, 17, 44);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 2px solid rgb(231, 17, 44);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(231, 17, 44, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.2s ease-out;
}

.hero-area-content .main-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-area-content .main-btn:hover {
    background: #ffffff;
    color: rgb(231, 17, 44);
    border-color: #ffffff;
    box-shadow: 0 12px 35px rgba(231, 17, 44, 0.5);
    transform: translateY(-3px);
}

.hero-area-content .main-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   MODERN SLIDER NAVIGATION
   ============================================ */

.homepage-slides .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.homepage-slides .owl-nav button {
    pointer-events: all;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    position: absolute;
    top: 50%;
    margin-top: -30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.9);
    will-change: transform, opacity;
}

.homepage-slides .owl-nav button.owl-prev {
    left: 30px;
}

.homepage-slides .owl-nav button.owl-next {
    right: 30px;
    left: auto;
}

.homepage-slides:hover .owl-nav button {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.homepage-slides .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: rgb(231, 17, 44);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.homepage-slides .owl-nav button:active {
    transform: translateY(-50%) scale(0.95);
}


/* Slider Dots */
.homepage-slides .owl-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.homepage-slides .owl-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.homepage-slides .owl-dots button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.homepage-slides .owl-dots button:hover::before {
    width: 20px;
    height: 20px;
}

.homepage-slides .owl-dots button.active {
    background: #ffffff;
    border-color: #ffffff;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* ============================================
   GLASSMORPHISM INTRO AREA
   ============================================ */

.intro-area {
    position: relative;
    margin-top: -120px;
    z-index: 5;
    padding: 0 20px;
}

.intro-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(231, 17, 44, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.intro-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgb(231, 17, 44) 0%, #6d6e71 100%);
}

.intro-wrapper:hover {
    box-shadow: 0 12px 40px rgba(231, 17, 44, 0.2);
    transform: translateY(-5px);
}

.intro-inner {
    text-align: center;
    padding: 50px 30px;
    border-right: 1px solid rgba(231, 17, 44, 0.1);
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.intro-inner:last-child {
    border-right: none;
}

.intro-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 17, 44, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-inner:hover::before {
    opacity: 1;
}

.intro-inner:hover {
    background: rgba(231, 17, 44, 0.05);
    transform: translateY(-5px);
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(231, 17, 44, 0.1) 0%, rgba(231, 17, 44, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(231, 17, 44, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.intro-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(231, 17, 44, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.intro-inner:hover .intro-icon {
    background: linear-gradient(135deg, rgb(231, 17, 44) 0%, rgba(231, 17, 44, 0.8) 100%);
    border-color: rgb(231, 17, 44);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(231, 17, 44, 0.3);
}

.intro-inner:hover .intro-icon::before {
    width: 100px;
    height: 100px;
}

.intro-icon img {
    width: 45px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(12%) sepia(94%) saturate(7151%) hue-rotate(346deg) brightness(91%) contrast(91%);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.intro-inner:hover .intro-icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.intro-inner h5 {
    font-family: 'Inter', sans-serif;
    margin: 25px 0 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: rgb(231, 17, 44);
    transition: color 0.3s ease;
}

.intro-inner:hover h5 {
    color: rgb(231, 17, 44);
}

.intro-inner p {
    font-family: 'Inter', sans-serif;
    color: #6d6e71;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.intro-inner:hover p {
    color: #323a46;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .single-slide-item h1 {
        font-size: 42px;
    }
    
    .single-slide-item p {
        font-size: 17px;
    }
    
    .hero-area-content h6 {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .single-slide-item {
        height: 80vh;
        min-height: 600px;
    }
    
    .single-slide-item h1 {
        font-size: 36px;
    }
    
    .single-slide-item p {
        font-size: 16px;
    }
    
    .hero-area-content h6 {
        font-size: 12px;
        padding: 7px 18px;
    }
    
    .hero-area-content .main-btn {
        padding: 14px 35px;
        font-size: 14px;
    }
    
    .intro-inner {
        padding: 40px 25px;
    }
    
    .intro-icon {
        width: 70px;
        height: 70px;
    }
    
    .intro-icon img {
        width: 40px;
    }
}

@media (max-width: 768px) {
    .single-slide-item {
        height: 70vh;
        min-height: 500px;
    }
    
    .single-slide-item h1 {
        font-size: 28px;
        margin: 12px 0 18px;
        line-height: 1.25;
    }
    
    .single-slide-item p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
        max-width: 85%;
    }
    
    .hero-area-content h6 {
        font-size: 11px;
        padding: 6px 14px;
        letter-spacing: 1.5px;
    }
    
    .hero-area-content .main-btn {
        padding: 11px 28px;
        font-size: 13px;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 130px;
        text-align: center;
    }
    
    .hero-area-content {
        padding: 0 15px;
    }
    
    .homepage-slides .owl-nav button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .homepage-slides .owl-nav button.owl-prev {
        left: 15px;
    }
    
    .homepage-slides .owl-nav button.owl-next {
        right: 15px;
    }
    
    .intro-area {
        margin-top: -80px;
    }
    
    .intro-wrapper {
        border-radius: 15px;
    }
    
    .intro-inner {
        padding: 35px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(231, 17, 44, 0.1);
    }
    
    .intro-inner:last-child {
        border-bottom: none;
    }
    
    .intro-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .intro-icon img {
        width: 35px;
    }
    
    .intro-inner h5 {
        font-size: 18px;
        margin: 20px 0 12px;
    }
    
    .intro-inner p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .single-slide-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .single-slide-item h1 {
        font-size: 22px;
        line-height: 1.2;
        margin: 10px 0 15px;
    }
    
    .single-slide-item p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 90%;
    }
    
    .hero-area-content h6 {
        font-size: 10px;
        padding: 5px 12px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .hero-area-content .main-btn {
        padding: 10px 24px;
        font-size: 12px;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 120px;
        text-align: center;
        margin-top: 10px;
    }
    
    .homepage-slides .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .homepage-slides .owl-nav button.owl-prev {
        left: 10px;
    }
    
    .homepage-slides .owl-nav button.owl-next {
        right: 10px;
    }
    
    .intro-inner {
        padding: 30px 15px;
    }
    
    .hero-area-content {
        padding: 0 15px;
    }
    
    .hero-area-content .section-title {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .single-slide-item {
        height: 55vh;
        min-height: 350px;
    }
    
    .single-slide-item h1 {
        font-size: 20px;
        line-height: 1.2;
        margin: 8px 0 12px;
    }
    
    .single-slide-item p {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 18px;
        max-width: 95%;
    }
    
    .hero-area-content h6 {
        font-size: 9px;
        padding: 4px 10px;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
    }
    
    .hero-area-content .main-btn {
        padding: 8px 20px;
        font-size: 11px;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 110px;
        text-align: center;
        margin-top: 8px;
        letter-spacing: 0.5px;
    }
    
    .homepage-slides .owl-dots {
        bottom: 20px;
    }
    
    .homepage-slides .owl-dots button {
        width: 8px;
        height: 8px;
    }
    
    .homepage-slides .owl-dots button.active {
        width: 24px;
    }
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   ADDITIONAL ENHANCEMENTS
   ============================================ */

/* Enhanced parallax effect on slider */
.single-slide-item {
    background-attachment: fixed;
}

/* Smooth fade transition between slides */
.homepage-slides .owl-item {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.homepage-slides .owl-item.active {
    opacity: 1;
}

/* Image quality enhancement */
.single-slide-item {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .single-slide-item {
        background-attachment: scroll;
    }
    
    .homepage-slides:hover .single-slide-item {
        transform: scale(1);
    }
}

/* Loading animation for intro items */
.intro-inner {
    animation: fadeInUp 0.6s ease-out;
}

.intro-inner:nth-child(1) {
    animation-delay: 0.1s;
}

.intro-inner:nth-child(2) {
    animation-delay: 0.2s;
}

.intro-inner:nth-child(3) {
    animation-delay: 0.3s;
}

.intro-inner:nth-child(4) {
    animation-delay: 0.4s;
}

