/* =============================================
   HOME PAGE CSS - Blackwatch Security
   ============================================= */

/* ---- Hero Slider ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--black);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 7s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    padding-top: 80px;
}

.hero-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 16px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-tag {
    opacity: 1;
    transform: translateX(0);
}

.hero-h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.9s ease 0.5s;
    margin-bottom: 16px;
}

.hero-slide.active .hero-h1 {
    opacity: 1;
    transform: translateX(0);
}

.hero-p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.9s ease 0.7s;
}

.hero-slide.active .hero-p {
    opacity: 1;
    transform: translateX(0);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.9s ease 0.9s;
}

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

/* Watermark text */
.hero-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-family: var(--font-heading);
    font-size: clamp(7rem, 18vw, 16rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Slider controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dot.active {
    background: var(--red);
    width: 30px;
    border-radius: 5px;
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.hero-arrow {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 1.1rem;
}

.hero-arrow:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ---- Who We Are Section ---- */
.who-we-are-section {
    background: var(--white);
}

.who-top-wrap {
    background: #ffffff;
    padding: 80px 0;
}

.who-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}



.who-top-col h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    letter-spacing: 0;
    text-transform: none;
}

.who-top-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #888;
    max-width: 440px;
    font-weight: 400;
}

.who-top-col--right {
    padding-left: 0;
}

.who-top-col--right p {
    font-weight: 600;
    color: #888;
}

.who-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--red);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.who-view-more span {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 300;
}

.who-view-more:hover {
    transform: translateX(5px);
}

.who-bottom-wrap {
    background: #fcfcfc;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.who-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.who-bottom-text {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.who-bottom-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 24px;
    color: #111;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.who-bottom-text h3 span {
    color: #f00;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 0.9;
}

.who-bottom-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.who-bottom-image {
    text-align: center;
}

.who-bottom-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ---- Services We Provide Section ---- */
/* ---- Services We Provide Section ---- */
.services-provide-section {
    background: #f8f8f8;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services-provide-head {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.services-provide-head h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #222;
    text-transform: none;
    margin-bottom: 8px;
}

.services-provide-head p {
    color: #999;
    font-size: 1.15rem;
}

.services-provide-grid {
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.services-provide-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-provide-item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #111;
    font-size: 0.95rem;
    font-weight: 700;
}

.spi-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spi-icon i {
    font-size: 0.8rem;
}

.services-provide-image {
    text-align: center;
    align-self: flex-end;
}

.services-provide-image img {
    max-width: 100%;
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---- Diamond Gallery Section CSS Grid Rewrite ---- */
.diamond-gallery-section {
    background: #ffffff;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.diamond-gallery-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
}

/* Base rotated grid container */
.dg-rotator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    display: grid;
    grid-template-columns: repeat(18, 42px);
    grid-template-rows: repeat(18, 42px);
    gap: 8px;
}

/* Individual Diamond Item Base */
.dg-item {
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* Un-rotate the image inside */
.dg-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.45);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Explicit Grid Coordinates (Algebraically Mapped for -45deg Cartesian space) */
.dg-item-1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.dg-item-2 { grid-column: 7 / 11; grid-row: 7 / 11; }
.dg-item-3 { grid-column: 7 / 11; grid-row: 11 / 15; }
.dg-item-4 { grid-column: 11 / 13; grid-row: 9 / 11; }
.dg-item-5 { grid-column: 11 / 15; grid-row: 11 / 15; }
.dg-item-6 { grid-column: 9 / 11; grid-row: 15 / 17; }
.dg-item-7 { grid-column: 11 / 13; grid-row: 15 / 17; }

/* Dotted Path SVG Overlay */
.dg-path {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Map Pins */
.dg-pin {
    position: absolute;
    color: #000;
    font-size: 24px;
    z-index: 3;
}
.dg-pin--left {
    left: 15%;
    top: 30%;
}
.dg-pin--right {
    right: 15%;
    bottom: 25%;
}

/* Caption Block */
.dg-overlay-content {
    position: absolute;
    bottom: 0px;
    left: 40px;
    max-width: 440px;
    z-index: 10;
}
.dg-overlay-content p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 24px;
}
.dg-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 14px 28px;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}
.dg-btn:hover {
    transform: translateX(5px);
}

/* ---- Services Highlights ---- */
.services-highlights {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-img {
    height: 180px;
    overflow: hidden;
}

.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-body {
    padding: 20px;
}

.service-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.service-card-body p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

.service-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

/* ---- Stats Counter ---- */
.stats-section {
    padding: 70px 0;
    background: var(--dark);
    background-image: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 32px 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 8px;
    display: block;
}

.stat-separator {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin: 16px auto 0;
}

/* ---- Professional Team Carousel Section ---- */
.pro-team-section {
    background: #ffffff;
    padding: 80px 0 80px;
}

.pro-team-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    color: #222;
    margin-bottom: 50px;
}

.pro-team-slider {
    overflow: hidden;
}

.pro-team-track {
    display: flex;
    width: 200%;
    transition: transform 0.6s ease;
}

.pro-team-page {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pro-team-card {
    text-align: center;
    position: relative;
}

.pro-team-img-wrapper {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    background: #f1f1f1;
}

.pro-team-img-wrapper img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pro-team-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pro-team-img-wrapper:hover .pro-team-hover {
    opacity: 1;
}

.pt-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    transform: translateY(15px);
}

.pro-team-img-wrapper:hover .pt-icon {
    transform: translateY(0);
}

.pt-icon:hover {
    background: var(--red);
}

.pro-team-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 12px;
    color: #222;
}

.pro-team-card p {
    font-size: 0.85rem;
    color: #888;
}

.pro-team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pro-team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pro-team-dot.active {
    background: #111;
}

/* ---- Clients Section ---- */
.clients-section {
    padding: 70px 0;
    background: var(--light-gray);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: center;
}

.client-logo {
    background: var(--white);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.client-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 80px 0;
    background: var(--red);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.btn-white {
    background: white;
    color: var(--red);
    border-color: white;
}

.btn-white:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pro-team-title {
        font-size: 2.7rem;
    }

    .pro-team-page {
        gap: 20px;
    }

    .pro-team-card img {
        height: 280px;
    }

    .pro-team-card h3 {
        font-size: 1.35rem;
    }

    .pro-team-card p {
        font-size: 1.2rem;
    }

    .who-top-grid,
    .who-bottom-grid {
        gap: 40px;
    }

    .services-provide-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dg-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .dg-left {
        margin-left: 0;
        justify-self: center;
    }

    .dg-center-cluster {
        justify-items: center;
    }

    .dg-pin {
        display: none;
    }

    .dg-caption {
        margin: 28px auto 0;
        text-align: center;
    }

    .services-provide-head {
        margin-bottom: 28px;
    }

    .services-provide-head h2 {
        font-size: 2.6rem;
    }

    .services-provide-head p {
        font-size: 1.45rem;
    }

    .services-provide-list {
        gap: 18px;
    }

    .services-provide-item {
        font-size: 1.35rem;
    }

    .services-provide-image {
        order: -1;
    }

    .services-provide-image img {
        width: 320px;
    }

    .who-top-col h2 {
        font-size: 2.6rem;
    }

    .who-top-col p,
    .who-view-more {
        font-size: 1.6rem;
    }

    .who-bottom-text h3 {
        font-size: 3rem;
    }

    .who-bottom-text h3 span {
        font-size: 4.2rem;
    }

    .who-bottom-text p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 520px;
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero-p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .who-top-wrap,
    .who-bottom-wrap {
        padding: 44px 0;
    }

    .services-provide-section {
        padding: 48px 0 28px;
    }

    .diamond-gallery-section {
        padding: 46px 0;
    }

    .dg-center-cluster {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .dg-diamond--large {
        width: 142px;
        height: 142px;
    }

    .dg-diamond--medium {
        width: 120px;
        height: 120px;
    }

    .dg-diamond--small {
        width: 82px;
        height: 82px;
    }

    .dg-center-cluster .dg-diamond:nth-child(1),
    .dg-center-cluster .dg-diamond:nth-child(2),
    .dg-center-cluster .dg-diamond:nth-child(3),
    .dg-center-cluster .dg-diamond:nth-child(4),
    .dg-center-cluster .dg-diamond:nth-child(5),
    .dg-center-cluster .dg-diamond:nth-child(6) {
        grid-column: auto;
    }

    .services-provide-section::before,
    .services-provide-section::after {
        display: none;
    }

    .who-top-grid,
    .who-bottom-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .who-top-grid::before {
        display: none;
    }

    .who-top-col--right {
        padding-left: 0;
    }

    .who-top-col h2 {
        font-size: 2.1rem;
    }

    .who-top-col p,
    .who-view-more {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .who-bottom-text h3 {
        font-size: 2rem;
        margin-bottom: 18px;
    }

    .who-bottom-text h3 span {
        font-size: 3.1rem;
    }

    .who-bottom-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .services-provide-head h2 {
        font-size: 2rem;
    }

    .services-provide-head p {
        font-size: 1rem;
    }

    .services-provide-item {
        font-size: 1rem;
        line-height: 1.5;
    }

    .spi-icon {
        width: 38px;
        height: 38px;
    }

    .services-provide-image img {
        width: 280px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-team-title {
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .pro-team-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-team-card img {
        max-width: 230px;
        height: 250px;
    }

    .pro-team-card h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .pro-team-card p {
        font-size: 0.95rem;
    }

    .hero-arrows {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 460px;
    }

    .hero-content {
        padding-top: 105px;
    }

    .hero-tag {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .hero-h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .who-top-col h2 {
        font-size: 1.8rem;
    }

    .who-bottom-text h3 {
        font-size: 1.7rem;
    }

    .who-bottom-text h3 span {
        font-size: 2.5rem;
    }

    .who-bottom-text p {
        font-size: 0.95rem;
    }

    .services-provide-head h2 {
        font-size: 1.7rem;
    }

    .dg-caption p {
        font-size: 0.8rem;
    }

    .dg-btn {
        font-size: 0.82rem;
        padding: 9px 14px;
    }

    .services-provide-item {
        font-size: 0.93rem;
    }

    .services-provide-image img {
        width: 240px;
    }

    .pro-team-section {
        padding: 36px 0 28px;
    }

    .pro-team-title {
        font-size: 1.55rem;
    }

    .pro-team-page {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pro-team-card img {
        height: 320px;
    }
}