/* ==========================================================================
   TechBiz Security — home.css (Phase 2)
   Section-specific styles for the home page only.
   ========================================================================== */

/* ---- Hero content ---- */
.hero { perspective: 1100px; }
.hero__inner { position: relative; z-index: 3; }
.hero__eyebrow { margin-bottom: var(--space-2); }
.hero h1 { margin-bottom: var(--space-2); }
.hero__sub { max-width: 600px; font-size: clamp(1rem, 2.2vw, 1.2rem); margin-bottom: var(--space-3); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Shield: right-aligned, height-tied to the hero so it never clips ---- */
.hero__shield {
    position: absolute;
    right: clamp(8px, 5vw, 90px);
    top: 50%;
    height: clamp(220px, 58%, 430px);
    aspect-ratio: 1 / 1;
    z-index: 2;
    pointer-events: none;
    display: grid;
    place-items: center;
    transform: translateY(-50%);   /* base centering (used when motion is reduced) */
    transform-style: preserve-3d;
    animation: shield-float 7s ease-in-out infinite;
    will-change: transform;
}
.hero__shield svg { width: 100%; height: 100%; filter: drop-shadow(0 0 32px var(--glow)); position: relative; z-index: 1; }
.hero__shield-glow {
    position: absolute; inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 65%);
    filter: blur(26px);
    animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes shield-float {
    0%, 100% { transform: translateY(-50%) rotateY(-11deg) rotateX(3deg) translateZ(0); }
    50%      { transform: translateY(calc(-50% - 16px)) rotateY(11deg) rotateX(-3deg) translateZ(40px); }
}
@media (max-width: 900px) { .hero__shield { display: none; } }

/* ---- Animated 3D background (this section only) ---- */
.hero__fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Moving perspective grid floor */
.hero__grid { position: absolute; inset: 0; overflow: hidden; perspective: 420px; }
.hero__grid::before {
    content: "";
    position: absolute;
    left: -60%; right: -60%; bottom: -30%;
    height: 150%;
    background-image:
        linear-gradient(color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: rotateX(62deg);
    transform-origin: bottom center;
    animation: grid-scroll 7s linear infinite;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%);
    mask-image: linear-gradient(to top, #000 0%, transparent 72%);
    opacity: 0.7;
}
@keyframes grid-scroll { to { background-position: 0 46px; } }

/* Drifting aurora orbs */
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.hero__orb--1 { width: 480px; height: 480px; top: -12%; left: 2%;
    background: radial-gradient(circle, var(--accent), transparent 60%); animation: orb-a 16s ease-in-out infinite; }
.hero__orb--2 { width: 540px; height: 540px; bottom: -18%; right: 6%;
    background: radial-gradient(circle, var(--accent-2), transparent 60%); animation: orb-b 20s ease-in-out infinite; }
.hero__orb--3 { width: 360px; height: 360px; top: 30%; left: 42%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 70%, var(--accent)), transparent 60%);
    opacity: 0.32; animation: orb-a 24s ease-in-out infinite reverse; }
@keyframes orb-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,50px) scale(1.25); } }
@keyframes orb-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,-40px) scale(1.18); } }

:root[data-theme="light"] .hero__orb { opacity: 0.30; }
:root[data-theme="light"] .hero__orb--3 { opacity: 0.18; }
:root[data-theme="light"] .hero__grid::before { opacity: 0.5; }

#particles-bg { z-index: 1; }

/* WebGL 3D hero canvas — occupies the RIGHT half so it never sits under the copy */
.hero__3d {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    z-index: 1;
    width: 54%;
    height: 100%;
    display: block;
    pointer-events: none;
}
/* keep the headline + subtext in the left column */
.hero__inner { max-width: var(--container); }
.hero h1 { max-width: 640px; }
.hero__sub { max-width: 520px; }
@media (max-width: 960px) { .hero__3d { display: none; } .hero h1, .hero__sub { max-width: none; } }

/* ---- Stats bar ---- */
.stats-bar { border-block: 1px solid var(--border); background: var(--bg-secondary); }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); padding-block: var(--space-4); }
.stats-bar .stat__num { display: flex; justify-content: center; gap: 2px; }
@media (max-width: 600px) { .stats-bar__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Why TechBiz (split) ---- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-5); align-items: center; }
.why__list { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.why__item { display: flex; gap: var(--space-2); }
.why__num {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    font-family: var(--font-head); font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid var(--border);
}
.why__item h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.why__item p { font-size: 0.9rem; }
.why__art { display: grid; place-items: center; }
.why__art svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why__art { order: -1; } }

/* ---- Testimonials carousel ---- */
.tcarousel { position: relative; max-width: 760px; margin: 0 auto; }
.tcarousel__track { overflow: hidden; }
.tcarousel__slides { display: flex; transition: transform 0.5s ease; }
.tcarousel__slide { flex: 0 0 100%; padding: 0 0.5rem; }
.tcarousel__quote { font-size: 1.1rem; color: var(--text); line-height: 1.7; font-style: italic; }
.tcarousel__quote::before { content: "\201C"; color: var(--accent); font-size: 2rem; font-family: var(--font-head); margin-right: 4px; }
.tcarousel__author { margin-top: var(--space-3); display: flex; align-items: center; gap: 0.8rem; justify-content: center; }
.tcarousel__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent); font-family: var(--font-head); font-weight: 700;
}
.tcarousel__name { font-weight: 600; color: var(--text); }
.tcarousel__role { font-size: 0.85rem; color: var(--text-secondary); }
.tcarousel__stars { color: #e6a52f; margin-top: 0.5rem; }
.tcarousel__nav { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--space-3); }
.tcarousel__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--border-strong); cursor: pointer; }
.tcarousel__dot.is-active { background: var(--accent); width: 26px; border-radius: 6px; }
.tcarousel__btn {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-solid);
    color: var(--text); cursor: pointer;
}
.tcarousel__btn:hover { border-color: var(--accent); color: var(--accent); }
.tcarousel__btn--prev { left: -68px; }
.tcarousel__btn--next { right: -68px; }
@media (max-width: 920px) { .tcarousel__btn { display: none; } }

/* ---- Blog preview ---- */
.post-card__meta { display: flex; gap: 0.8rem; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.post-card__meta .badge { padding: 0.15rem 0.6rem; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

/* ---- Global presence ---- */
.global { text-align: center; }
.global__map { position: relative; max-width: 560px; margin: var(--space-4) auto 0; }
.global__map svg { width: 100%; height: auto; overflow: visible; }
.global__grid { stroke: color-mix(in srgb, var(--accent) 38%, transparent); }
.global__globe { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: color-mix(in srgb, var(--accent) 45%, transparent); }
.global__marker { fill: var(--accent); filter: drop-shadow(0 0 3px var(--glow)); }
.global__ring { fill: none; stroke: var(--accent); }
.global__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.global__legend li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--text-secondary); }
.global__legend i { color: var(--accent); }

/* ---- Contact CTA ---- */
.contact-cta { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.contact-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
@media (max-width: 900px) { .contact-cta__grid { grid-template-columns: 1fr; } }
.contact-cta__form .field { margin-bottom: var(--space-2); }
