﻿/* ===================================================
   HOME PAGE – Modern Design
   W M Security Services (Pvt) Ltd
   =================================================== */

/* ── Hero Carousel ─────────────────────────────────── */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-inner {
    height: 88vh;
    min-height: 480px;
    max-height: 100vh;
}

.hero-carousel .carousel-item {
    height: 88vh;
    min-height: 480px;
    max-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

/* dark-to-right gradient overlay */
.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(10, 20, 60, 0.75) 0%,
            rgba(10, 20, 60, 0.45) 55%,
            transparent 100%);
}

.hero-carousel .carousel-caption {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    left: 6%;
    right: 45%;
    top: 0;
    bottom: 0;
    padding: 0;
    text-align: left;
    z-index: 2;
}

.hero-carousel .hero-content {
    background: none;
    padding: 0;
}

.hero-carousel .hero-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 25px;
    margin-bottom: 1.2rem;
}

.hero-carousel .carousel-caption h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-carousel .carousel-caption p.lead {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 460px;
}

.hero-carousel .hero-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    padding: 0.65rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-carousel .hero-btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
    color: #fff;
}

.hero-carousel .hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.65rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-carousel .hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
    color: #fff;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    opacity: 0.55;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.3);
    background-color: var(--secondary-color);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 992px) {

    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 70vh;
        min-height: 420px;
    }

    .hero-carousel .carousel-caption {
        right: 10%;
    }
}

@media (max-width: 576px) {

    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 60vh;
        min-height: 360px;
    }

    .hero-carousel .carousel-caption {
        left: 5%;
        right: 5%;
        align-items: center;
        text-align: center;
    }

    .hero-carousel .carousel-caption p.lead {
        max-width: 100%;
    }

    .hero-carousel .hero-badge {
        font-size: 0.65rem;
    }

    /* Stack buttons vertically so they don't overlap */
    .hero-carousel .carousel-caption .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem !important;
        width: 100%;
    }

    .hero-carousel .hero-btn-primary,
    .hero-carousel .hero-btn-outline {
        text-align: center;
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    padding: 0;
    overflow: hidden;
}

.stats-bar .stat-item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.stats-bar .stat-item:last-child {
    border-right: none;
}

.stats-bar .stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stats-bar .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: block;
}

.stats-bar .stat-suffix {
    color: #fca5a5;
    font-size: 2rem;
    font-weight: 800;
}

.stats-bar .stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
}

.stats-bar .stat-icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

@media (max-width: 576px) {
    .stats-bar .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 1.2rem 1rem;
    }

    .stats-bar .stat-item:last-child {
        border-bottom: none;
    }

    .stats-bar .stat-number {
        font-size: 2rem;
    }
}

/* ── About Section ─────────────────────────────────── */
.about-section {
    padding: 5.5rem 0;
    background: #fff;
}


.about-section h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.25;
}

.feature-point {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--dark-color);
}

.feature-point:hover {
    background: rgba(30, 64, 175, 0.05);
    transform: translateX(5px);
}

.about-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.about-image-wrap img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}

.about-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: #fff;
    padding: 0.8rem 1.3rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
    backdrop-filter: blur(6px);
}

.about-image-badge .badge-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.about-image-badge .badge-text {
    font-size: 0.72rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Services Section ──────────────────────────────── */
.services-section {
    padding: 5.5rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

.section-title p {
    color: #6b7280;
    font-size: 0.97rem;
    max-width: 560px;
    margin: 0.6rem auto 0;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(30, 64, 175, 0.12);
    border-color: transparent;
}

.service-card-img {
    height: 185px;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-img .service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover .service-img-overlay {
    opacity: 1;
}

/* fallback icon-only card (no image) */
.service-card-icon-only {
    height: 185px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(37, 99, 235, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon-only i {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.6;
    transition: all 0.35s ease;
}

.service-card:hover .service-card-icon-only i {
    color: var(--secondary-color);
    transform: scale(1.15);
    opacity: 1;
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.service-card-body p {
    color: #6b7280;
    font-size: 0.88rem;
    flex: 1;
    line-height: 1.6;
    margin-bottom: 0;
}

.service-card-body .btn-sm {
    align-self: flex-start;
    margin-top: 1rem;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Why Choose Us ─────────────────────────────────── */
.why-section {
    padding: 5.5rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.feature-item {
    padding: 2rem 1.5rem;
    border-radius: 18px;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    transition: all 0.35s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.feature-item:hover::after {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(30, 64, 175, 0.1);
    border-color: transparent;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.2rem;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), #ef4444);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    transform: rotate(5deg) scale(1.08);
}

.feature-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.02rem;
}

.feature-item p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
    padding: 5.5rem 0;
    background:
        linear-gradient(rgba(10, 20, 55, 0.87), rgba(10, 20, 55, 0.87)),
        url('../images/hero/Security%20Hero%201.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.22) 0%, transparent 45%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
}

.cta-buttons .btn {
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 30px;
}

.cta-buttons .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border: 2px solid transparent;
}

.cta-buttons .btn-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.cta-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-3px);
    color: #fff;
}

@media (max-width: 768px) {
    .cta-section {
        background-attachment: scroll;
    }
}

/* ── Testimonials Section ──────────────────────────── */
.testimonials-section {
    padding: 5rem 0 6rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
        url('../images/home/testominalbg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

@media (max-width: 768px) {
    .testimonials-section {
        background-attachment: scroll;
    }
}

.testimonials-section .section-title h2 {
    color: #fff !important;
}

.testimonials-section .section-title h2::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
}

.testimonials-section .section-title p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2.2rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 6rem;
    color: #fff;
    opacity: 0.12;
    position: absolute;
    top: -10px;
    left: 12px;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    font-size: 0.97rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author h6 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.testimonial-author small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.stars i {
    font-size: 0.92rem;
    margin-right: 1px;
}

.testimonial-carousel {
    position: relative;
    padding-bottom: 3.5rem;
}

.testimonial-carousel .carousel-inner {
    padding: 0.5rem 3rem;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 45%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-carousel .carousel-control-prev {
    left: -10px;
}

.testimonial-carousel .carousel-control-next {
    right: -10px;
}

.testimonial-carousel .carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.testimonial-carousel .carousel-indicators .active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .testimonial-carousel .carousel-inner {
        padding: 0.5rem 1.5rem;
    }

    .testimonial-carousel .carousel-control-prev {
        left: -8px;
    }

    .testimonial-carousel .carousel-control-next {
        right: -8px;
    }
}

/* ── Generic section spacing ───────────────────────── */
.section {
    padding: 5rem 0;
}

/* ── Scroll-reveal animation ───────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .about-image-wrap img {
        height: 260px;
    }

    .stats-bar {
        padding: 1.5rem 0;
    }

    .services-section,
    .why-section,
    .cta-section,
    .testimonials-section {
        padding: 3.5rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .service-card-img {
        height: 160px;
    }

    .about-section {
        padding: 3rem 0;
    }
}