/* ==========================================================
   Quick Staff India — custom styles (layered on top of Tailwind)
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #e0293e;
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0a0d13; }
::-webkit-scrollbar-thumb { background: #2a3140; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #e0293e; }

/* ---------- Decorative graphics ---------- */
.tactical-grid {
    background-image:
        linear-gradient(rgba(224, 41, 62, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 41, 62, 0.35) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* ---------- Section frame ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e0293e;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
}
@media (min-width: 640px) {
    .section-title { font-size: 2.5rem; }
}
.section-subtitle {
    color: #8b93a3;
    font-size: 1rem;
    line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #e0293e, #9c1526);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.6rem;
    border-radius: 0.65rem;
    box-shadow: 0 8px 24px -6px rgba(224, 41, 62, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -6px rgba(224, 41, 62, 0.75);
    filter: brightness(1.08);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: #e7eaef;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.6rem;
    border-radius: 0.65rem;
    border: 1px solid #232a37;
    transition: all 0.25s ease;
}
.btn-outline:hover {
    border-color: #e0293e;
    color: #fff;
    background: rgba(224, 41, 62, 0.08);
    transform: translateY(-3px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: #9c1526;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.85rem 1.6rem;
    border-radius: 0.65rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.4);
}

/* ---------- Nav ---------- */
.nav-link {
    position: relative;
    color: #c7cdd8;
    transition: color 0.25s ease;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #e0293e;
    transition: width 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.mobile-link {
    padding: 0.7rem 0;
    color: #c7cdd8;
    border-bottom: 1px solid #1c2230;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover { color: #e0293e; padding-left: 6px; }

#mainHeader.header-scrolled {
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    border-color: #1c2230;
}

/* ---------- Cards / hover ---------- */
.hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
    border-color: rgba(224, 41, 62, 0.5);
}

.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(224, 41, 62, 0.12);
    color: #e0293e;
    font-size: 1.15rem;
    border: 1px solid rgba(224, 41, 62, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}
.group:hover .icon-badge,
.hover-lift:hover .icon-badge {
    background: #e0293e;
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c7cdd8;
}
.trust-pill i { color: #e0293e; }

.chip {
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c7cdd8;
    background: #141922;
    border: 1px solid #232a37;
    border-radius: 999px;
    transition: all 0.25s ease;
    cursor: default;
}
.chip:hover {
    background: #e0293e;
    color: #fff;
    border-color: #e0293e;
    transform: translateY(-2px);
}

.media-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    background: radial-gradient(circle at 30% 20%, rgba(224, 41, 62, 0.25), #141922 70%);
    border: 1px solid #232a37;
    color: #e7eaef;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    transition: transform 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}
.media-tile i { font-size: 1.6rem; color: #e0293e; }
.media-tile span { position: relative; }
.media-tile:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(224, 41, 62, 0.6);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: #141922;
    border: 1px solid #232a37;
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.contact-card:hover {
    border-color: rgba(224, 41, 62, 0.5);
    transform: translateX(4px);
}

.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #e0293e;
    transition: width 0.25s ease;
}
.link-underline:hover::after { width: 100%; }

/* ---------- Footer ---------- */
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.footer-link:hover { color: #e0293e; padding-left: 4px; }

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.6rem;
    background: #141922;
    border: 1px solid #232a37;
    color: #c7cdd8;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: #e0293e;
    border-color: #e0293e;
    color: #fff;
    transform: translateY(-4px) rotate(-6deg);
}

/* ---------- Forms ---------- */
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8b93a3;
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    background: #0e131b;
    border: 1px solid #232a37;
    color: #e7eaef;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
.form-input::placeholder { color: #5a6270; }
.form-input:focus {
    border-color: #e0293e;
    box-shadow: 0 0 0 3px rgba(224, 41, 62, 0.18);
}

/* ---------- Marquee ---------- */
.marquee-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    animation: marquee 32s linear infinite;
}
.marquee-mask:hover .marquee-track {
    animation-play-state: paused;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Reveal on scroll ---------- */
/* Every variant shares the same timing engine; only the "from" state differs. */
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-flip,
.reveal-rotate,
.reveal-blur,
.reveal-mask {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.8s ease,
        clip-path 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal-up      { transform: translateY(28px); }
.reveal-down    { transform: translateY(-28px); }
.reveal-left    { transform: translateX(-56px); }
.reveal-right   { transform: translateX(56px); }
.reveal-zoom    { transform: scale(0.86); }
.reveal-flip    { transform: perspective(1000px) rotateX(-14deg) translateY(34px); transform-origin: top center; }
.reveal-rotate  { transform: rotate(-4deg) scale(0.94); }
.reveal-blur    { transform: translateY(20px); filter: blur(12px); }
.reveal-mask    { clip-path: inset(0 0 100% 0); transform: translateY(20px); }

.reveal-up.is-visible,
.reveal-down.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible,
.reveal-flip.is-visible,
.reveal-rotate.is-visible,
.reveal-blur.is-visible,
.reveal-mask.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0 0 0 0);
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-down,
    .reveal-left,
    .reveal-right,
    .reveal-zoom,
    .reveal-flip,
    .reveal-rotate,
    .reveal-blur,
    .reveal-mask {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
        transition: none;
    }
}

/* ---------- Testimonial carousel ---------- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #141922;
    border: 1px solid #232a37;
    color: #e7eaef;
    transition: all 0.25s ease;
    z-index: 10;
}
.carousel-nav:hover {
    background: #e0293e;
    border-color: #e0293e;
    transform: translateY(-50%) scale(1.08);
}
.dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #232a37;
    transition: all 0.25s ease;
    cursor: pointer;
}
.dot.active {
    width: 1.5rem;
    background: #e0293e;
}

/* ---------- Floating action buttons ---------- */
.whatsapp-float {
    animation: pulseGreen 2.4s ease-in-out infinite;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Counter-safe number font */
.font-heading { font-family: 'Rajdhani', 'Inter', sans-serif; }
