body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #374151;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #28355A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #192032;
}

/* Gradient Text - UPDATED */
.gradient-text {
    background: linear-gradient(90deg, #28355A, #3a7bd5);
    /* Navy to Blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Development Strategy Timeline */
.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 2px;
    height: 100%;
    background-color: #e5e7eb;
}

/* Timeline icon - UPDATED */
.timeline-icon {
    position: absolute;
    left: -15px;
    top: 0;
    padding: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #28355A;
    /* Deep Navy */
    color: #fff;
    font-weight: 600;
    z-index: 1;
    border: 4px solid #f9fafb;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.text-rotator-full {
    animation: rotate-full-text 9s infinite ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.text-rotator-full h1 {
    height: 1.2em;
    font-size: 3rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .text-rotator-full h1 {
        font-size: 4.5rem;
    }
}

@keyframes rotate-full-text {

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

    33.3%,
    61.3% {
        transform: translateY(-100%);
    }

    66.6%,
    94.6% {
        transform: translateY(-200%);
    }

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

.feature-item-connector {
    position: relative;
}

@media (max-width: 1023px) {
    .feature-item-connector::after {
        display: none !important;
    }
}

/* Connectors - UPDATED */
@media (min-width: 1024px) {
    .feature-item-connector::after {
        content: '';
        position: absolute;
        top: 2rem;
        left: calc(50% + 2rem);
        width: calc(100% - 4rem);
        height: 6rem;
        z-index: 0;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .feature-item-connector:is(:nth-child(1), :nth-child(3))::after {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none"><path d="M0 5 C50 5, 50 95, 100 95" stroke="%23D48533" stroke-width="2" stroke-dasharray="4 4"/></svg>');
        /* Accent Orange */
    }

    .feature-item-connector:nth-child(2)::after {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none"><path d="M0 95 C50 95, 50 5, 100 5" stroke="%23D48533" stroke-width="2" stroke-dasharray="4 4"/></svg>');
        /* Accent Orange */
        top: -2rem;
    }

    .feature-item-connector:last-child::after {
        display: none;
    }
}

.waviy-logo span {
    position: relative;
    display: inline-block;
    animation: flip 4.5s infinite;
    animation-delay: calc(.2s * var(--i));
}

@keyframes flip {

    0%,
    80% {
        transform: rotateY(360deg);
    }
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    /* Hidden by default */
    position: absolute;
    left: 0;
    /* Align to the left of the parent */
    top: 100%;
    padding-top: 0.5rem;
    /* 8px space from link */
    z-index: 100;
    min-width: 8rem;
    /* 128px */
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease-out, transform 150ms ease-out;
    /* Start slightly lower, will move up on hover */
    transform: translateY(0.5rem);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    /* Move to its final position */
    transform: translateY(0);
}

.dropdown-menu a.dropdown-link-active {
    background-color: #D48533;
    /* Accent Orange */
    color: #ffffff;
}

@media (min-width: 1280px) {
    .sticky-shadow-top {
        box-shadow: 0 -10px 20px -5px rgb(0 0 0 / 0.15), 0 -6px 12px -6px rgb(0 0 0 / 0.30);
    }
}


/* about page */

.animated-card {
    position: absolute;
    width: 90%;
    max-width: 450px;
    will-change: transform, opacity;
    /* This transition is the key to making the JS animation smooth */
    transition: transform 150ms linear, opacity 150ms linear;
}

@media (max-width: 767px) {
    .animated-card {
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .sticky-shadow-top {
        /* Darker (15% opacity) and softer (more blur) shadow */
        box-shadow: 0 -10px 20px -5px rgb(0 0 0 / 0.15), 0 -6px 12px -6px rgb(0 0 0 / 0.15);
    }
}

.vertical-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vertical-card:hover {
    cursor: pointer;
}

.vertical-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Training page */

/* 3D Perspective container for the cards */
.training-perspective {
    perspective: 1000px;
}

/* Initial state of training cards: hidden, rotated in 3D space, and pushed down */
.training-card-animate {
    opacity: 0;
    transform: translateY(50px) rotateX(20deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Custom cubic-bezier for a slight "bounce" effect on arrival */
}

/* Visible state: Reset transformations */
.training-card-animate.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}

/* Staggered delays for grid items (up to 6 items based on your data) */
.training-card-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.training-card-animate:nth-child(2) {
    transition-delay: 0.2s;
}

.training-card-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.training-card-animate:nth-child(4) {
    transition-delay: 0.4s;
}

.training-card-animate:nth-child(5) {
    transition-delay: 0.5s;
}

.training-card-animate:nth-child(6) {
    transition-delay: 0.6s;
}

/* Hover effects specifically for training cards */
.training-card-hover {
    transition: all 0.4s ease;
    cursor: pointer;
}

.training-card-hover:hover {
    transform: translateY(-15px) !important;
    /* Lift higher than usual */
    box-shadow: 0 25px 50px -12px rgba(212, 133, 51, 0.25);
    /* Orange glow shadow */
    border-color: rgba(212, 133, 51, 0.4);
}

/* Icon animation on card hover */
.training-card-hover:hover .card-icon {
    transform: scale(1.1) rotateY(360deg);
    transition: all 0.6s ease;
    color: #D48533 !important;
    /* Force all icons to orange on hover */
}


/* erp page */

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Note: .open class is now controlled by JS */

.faq-item .faq-icon-minus {
    display: none;
}

.faq-item .faq-icon-plus {
    display: block;
}

.faq-item.open .faq-icon-minus {
    display: inline-block;
}

.faq-item.open .faq-icon-plus {
    display: none;
}

.project-card-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for project cards */
.project-card-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card-animate:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.project-card-animate:nth-child(4) {
    transition-delay: 0.4s;
}


.project-sticky-item {
    position: relative;
    /* Height can be adjusted */
    height: 24rem;
    /* 480px */
}

.project-asset {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* Added for smooth text scaling */
    transform: scale(0.95);
    transition-property: opacity, transform;
}

.project-asset.is-active {
    opacity: 1;
    transform: scale(1);
}

#site-scroll {
            /* Positioning */
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000; /* Ensure it's above other content */

            /* Appearance (using your theme colors) */
            width: 44px;
            height: 44px;
            background-color: #D48533;
            color: #fff;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

            /* Icon alignment */
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;

            /* Show/Hide Animation */
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        #site-scroll.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        #site-scroll .icon {
            font-size: 1.2rem; /* Adjust icon size if needed */
        }