/* ===========================================================
   NuvexSoft — Custom CSS (Tailwind CDN supplements this)
   Only animations, scrollbar, and complex effects live here.
   All layout/spacing/color uses Tailwind classes inline.
   =========================================================== */

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---- Selection ---- */
::selection {
    background: #f5008b;
    color: #fff;
}

/* ---- FAQ Accordion ---- */
.faq-item.active .max-h-0 {
    max-h: 300px;
}

.faq-item.active .fa-plus {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: #1b4dd1;
    box-shadow: 0 10px 30px rgba(27, 77, 209, 0.08);
}

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Animations ---- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---- Animation classes ---- */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 4s ease-in-out 1s infinite;
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* TPK Style Utilities */
.tpk-mark {
    position: relative;
    display: inline-block;
    z-index: 1;
    font-weight: 700;
}

.tpk-mark::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 45%;
    background: #FFDE59;
    z-index: -1;
    border-radius: 2px;
    opacity: 0.9;
}

.bg-luminous-dusk {
    background: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgb(199, 81, 192) 50%, rgb(65, 88, 208) 100%);
}

.bg-blush-light-purple {
    background: linear-gradient(135deg, rgb(255, 206, 236) 0%, rgb(152, 150, 240) 100%);
}

.hero-vibrant-bg {
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    position: relative;
}

/* Scroll-triggered fade animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger>*:nth-child(1) {
    transition-delay: 0ms;
}

.stagger>*:nth-child(2) {
    transition-delay: 80ms;
}

.stagger>*:nth-child(3) {
    transition-delay: 160ms;
}

.stagger>*:nth-child(4) {
    transition-delay: 240ms;
}

.stagger>*:nth-child(5) {
    transition-delay: 320ms;
}

.stagger>*:nth-child(6) {
    transition-delay: 400ms;
}

.stagger>*:nth-child(7) {
    transition-delay: 480ms;
}

.stagger>*:nth-child(8) {
    transition-delay: 560ms;
}

/* ---- Navbar scroll state ---- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Hamburger animation ---- */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0d1b2a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Service card top border reveal ---- */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: 12px 12px 0 0;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ---- Portfolio filter tabs ---- */
.filter-tab {
    transition: all 0.25s ease;
}

.filter-tab.active {
    background: #0d1b2a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.25);
}

/* ---- Quote form gradient border ---- */
.form-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8, #7dd3fc);
    z-index: -1;
    opacity: 0.15;
}

/* ---- Counter number ---- */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ---- WhatsApp widget ---- */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* ---- Scroll to top ---- */
.scroll-top {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 998;
    width: 44px;
    height: 44px;
    background: #0d1b2a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-2px);
    background: #1b2d45;
}

/* ---- Client logo marquee ---- */
.logo-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
}

/* ---- Modal ---- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* ---- Responsive fixes ---- */
@media (max-width: 1024px) {
    .logo-track {
        animation-duration: 20s;
    }
}

@media (max-width: 640px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top {
        bottom: 78px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}