/**
 * Hero, Trust Bar & Categories CSS
 * Premium dark aesthetic with orange glow — matches xtechoficial.com
 */

/* ============================================================
   HERO BANNER
============================================================ */
.xtech-hero {
    position: relative;
    padding: 7rem 0 4rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 140, 0, 0.08) 0%, transparent 55%),
                var(--xtech-bg-base);
}

.xtech-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.xtech-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
                rgba(8, 8, 8, 0.4) 0%,
                rgba(8, 8, 8, 0.85) 60%,
                rgba(8, 8, 8, 1) 100%);
}

.xtech-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
}

.xtech-hero .container {
    position: relative;
    z-index: 2;
}

.xtech-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.25rem;
}

/* ---------- Mega Title ---------- */
.xtech-hero__mega-title-wrapper {
    margin-bottom: 0.75rem;
}

.xtech-hero__mega-title {
    font-family: var(--xtech-font-heading);
    font-size: clamp(2.75rem, 10vw, 7.5rem);
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -0.045em;
    margin: 0;
}

.xtech-hero__mega-title-line {
    display: block;
    color: #ffffff;
}

.xtech-gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #8f8f8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xtech-hero__content {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.xtech-hero__subtitle {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.xtech-hero__description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--xtech-text-secondary);
    margin: 0 auto 2.25rem;
    max-width: 620px;
    line-height: 1.65;
}

.xtech-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* ---------- Image Stage ---------- */
.xtech-hero__image-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, #000 100%);
    border-radius: 48px 48px 0 0;
    padding: 3rem 1.5rem 0;
    display: flex;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 -30px 80px -20px rgba(255, 140, 0, 0.2);
}

.xtech-hero__images-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    z-index: 5;
}

.xtech-hero__main-img {
    position: relative;
    z-index: 2;
    max-height: 720px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 30px rgba(255, 140, 0, 0.15));
    transform: scale(1.05);
}

.xtech-hero__overlay-img {
    position: absolute;
    bottom: -6%;
    left: -6%;
    z-index: 5;
    width: 48%;
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.8));
    animation: xtech-float 6s ease-in-out infinite;
    transform-origin: center center;
}

/* ---------- Orange Glow (dual-layer for premium depth) ---------- */
.xtech-hero__glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at center,
                rgba(255, 140, 0, 0.75) 0%,
                rgba(255, 69, 0, 0.35) 35%,
                rgba(255, 140, 0, 0) 70%);
    filter: blur(90px);
    opacity: 0.75;
    z-index: 1;
    pointer-events: none;
    animation: xtech-glow-pulse 7s ease-in-out infinite alternate;
}

.xtech-hero__glow::after {
    content: '';
    position: absolute;
    inset: 20%;
    background: radial-gradient(circle at center,
                rgba(255, 166, 64, 0.5) 0%,
                rgba(255, 140, 0, 0) 65%);
    filter: blur(50px);
}

@keyframes xtech-glow-pulse {
    0%   { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes xtech-float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 1024px) {
    .xtech-hero { padding: 6rem 0 3rem; min-height: 80vh; }
    .xtech-hero__image-stage { max-width: 680px; padding: 2rem 1rem 0; border-radius: 36px 36px 0 0; }
    .xtech-hero__main-img { max-height: 520px; transform: scale(1); }
}

@media (max-width: 768px) {
    .xtech-hero { padding: 5rem 0 2rem; min-height: 75vh; }
    .xtech-hero__inner { gap: 1.5rem; }
    .xtech-hero__actions { gap: 0.75rem; margin-bottom: 2rem; }
    .xtech-hero__image-stage { border-radius: 28px 28px 0 0; padding: 1.5rem 1rem 0; }
    .xtech-hero__main-img { max-height: 400px; transform: scale(1); }
    .xtech-hero__overlay-img { left: -5%; bottom: -12%; width: 55%; }
    .xtech-hero__glow { filter: blur(70px); }
}

@media (max-width: 480px) {
    .xtech-hero__actions .xtech-btn { flex: 1 1 100%; }
    .xtech-hero__overlay-img { width: 60%; }
}

/* ============================================================
   TRUST BAR
============================================================ */
.xtech-trust {
    background: #000000;
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.xtech-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.xtech-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 0.5rem 0;
}

.xtech-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.18), rgba(255, 69, 0, 0.08));
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: var(--xtech-primary);
    border-radius: var(--xtech-radius-md);
    flex-shrink: 0;
    box-shadow: 0 8px 20px -8px rgba(255, 140, 0, 0.4);
}

.xtech-trust__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--xtech-primary);
}

.xtech-trust__text h4 {
    font-family: var(--xtech-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: #fff;
    letter-spacing: -0.01em;
}

.xtech-trust__text p {
    font-size: 0.9rem;
    color: var(--xtech-text-muted);
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 768px) {
    .xtech-trust { padding: 2.5rem 0; }
    .xtech-trust__grid { gap: 1.5rem; }
}

/* ============================================================
   CATEGORIES GRID (image cards)
============================================================ */
.xtech-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.xtech-category-card {
    position: relative;
    border-radius: var(--xtech-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.xtech-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.xtech-category-card__image {
    width: 100%;
    height: 100%;
}

.xtech-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.xtech-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.2) 70%);
    z-index: 1;
}

.xtech-category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.75rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.xtech-category-card__name {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.xtech-category-card__count {
    color: var(--xtech-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.xtech-category-card:hover .xtech-category-card__image img {
    transform: scale(1.08);
}

.xtech-category-card:hover .xtech-category-card__content {
    transform: translateY(-4px);
}

/* ============================================================
   PROMO BANNER (homepage, below hero)
============================================================ */
.xtech-promo {
    background: var(--xtech-bg-base);
    padding: 0;
    width: 100%;
}

.xtech-promo__inner {
    width: 100%;
    margin: 0 auto;
    line-height: 0; /* eats inline whitespace under the image */
}

.xtech-promo__media {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #000;
    transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 0.3s ease;
}

.xtech-promo__media--link {
    cursor: pointer;
}

.xtech-promo__pic {
    display: block;
    width: 100%;
}

.xtech-promo__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Mobile — full bleed for maximum impact */
@media (max-width: 768px) {
    .xtech-promo {
        padding: 0;
    }
    .xtech-promo__inner {
        max-width: 100%;
        padding: 0;
    }
    .xtech-promo__media {
        border-radius: 0;
    }
}

/* Desktop — contained, rounded card with premium glow */
@media (min-width: 769px) {
    .xtech-promo {
        padding: 3rem 0;
    }
    .xtech-promo__inner {
        max-width: var(--xtech-container-width);
        padding: 0 2rem;
    }
    .xtech-promo__media {
        border-radius: var(--xtech-radius-xl);
        box-shadow: 0 25px 60px -25px rgba(0, 0, 0, 0.8),
                    0 0 0 1px rgba(255, 255, 255, 0.04);
    }
    .xtech-promo__media--link:hover {
        transform: translateY(-3px);
        box-shadow: 0 35px 70px -25px rgba(0, 0, 0, 0.9),
                    0 0 0 1px rgba(255, 140, 0, 0.25),
                    0 0 40px -10px rgba(255, 140, 0, 0.25);
    }
}
