/* 3003i Tech & Consulting — shared styles */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

::selection { background: #3b6ef5; color: #fff; }

/* ---------- Text & surface treatments ---------- */
.gradient-text {
    background: linear-gradient(90deg, #3b6ef5 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.dot-grid {
    background-image: radial-gradient(rgba(10, 15, 28, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
}

.glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(130px);
    opacity: 0.32;
    pointer-events: none;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* ---------- Cards ---------- */
.card-hover {
    transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 110, 245, 0.35);
    box-shadow: 0 24px 50px -24px rgba(11, 26, 58, 0.28);
}

.tilt-icon { transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
.card-hover:hover .tilt-icon { transform: rotate(-6deg) scale(1.06); }

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav-link { position: relative; }
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b6ef5, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #0a0f1c; }

.header-scrolled { box-shadow: 0 1px 0 rgba(10, 15, 28, .06), 0 12px 28px -24px rgba(10, 15, 28, .5); }

/* ---------- Scroll progress ---------- */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, #3b6ef5, #8b5cf6, #ec4899);
    z-index: 60; transition: width .1s linear;
}

/* ---------- Accordion ---------- */
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.7,.3,1); }
.acc-item.is-open .acc-panel { max-height: 420px; }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }
.acc-chevron { transition: transform .3s ease; }

/* ---------- Tabs ---------- */
.tab-btn.is-active {
    background: #0a0f1c;
    color: #fff;
    border-color: #0a0f1c;
}

/* ---------- Back to top ---------- */
#to-top {
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    transform: translateY(10px);
}
#to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Misc ---------- */
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.field:focus { outline: none; border-color: #3b6ef5; box-shadow: 0 0 0 4px rgba(59, 110, 245, .12); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee__track { animation: none; }
}
