﻿@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

body {
    background: #FFFFFF;
    height: 200vh;
    font-family: "Mulish", sans-serif;
    font-weight:500;
}

/* ===============================================================
        Nav Bar and Desktop Scroll Effect Section
================================================================*/

.glass-nav {
    background: #FFFFFF99 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    #logoSection, #actionBtn {
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scrolled #logoSection {
        transform: translateX(180px);
    }

    .scrolled #actionBtn {
        transform: translateX(-180px);
    }
}

    .hover-anim span {
        display: inline-block;
        transition: none; 
    }

    .hover-anim:hover span {
        animation: topSlideInOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

@keyframes topSlideInOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    48% {
        transform: translateY(-130%);
        opacity: 0;
    }

    52% {
        transform: translateY(130%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.top-arrow-icon {
    left: 160px;
}

/* ===============================================================
          Mobile toggle Section
================================================================*/

#sharedMegaMenu {
    width: 100%;
    max-width: 1290px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    #sharedMegaMenu {
        position: relative;
        max-width: none;
        width: auto;
    }

    .top-arrow-icon {
        left: 130px;
    }
}

button {
    transition: transform 0.2s ease-in-out !important;
}

#mobileMegaMenu {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobileMegaOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}


body.no-scroll {
    overflow: hidden;
    height: 100vh;
}



/* ===============================================================
          Trusted by Leading Companies Worldwide Section
================================================================*/

.logo-item {
    @apply tw-flex tw-items-center tw-gap-2 tw-grayscale hover:tw-grayscale-0 tw-transition-all tw-duration-300;
}

    .logo-item span {
        @apply tw-text-lg tw-font-bold tw-text-gray-600;
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tw-animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform; 
}

    .tw-animate-marquee:hover {
        animation-play-state: paused;
        cursor: pointer;
    }

.tw-mask-fade {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.codetrex-run-right{
    width:450px;
}

@media (max-width: 767px) {
    .codetrex-run-right {
        width: auto !important;
    }
}

/* ===============================================================
 
================================================================*/

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.17, 0.55, 0.55, 1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.features-section {
    box-shadow: 0.1rem 0.3rem 0.5rem rgba(0,0,0,0.2);
}


.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.8s;
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.3s;
}

.stagger-3 {
    transition-delay: 0.5s;
}

.stagger-4 {
    transition-delay: 0.7s;
}

/* ===============================================================
    Why Choose Codetrex Platform Section Vertical Scrolling
================================================================*/

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.tw-animate-vertical-scroll {
    animation: scrollUp 25s linear infinite;
}

    .tw-animate-vertical-scroll:hover {
        animation-play-state: paused;
    }

.tw-mask-v-fade {
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* ==================================
    Testimonial Section
================================================*/

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.tw-animate-marquee-left {
    animation: marquee-left 40s linear infinite;
}

.tw-animate-marquee-right {
    animation: marquee-right 40s linear infinite;
}

    .tw-animate-marquee-left:hover, .tw-animate-marquee-right:hover {
        animation-play-state: paused;
    }

/*============================================
    Top Backgound Grid CSS

===============================================*/

.square:not(:last-child) {
    border-right: 1.35px solid rgba(0,0,0,0.03);
}

.square {
    border-right: 1.35px solid rgba(0,0,0,0.03);
    border-bottom: 1.35px solid rgba(0,0,0,0.03);
    box-sizing: border-box;
    transition: background 0.6s ease;
    aspect-ratio: 1 / 1;
    will-change: background;
}

    .square.active {
        background: rgba(0, 208, 132, 0.15);
        transition: background 0s;
    }

.hero-content-layer a,
.hero-content-layer button,
.hero-content-layer .glass-nav {
    pointer-events: auto;
}

.hero-content-layer {
    pointer-events: none;
}


/*============================================
    Landing Codtrex Runs Section
===============================================*/


@media (min-width: 1025px) {
    .codetrex-runs-img {
        display:block;
    }
}

/*============================================
    Landing Codtrex Runs Section
===============================================*/

@media (max-width: 1023px) {
    .effortless-payroll-leave {
        width:100% !important;
    }

    .landing-pay-slip{
        flex-wrap:wrap;
    }
}


/*=========================================================================
    HR Features That Drive People-Powered Growth - HRMS landing page Section
==============================================================================*/

/* Custom animation for vertical marquee */

@keyframes verticalMarquee {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.tw-animate-marquee-vertical {
    display: flex;
    flex-direction: column;
    animation: verticalMarquee 25s linear infinite;
}

@media (min-width: 821px) and (max-width: 1024px) {
    .custom-height-fix {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}



@media (max-width: 1024px) {
    .every-hr-team {
        min-height: 0 !important;
    }

}