/*================================================
  Hero Pro — ultra-modern full-bleed IT firm hero
================================================*/
.hero-pro {
    --hero-ink: #f8fafc;
    --hero-muted: rgba(248, 250, 252, 0.82);
    --hero-line: rgba(255, 255, 255, 0.14);
    --hero-accent: var(--itzone-base, #6e54f3);
    --hero-accent-2: var(--itzone-accent-2);
    --hero-tilt-x: 0;
    --hero-tilt-y: 0;
    position: relative;
    min-height: clamp(640px, 92vh, 900px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--hero-ink);
    background: #070d1a;
    isolation: isolate;
}

body:not(.site-theme-dark) .hero-pro {
    --hero-ink: #ffffff;
    --hero-muted: rgba(255, 255, 255, 0.86);
}

.hero-pro__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-pro__media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    transform: scale(1.04);
    animation: heroKenBurns 18s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-pro__media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(7, 13, 26, 0.94) 0%, rgba(7, 13, 26, 0.78) 42%, rgba(7, 13, 26, 0.42) 68%, rgba(7, 13, 26, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 13, 26, 0.35) 0%, rgba(7, 13, 26, 0.15) 40%, rgba(7, 13, 26, 0.72) 100%);
    z-index: 1;
}

.hero-pro__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero-pro__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 2;
    pointer-events: none;
    opacity: 0.55;
}

.hero-pro__orb--a {
    width: 280px;
    height: 280px;
    left: -60px;
    top: 18%;
    background: rgba(var(--itzone-base-rgb), 0.55);
    animation: heroOrbFloat 9s ease-in-out infinite;
}

.hero-pro__orb--b {
    width: 220px;
    height: 220px;
    right: 12%;
    bottom: 12%;
    background: rgba(var(--itzone-accent-2-rgb), 0.35);
    animation: heroOrbFloat 11s ease-in-out infinite reverse;
}

.hero-pro__orb--c {
    width: 140px;
    height: 140px;
    left: 42%;
    top: 14%;
    background: rgba(56, 189, 248, 0.22);
    animation: heroOrbFloat 8s ease-in-out infinite 1s;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(18px, -22px, 0); }
}

/*--------------------------------------------------------------
# Morphing gradient shapes
--------------------------------------------------------------*/
.hero-pro__shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-pro__shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.35;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.hero-pro__shape--1 {
    width: 380px;
    height: 380px;
    left: 5%;
    top: 10%;
    background: linear-gradient(135deg, rgba(var(--itzone-base-rgb), 0.6), rgba(var(--itzone-accent-2-rgb), 0.4));
    animation: heroMorph 12s ease-in-out infinite, heroFloat1 15s ease-in-out infinite;
}

.hero-pro__shape--2 {
    width: 320px;
    height: 320px;
    right: 8%;
    top: 35%;
    background: linear-gradient(225deg, rgba(56, 189, 248, 0.4), rgba(var(--itzone-base-rgb), 0.35));
    animation: heroMorph 14s ease-in-out infinite reverse, heroFloat2 18s ease-in-out infinite;
}

.hero-pro__shape--3 {
    width: 280px;
    height: 280px;
    left: 45%;
    bottom: 15%;
    background: linear-gradient(315deg, rgba(255, 107, 181, 0.35), rgba(var(--itzone-accent-2-rgb), 0.3));
    animation: heroMorph 16s ease-in-out infinite, heroFloat3 20s ease-in-out infinite;
}

@keyframes heroMorph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 40% 60% 50%;
    }
    75% {
        border-radius: 60% 30% 40% 70% / 60% 50% 40% 50%;
    }
}

@keyframes heroFloat1 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(30px, -20px, 0) rotate(5deg); }
    66% { transform: translate3d(-20px, 30px, 0) rotate(-5deg); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(-25px, 35px, 0) rotate(-7deg); }
    66% { transform: translate3d(30px, -15px, 0) rotate(7deg); }
}

@keyframes heroFloat3 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(20px, 30px, 0) rotate(6deg); }
    66% { transform: translate3d(-30px, -20px, 0) rotate(-6deg); }
}

/*--------------------------------------------------------------
# Floating tech particles
--------------------------------------------------------------*/
.hero-pro__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-pro__particle {
    position: absolute;
    font-size: clamp(20px, 2.5vw, 32px);
    color: rgba(255, 255, 255, 0.15);
    animation: heroParticleFloat 25s linear infinite;
    animation-delay: calc(var(--p, 0) * -3s);
}

.hero-pro__particle:nth-child(1) { left: 10%; animation-duration: 22s; }
.hero-pro__particle:nth-child(2) { left: 20%; animation-duration: 28s; }
.hero-pro__particle:nth-child(3) { left: 35%; animation-duration: 24s; }
.hero-pro__particle:nth-child(4) { left: 50%; animation-duration: 30s; }
.hero-pro__particle:nth-child(5) { left: 65%; animation-duration: 26s; }
.hero-pro__particle:nth-child(6) { left: 75%; animation-duration: 23s; }
.hero-pro__particle:nth-child(7) { left: 85%; animation-duration: 27s; }
.hero-pro__particle:nth-child(8) { left: 92%; animation-duration: 25s; }

@keyframes heroParticleFloat {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg) scale(1.1);
        opacity: 0;
    }
}

.hero-pro__inner {
    position: relative;
    z-index: 3;
    padding: clamp(120px, 16vh, 160px) 0 clamp(72px, 10vh, 110px);
    max-width: 720px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

/* 3D Parallax tilt effect */
[data-tilt] {
    transform: perspective(1000px)
               rotateX(calc(var(--hero-tilt-y, 0) * 0.5deg))
               rotateY(calc(var(--hero-tilt-x, 0) * 0.5deg))
               translateZ(20px);
}

.hero-pro__copy {
    animation: heroRise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger animation for sequential entrance */
[data-hero-stagger] {
    opacity: 0;
    transform: translateY(30px);
    animation: heroStaggerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-hero-stagger="0"] { animation-delay: 0.1s; }
[data-hero-stagger="1"] { animation-delay: 0.25s; }
[data-hero-stagger="2"] { animation-delay: 0.4s; }
[data-hero-stagger="3"] { animation-delay: 0.55s; }
[data-hero-stagger="4"] { animation-delay: 0.7s; }
[data-hero-stagger="5"] { animation-delay: 0.85s; }

@keyframes heroStaggerIn {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-pro__brand {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-pro__brand::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--itzone-base), var(--itzone-accent-2));
}

.hero-pro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    color: #e9e4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-pro__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hero-accent);
    box-shadow: 0 0 0 0 rgba(var(--itzone-base-rgb), 0.7);
    animation: heroPulse 2s ease-out infinite;
}

@keyframes heroPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--itzone-base-rgb), 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(var(--itzone-base-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--itzone-base-rgb), 0); }
}

.hero-pro__title {
    margin: 0 0 20px;
    color: #fff !important;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 12ch;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-pro__title-line {
    display: block;
    overflow: hidden;
}

/* Typing animation effect */
.hero-pro__title-text {
    display: inline-block;
    position: relative;
}

.hero-pro__title-text[data-typing]::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--hero-accent);
    animation: heroTypingCursor 0.8s step-end infinite;
}

@keyframes heroTypingCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Glitch effect for accent text */
.hero-pro__title-accent {
    display: inline-block;
    position: relative;
    background: linear-gradient(120deg, #ff9ec8 0%, var(--itzone-base) 45%, #ff6bb5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroShimmer 4.5s ease-in-out infinite;
}

.hero-pro__title-accent:hover {
    animation: heroGlitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.hero-pro__title-accent::before,
.hero-pro__title-accent::after {
    content: attr(data-glitch);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
}

.hero-pro__title-accent:hover::before {
    color: #ff6bb5;
    animation: heroGlitchBefore 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.hero-pro__title-accent:hover::after {
    color: #00ffff;
    animation: heroGlitchAfter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
}

@keyframes heroGlitch {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(-2px, 2px); }
    66% { transform: translate(2px, -2px); }
}

@keyframes heroGlitchBefore {
    0%, 100% { 
        opacity: 0;
        transform: translate(0);
    }
    33% { 
        opacity: 0.7;
        transform: translate(2px, -2px);
    }
    66% { 
        opacity: 0.7;
        transform: translate(-2px, 2px);
    }
}

@keyframes heroGlitchAfter {
    0%, 100% { 
        opacity: 0;
        transform: translate(0);
    }
    33% { 
        opacity: 0.7;
        transform: translate(-3px, 3px);
    }
    66% { 
        opacity: 0.7;
        transform: translate(3px, -3px);
    }
}

@keyframes heroShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.18); }
}

.hero-pro__text {
    margin: 0 0 32px;
    max-width: 540px;
    color: var(--hero-muted) !important;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.7;
}

.hero-pro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-pro__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 1;
}

.hero-pro__btn-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: transform .35s ease, opacity .35s ease;
}

.hero-pro__btn-content {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.hero-pro__btn span {
    transition: transform .25s ease;
}

.hero-pro__btn:hover .hero-pro__btn-content span {
    transform: translateX(4px);
}

.hero-pro__btn--primary {
    color: #fff;
    border: none;
}

.hero-pro__btn--primary .hero-pro__btn-bg {
    background: linear-gradient(135deg, var(--itzone-accent-2) 0%, var(--itzone-base) 50%, #ff6bb5 100%);
    box-shadow: 0 14px 40px rgba(var(--itzone-base-rgb), 0.38);
}

.hero-pro__btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6bb5 0%, var(--itzone-base) 50%, var(--itzone-accent-2) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}

.hero-pro__btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.hero-pro__btn--primary:hover .hero-pro__btn-bg {
    opacity: 0;
}

.hero-pro__btn--primary:hover::before {
    opacity: 1;
}

.hero-pro__btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: scale(0);
    transition: transform .5s ease;
    z-index: 0;
}

.hero-pro__btn--primary:hover::after {
    transform: scale(2);
    opacity: 0;
}

.hero-pro__btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-pro__btn--ghost .hero-pro__btn-bg {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.hero-pro__btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-pro__btn--ghost:hover .hero-pro__btn-bg {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.hero-pro__play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 4px;
    color: #fff;
    text-decoration: none;
}

.hero-pro__play-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 0 rgba(var(--itzone-base-rgb), 0.35);
    animation: heroPulse 2.4s ease-out infinite;
}

.hero-pro__play-icon i {
    margin-left: 2px;
    font-size: 14px;
}

.hero-pro__play-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-pro__trust {
    list-style: none;
    margin: 0;
    padding: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    border-top: 1px solid var(--hero-line);
}

.hero-pro__trust li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 8px;
    position: relative;
}

.hero-pro__trust li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--itzone-base), var(--itzone-accent-2));
    border-radius: 999px;
    animation: heroCounterBar 1.2s ease-out forwards;
    animation-delay: calc(0.9s + (var(--counter-index, 0) * 0.15s));
}

.hero-pro__trust li:nth-child(1) { --counter-index: 0; }
.hero-pro__trust li:nth-child(2) { --counter-index: 1; }
.hero-pro__trust li:nth-child(3) { --counter-index: 2; }

@keyframes heroCounterBar {
    to { width: 40px; }
}

.hero-pro__trust strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.hero-pro__trust .hero-pro__counter {
    display: inline-block;
    min-width: 2ch;
    font-variant-numeric: tabular-nums;
}

.hero-pro__trust span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.hero-pro__scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    width: 24px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-pro__scroll span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    animation: heroScroll 1.6s ease-in-out infinite;
}

@keyframes heroScroll {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 991px) {
    .hero-pro {
        min-height: clamp(520px, 78vh, 720px);
    }

    .hero-pro__media-img {
        object-position: center center;
    }

    .hero-pro__media-shade {
        background:
            linear-gradient(180deg, rgba(7, 13, 26, 0.78) 0%, rgba(7, 13, 26, 0.72) 45%, rgba(7, 13, 26, 0.9) 100%),
            linear-gradient(90deg, rgba(7, 13, 26, 0.7) 0%, rgba(7, 13, 26, 0.35) 100%);
    }

    .hero-pro__title {
        max-width: none;
        font-size: clamp(1.85rem, 4.6vw, 2.75rem);
        line-height: 1.15;
    }

    .hero-pro__shapes {
        opacity: 0.6;
    }

    .hero-pro__shape {
        filter: blur(50px);
    }

    .hero-pro__particles {
        opacity: 0.5;
    }

    /* Disable 3D tilt on tablets */
    [data-tilt] {
        transform: none !important;
    }
}

@media (max-width: 767px) {
    .hero-pro {
        min-height: auto;
    }

    .hero-pro__inner {
        padding-top: 96px;
        padding-bottom: 64px;
    }

    .hero-pro__title {
        font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    }

    .hero-pro__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-pro__btn,
    .hero-pro__play {
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }

    .hero-pro__play {
        margin-left: 0;
        padding: 8px 0;
    }

    .hero-pro__trust {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-pro__scroll {
        display: none;
    }

    .hero-pro__shapes {
        opacity: 0.4;
    }

    .hero-pro__shape {
        filter: blur(40px);
    }

    .hero-pro__particles {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-pro__inner {
        padding-top: 88px;
        padding-bottom: 52px;
    }

    .hero-pro__title {
        font-size: 1.55rem;
    }

    .hero-pro__title-text[data-typing]::after {
        right: -5px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-pro__media-img,
    .hero-pro__orb,
    .hero-pro__eyebrow-dot,
    .hero-pro__play-icon,
    .hero-pro__title-accent,
    .hero-pro__copy,
    .hero-pro__scroll span,
    .hero-pro__shape,
    .hero-pro__particle,
    .hero-pro__btn-bg,
    .hero-pro__btn::before,
    .hero-pro__btn::after,
    [data-hero-stagger],
    [data-tilt] {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .hero-pro__title-text[data-typing]::after {
        display: none;
    }

    .hero-pro__title-accent::before,
    .hero-pro__title-accent::after {
        display: none;
    }
}
