/* ============================================================
   XaaS Techs – FRONT PAGE CSS (Enterprise Edition)
============================================================ */


/* ============================================================
   GLOBAL SECTION DEFAULTS
============================================================ */
.xaas-section {
    width: 100%;
    display: block;
}

.xaas-section-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.xaas-section-header p {
    font-size: 18px;
    color: #475569;
}


/* ============================================================
   HERO SECTION
============================================================ */
.xaas-hero-home {
    background: linear-gradient(180deg, #0f172a 0%, #17223d 100%);
    color: #fff;
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.xaas-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .xaas-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

/* HERO TEXT */
.xaas-hero-eyebrow {
    font-size: 16px;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.xaas-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
}

.xaas-hero-lead {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.6;
}

.xaas-hero-ctas {
    margin-top: 28px;
    display: flex;
    gap: 18px;
}

@media (max-width: 992px) {
    .xaas-hero-ctas {
        justify-content: center;
    }
}

/* HERO RIGHT — 3D CUBE CONTAINER */
.xaas-cube-container {
    width: 100%;
    height: 380px;
    background: radial-gradient(circle at center, rgba(56,189,248,0.14), transparent 70%);
}

@media (max-width: 992px) {
    .xaas-cube-container {
        height: 300px;
        margin: 0 auto;
        max-width: 420px;
    }
}


/* ============================================================
   HERO TRUST BAR
============================================================ */
.xaas-hero-trust {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.xaas-trust-item {
    text-align: center;
}

.xaas-trust-number {
    font-size: 36px;
    font-weight: 700;
    color: #38bdf8;
    display: block;
}

.xaas-trust-label {
    font-size: 16px;
    color: #cbd5e1;
}


/* ============================================================
   FEATURED SERVICES — 6 CARDS
============================================================ */
.xaas-featured-services {
    background: #fff;
}

.xaas-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    text-align: left;
    border: 1px solid #e5e7eb;
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.xaas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.xaas-card h3 {
    margin: 16px 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.xaas-card p {
    font-size: 16px;
    color: #475569;
    margin-bottom: 16px;
}


/* ============================================================
   INDUSTRIES GRID
============================================================ */
.xaas-industries {
    background: #f8fafc;
}

.industry-item {
    padding: 32px 20px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    transition: all .25s ease;
}

.industry-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.industry-item i {
    font-size: 32px;
    color: #38bdf8;
    margin-bottom: 10px;
}

.industry-item span {
    display: block;
    margin-top: 6px;
    font-weight: 600;
}


/* ============================================================
   CASE STUDIES
============================================================ */
.case-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    text-align: left;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all .25s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.case-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-card p {
    font-size: 16px;
    color: #475569;
    margin-bottom: 16px;
}


/* ============================================================
   RESOURCES SECTION
============================================================ */
.resource-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.resource-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.resource-card p {
    font-size: 16px;
    color: #475569;
}


/* ============================================================
   COMPLIANCE & SECURITY BADGES
============================================================ */
.badges-row {
    gap: 24px;
}

.badge-img {
    height: 54px;
    opacity: 0.88;
    transition: opacity .25s ease;
}

.badge-img:hover {
    opacity: 1;
}


/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 17px;
    color: #475569;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: all .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.testimonial-card strong {
    display: block;
    margin-top: 12px;
    color: #0f172a;
}


/* ============================================================
   PARTNER TECHNOLOGIES ROW
============================================================ */
.partner-logo {
    height: 48px;
    opacity: .7;
    transition: all .25s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* ============================================================
   SEO CONTENT BLOCK
============================================================ */
.xaas-section p {
    line-height: 1.65;
}

.xaas-section h2 {
    margin-bottom: 16px;
}


/* ============================================================
   PREFOOTER CTA
============================================================ */
.xaas-prefooter {
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 60px 32px;
}

.xaas-prefooter h2 {
    font-size: 36px;
}

.xaas-prefooter p {
    color: #cbd5e1;
    font-size: 18px;
}

.xaas-prefooter-ctas-col {
    display: flex;
    flex-direction: row;
    gap: 18px;
    justify-content: center;
}

@media (max-width: 768px) {
    .xaas-prefooter-ctas-col {
        flex-direction: column;
        align-items: center;
    }
}

/* ===========================================
   HERO — GLOBAL FIXES
=========================================== */

.xaas-hero-home {
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .xaas-hero-home {
        padding: 120px 0 80px; /* more space under nav */
    }
}

/* Hero Grid */
.xaas-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Hero title refinement */
.xaas-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}

@media (min-width: 1200px) {
    .xaas-hero-title {
        font-size: 50px;
    }
}

.xaas-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cbd5e1;
}

/* Trust bar layout fix */
.xaas-hero-trust {
    margin-top: 50px;
    display: flex;
    gap: 32px;
}

.xaas-trust-item {
    text-align: center;
}

.xaas-trust-number {
    font-size: 26px;
    font-weight: 700;
    color: #38bdf8;
}

.xaas-trust-label {
    font-size: 14px;
    color: #94a3b8;
}
/* ===========================================
   HERO SECTION
=========================================== */
.xaas-hero-home {
    padding: 120px 0 80px;
    background: #0f172a;
    color: #ffffff;
    position: relative;
}

.xaas-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.xaas-hero-title {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 20px;
}

.xaas-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.xaas-hero-ctas {
    display: flex;
    gap: 16px;
}

.xaas-hero-trust {
    margin-top: 60px;
    display: flex;
    gap: 40px;
}

.xaas-trust-number {
    color: #38bdf8;
    font-size: 28px;
    font-weight: 700;
}

.xaas-trust-label {
    color: #94a3b8;
}

/* ===========================================
   FEATURED SERVICES
=========================================== */
.xaas-featured-services {
    padding: 100px 0;
    background: #f8fafc;
}

.xaas-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.xaas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Icon Badges */
.icon-badge {
    width: 52px;
    height: 52px;
    background: #3B82F6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.icon-badge.purple {
    background: #8b5cf6;
}

/* ===========================================
   CASE STUDIES
=========================================== */
.xaas-case-studies {
    background: #0f172a;
    color: #ffffff;
    padding: 100px 0;
}

.case-card {
    padding: 32px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: 0.25s ease;
    backdrop-filter: blur(6px);
}

.case-card:hover {
    background: rgba(255,255,255,0.12);
}

.case-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.case-card p {
    color: #d1d5db;
    line-height: 1.6;
}

/* ===========================================
   CTA STRIP
=========================================== */
.xaas-cta-wide {
    padding: 70px 0;
    background: #1e293b;
    color: #ffffff;
    text-align: center;
}

.xaas-cta-wide h2 {
    font-size: 32px;
    font-weight: 800;
}

.xaas-cta-wide p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* =======================================================
   PARTNERS / TRUSTED BY LOGO ROW
======================================================= */

.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 50px;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Fade-in active state triggered by JS */
.partners-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Each logo container */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    max-width: 160px;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.35s ease;
    transform: translateY(20px);
}

/* Stagger applied via JS */
.partner-logo.animate-in {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(0);
}

/* Hover effect */
.partner-logo:hover {
    transform: translateY(-4px);
    opacity: 1;
    filter: grayscale(0%);
}

/* Img inside the logo box */
.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* =======================================================
   HERO TRUST BAR — Enterprise Gold Edition
======================================================= */

.xaas-hero-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding: 18px 28px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    position: relative;

    /* gold edge glow */
    border: 1px solid rgba(255, 215, 134, 0.35);
    box-shadow:
      0 0 12px rgba(255, 208, 115, 0.25),
      inset 0 0 8px rgba(255, 215, 134, 0.15);

    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Active state when fade-up triggers */
.xaas-hero-trust.fade-active {
    opacity: 1;
    transform: translateY(0);
}

/* each trust item */
.xaas-trust-item {
    text-align: center;
    min-width: 90px;
    transform: translateY(25px);
    opacity: 0;
    transition: all 0.7s ease;
}

/* staggered by JS */
.xaas-trust-item.active {
    transform: translateY(0);
    opacity: 1;
}

/* big numbers */
.xaas-trust-number {
    font-size: 28px;
    font-weight: 800;
    color: #f9d78c; /* gold */
    text-shadow: 0 0 10px rgba(249, 215, 140, 0.45);
}

/* label under numbers */
.xaas-trust-label {
    font-size: 15px;
    color: #e2e8f0;
    opacity: 0.85;
}

/* subtle 3D parallax motion */
.xaas-hero-trust:hover {
    transform: translateY(-2px);
    transition: 0.4s ease;
}

/* hover shimmer on items */
.xaas-trust-item:hover .xaas-trust-number {
    color: #ffe9b7;
    text-shadow: 0 0 14px rgba(255, 235, 185, 0.65);
}

/* ===============================
   PARTNER / BADGE LOGO ROW
   Centered + Animated Glow
=============================== */

.xaas-partners-row {
    display: flex;
    justify-content: center;     /* TRUE CENTER */
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;                    /* uniform spacing */
    padding: 20px 0;
    text-align: center;
}

.xaas-partners-row img {
    height: 48px;                 /* consistent height */
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease, 
                transform 0.35s ease,
                filter 0.4s ease;
    
    /* Base soft glow */
    filter: drop-shadow(0 0 6px rgba(0, 162, 255, 0.25));
}

/* Hover state — subtle premium pop */
.xaas-partners-row img:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);

    /* Glow intensifies with golden/blue hue */
    filter:
        drop-shadow(0 0 6px rgba(0, 162, 255, 0.45))
        drop-shadow(0 0 12px rgba(255, 215, 0, 0.55));
}

/* ===============================
   OPTIONAL: Slow pulse glow
=============================== */
@keyframes slowGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(0, 162, 255, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(0, 162, 255, 0.25));
    }
}

/* Apply the animation — VERY subtle */
.xaas-partners-row img.glow {
    animation: slowGlow 4s ease-in-out infinite;
}


/* mobile adjustments */
@media (max-width: 600px) {
    .xaas-hero-trust {
        flex-wrap: wrap;
        gap: 18px;
        padding: 16px 16px;
    }

    .xaas-trust-number {
        font-size: 24px;
    }
}
/* Set the container for JS in Hero*/
.xaas-hero-canvas,
#xaasCubeMatrix {
    width: 100%;
    height: 420px; /* adjustable */
    position: relative;
}
.xaas-cube-container {
    width: 100%;
    height: 420px; /* adjust as needed */
    position: relative;
}
.xaas-cube-container canvas {
    position: relative;
    z-index: 1;
}
#cube-matrix {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}


.xaas-hero {
    background: transparent;
}

/* ================================
   BADGES ROW — CUSTOM DESKTOP LAYOUT
   3 circles top row, Microsoft centered bottom
=================================== */

.badges-row {
    display: grid;
    gap: 32px;
    align-items: center;
    justify-items: center;
    padding: 30px 0;
}

/* Base mobile (default) = single column */
.badges-row img {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: .95;
    transition: transform .25s ease, opacity .25s ease;
}

/* Hover effect */
@media (hover: hover) {
    .badges-row img:hover {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Tablet — 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .badges-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .badges-row img {
        height: 70px;
    }
}

/* Desktop — 3 top, 1 centered bottom */
@media (min-width: 1200px) {
    .badges-row {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        max-width: 900px;
        margin: 0 auto;
    }

    /* Make the 3 circles large */
    .badges-row img:not(.badge-ms) {
        height: 100px;
    }

    /* Microsoft badge: centered & enlarged */
    .badges-row .badge-ms {
        grid-column: 1 / 4;   /* spans all 3 columns */
        justify-self: center;
        height: 120px;
    }
}
