/* =========================================================
   Assist IT — Motion & Polish Layer
   Adds smooth scrolling, scroll-reveal, refined micro-
   interactions and small visual upgrades on top of the
   existing design system. Pure additive layer — nothing
   here overrides brand colors or layout, only feel.
   ========================================================= */

:root {
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    overflow-x: hidden;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), #ffb199);
    z-index: 2000;
    transition: width 0.1s var(--ease-soft);
}

/* ---------- Navbar: glassy on scroll ---------- */
.navbar {
    transition: background-color 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), padding 0.35s var(--ease-soft);
}

.navbar.is-scrolled {
    background-color: rgba(0, 0, 0, 0.92) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar .nav-link {
    position: relative;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0%;
    height: 2px;
    background: var(--brand);
    transition: width 0.35s var(--ease);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

/* ---------- Buttons: soft lift + sheen ---------- */
.btn-brand,
.btn-outline-light {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s ease, color 0.35s ease;
}

.btn-brand:hover,
.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(255, 77, 41, 0.28);
}

.btn-brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease);
}

.btn-brand:hover::before {
    left: 130%;
}

/* ---------- Hero slider: gentle scale-in ---------- */
.hero-slider .slide h6,
.hero-slider .slide h2,
.hero-slider .slide .btn {
    opacity: 0;
    transform: translateY(24px);
    animation: heroRise 0.9s var(--ease) forwards;
}

.hero-slider .slide h6 { animation-delay: 0.1s; }
.hero-slider .slide h2 { animation-delay: 0.25s; }
.hero-slider .slide .btn { animation-delay: 0.45s; }

@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

.slide1, .slide2 {
    background-size: cover !important;
    transition: filter 0.6s ease;
    animation: slowZoom 12s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { background-size: 100%; }
    to   { background-size: 112%; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}

.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-zoom  { transform: scale(0.92); }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* staggered children helper */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.75s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.85s; }

/* ---------- Cards: lift + glow on hover ---------- */
.service,
.info-box,
.blog-post,
.w3-third ul {
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 40px rgba(9, 32, 50, 0.14);
}

.service img {
    transition: transform 0.45s var(--ease);
}

.service:hover img {
    transform: scale(1.08) rotate(-3deg);
}

.info-box img {
    transition: transform 0.45s var(--ease);
}

.info-box:hover img {
    transform: scale(1.12);
}

.w3-third ul:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 36px rgba(9, 32, 50, 0.12) !important;
}

/* ---------- Milestone counters ---------- */
#milestone .display-4 {
    display: inline-block;
    transition: transform 0.4s var(--ease);
}

#milestone .col-lg-2:hover .display-4 {
    transform: scale(1.08);
}

/* ---------- Portfolio project image zoom ---------- */
.project img {
    transition: transform 0.7s var(--ease);
}

.project:hover img {
    transform: scale(1.08);
}

.project .content h3,
.project .content h6 {
    transition: transform 0.45s var(--ease);
}

.project:hover .content h3 {
    transform: translateY(-4px);
}

/* ---------- Team member polish ---------- */
.team-member .image {
    border-radius: 12px;
}

.team-member .image img {
    transition: transform 0.6s var(--ease);
}

.team-member:hover .image img {
    transform: scale(1.06);
}

/* ---------- Reviews ---------- */
.review {
    transition: opacity 0.5s ease;
}

.review img {
    transition: transform 0.4s var(--ease);
}

/* ---------- Section dividers (subtle) ---------- */
section#about,
section#services,
section#portfolio,
section#team,
section#pricing {
    position: relative;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 100px;
    background-color: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(255, 77, 41, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background-color 0.3s ease;
    z-index: 1500;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #d64022;
    transform: translateY(-4px);
}

/* ---------- Form focus polish ---------- */
.form-control,
.divModal input,
.divModal select {
    transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.divModal input:focus,
.divModal select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 41, 0.18);
    border-color: var(--brand);
}

/* ---------- Modal entrance ---------- */
.modal.fade .modal-dialog {
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
    transform: translateY(30px) scale(0.98);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ---------- Owl dots polish ---------- */
.owl-dots {
    margin-top: 20px !important;
}

.owl-theme .owl-dots .owl-dot span {
    transition: all 0.35s var(--ease) !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--brand) !important;
    width: 24px !important;
    border-radius: 6px !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d64022;
}
