/* Equant360 Custom Styles - Enterprise HR Platform Colors and Animations */

/* ========================================
   REDUCED SPACING/PADDING
   ======================================== */

/* Reduce section padding globally */
.py-10 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-12 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-14 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
.py-16 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

@media (min-width: 768px) {
    .py-md-12 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
    .py-md-14 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-md-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

/* Reduce card body padding */
.card-body.p-8 { padding: 1.25rem !important; }
.card-body.p-6 { padding: 1rem !important; }

/* Reduce hero section padding */
.pt-10 { padding-top: 1.25rem !important; }
.pb-12 { padding-bottom: 1.5rem !important; }

@media (min-width: 768px) {
    .pt-md-5 { padding-top: 1rem !important; }
    .pb-md-5 { padding-bottom: 1rem !important; }
}

/* Reduce margin bottom on headings */
.mb-10 { margin-bottom: 1.25rem !important; }
.mb-12 { margin-bottom: 1.5rem !important; }
.mb-14 { margin-bottom: 1.75rem !important; }
.mb-7 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 0.75rem !important; }

/* Reduce row gaps */
.gy-6 { --bs-gutter-y: 1rem !important; }
.gy-8 { --bs-gutter-y: 1.25rem !important; }
.gx-lg-8 { --bs-gutter-x: 1.25rem !important; }

/* Tighter section spacing */
section.wrapper { padding-top: 0; padding-bottom: 0; }

/* ========================================
   CUSTOM GRADIENT COLORS
   ======================================== */

/* Override the primary gradient with Equant360 Gray Professional gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, #888888 0%, #737373 100%) !important;
}

/* Alternative gradient options */
.bg-gradient-enterprise {
    background: linear-gradient(135deg, #888888 0%, #5e5e5e 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #2E9E49 0%, #258B3D 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #179bd7 0%, #3aaee3 100%);
}

/* Soft primary background for headers */
.bg-soft-primary {
    background-color: #f1f1f1 !important;
}

/* Update button colors to match Equant360 Gray Professional theme */
.btn-primary {
    background-color: #888888 !important;
    border-color: #888888 !important;
    color: #1a1a1a !important;
}

.btn-primary:hover {
    background-color: #737373 !important;
    border-color: #737373 !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(136, 136, 136, 0.3) !important;
}

.btn-outline-primary {
    color: #737373 !important;
    border-color: #888888 !important;
}

.btn-outline-primary:hover {
    background-color: #888888 !important;
    border-color: #888888 !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

/* Update primary text color */
.text-primary {
    color: #737373 !important;
}

/* Icon backgrounds */
.btn-soft-primary {
    background-color: rgba(136, 136, 136, 0.15) !important;
    color: #737373 !important;
}

.bullet-soft-primary i {
    color: #737373 !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Slide In Bottom Animation */
@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   APPLY ANIMATIONS TO ELEMENTS
   ======================================== */

/* Hero Section Animations */
.wrapper.bg-gradient-primary h1 {
    animation: fadeInUp 0.8s ease-out;
}

.wrapper.bg-gradient-primary p {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.wrapper.bg-gradient-primary .btn {
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

/* Card Animations */
.card {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Staggered Card Animations */
.col-lg-4:nth-child(1) .card,
.col-md-6:nth-child(1) .card {
    animation-delay: 0.1s;
}

.col-lg-4:nth-child(2) .card,
.col-md-6:nth-child(2) .card {
    animation-delay: 0.2s;
}

.col-lg-4:nth-child(3) .card,
.col-md-6:nth-child(3) .card {
    animation-delay: 0.3s;
}

.col-lg-4:nth-child(4) .card {
    animation-delay: 0.4s;
}

.col-lg-4:nth-child(5) .card {
    animation-delay: 0.5s;
}

.col-lg-4:nth-child(6) .card {
    animation-delay: 0.6s;
}

/* Icon Animations */
.icon.btn-circle {
    transition: all 0.3s ease;
}

.icon.btn-circle:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Counter Animation */
.counter {
    animation: scaleIn 0.6s ease-out;
}

/* Badge Animation */
.badge {
    animation: fadeIn 0.8s ease-out;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

/* Social Icons Animation */
.nav.social a {
    transition: all 0.3s ease;
}

.nav.social a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Image Hover Effects */
img {
    transition: all 0.3s ease;
}

/* Section Fade In on Scroll */
section {
    animation: fadeIn 0.8s ease-out;
}

/* Disable sticky navbar slide animation */
.navbar-clone {
    transition: none !important;
    transform: translateY(0%) !important;
    opacity: 0;
    visibility: hidden;
}

.navbar-clone.navbar-stick {
    opacity: 1;
    visibility: visible;
}

/* Footer Animation */
footer {
    animation: fadeIn 1s ease-out;
}

/* List Item Animation */
.icon-list li {
    animation: fadeInLeft 0.5s ease-out;
    animation-fill-mode: backwards;
}

.icon-list li:nth-child(1) { animation-delay: 0.1s; }
.icon-list li:nth-child(2) { animation-delay: 0.2s; }
.icon-list li:nth-child(3) { animation-delay: 0.3s; }
.icon-list li:nth-child(4) { animation-delay: 0.4s; }
.icon-list li:nth-child(5) { animation-delay: 0.5s; }
.icon-list li:nth-child(6) { animation-delay: 0.6s; }
.icon-list li:nth-child(7) { animation-delay: 0.7s; }
.icon-list li:nth-child(8) { animation-delay: 0.8s; }

/* Hover Card Animation */
.hover-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(136, 136, 136, 0.2) !important;
}

/* Testimonial Card Animation */
blockquote {
    animation: fadeInUp 0.8s ease-out;
}

/* Stats Counter Animation */
.counter-wrapper {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* CTA Section Animation */
.wrapper.bg-gradient-primary .display-3 {
    animation: pulse 2s ease-in-out infinite;
}

/* Feature Icon Float Animation */
.icon.btn-circle.btn-xl {
    animation: float 3s ease-in-out infinite;
}

/* Accordion Animation */
.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(136, 136, 136, 0.15) !important;
    color: #737373 !important;
}

/* Form Input Focus Animation */
input:focus,
textarea:focus,
select:focus {
    border-color: #888888 !important;
    box-shadow: 0 0 0 0.2rem rgba(136, 136, 136, 0.25) !important;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Progress Wrap Animation */
.progress-wrap {
    transition: all 0.3s ease;
}

.progress-wrap:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .card:hover {
        transform: translateY(-4px);
    }

    .hover-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    /* Faster animations on mobile */
    * {
        animation-duration: 0.4s !important;
    }
}

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

/* Loading Animation for Images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   EQUANT360 SPECIFIC STYLES
   ======================================== */

/* Add colorful accents throughout the site */
.counter:nth-child(4n+1) {
    color: #ffc327 !important; /* Warning Yellow */
}

.counter:nth-child(4n+2) {
    color: #0f9755 !important; /* Success Green */
}

.counter:nth-child(4n+3) {
    color: #179bd7 !important; /* Info Blue */
}

.counter:nth-child(4n+4) {
    color: #d54135 !important; /* Danger Red */
}

/* Icon color variations */
.icon.btn-circle.btn-lg:nth-child(3n+1) {
    background-color: rgba(255, 195, 39, 0.15) !important;
    color: #ffc327 !important;
}

.icon.btn-circle.btn-lg:nth-child(3n+2) {
    background-color: rgba(15, 151, 85, 0.15) !important;
    color: #0f9755 !important;
}

.icon.btn-circle.btn-lg:nth-child(3n+3) {
    background-color: rgba(23, 155, 215, 0.15) !important;
    color: #179bd7 !important;
}

/* Card hover accent colors */
.card:hover .icon.btn-circle {
    box-shadow: 0 8px 20px rgba(255, 195, 39, 0.3) !important;
}

/* Badge variations with colors */
.badge.bg-pale-primary:nth-child(4n+1) {
    background-color: rgba(255, 195, 39, 0.15) !important;
    color: #ffc327 !important;
}

.badge.bg-pale-primary:nth-child(4n+2) {
    background-color: rgba(15, 151, 85, 0.15) !important;
    color: #0f9755 !important;
}

.badge.bg-pale-primary:nth-child(4n+3) {
    background-color: rgba(23, 155, 215, 0.15) !important;
    color: #179bd7 !important;
}

.badge.bg-pale-primary:nth-child(4n+4) {
    background-color: rgba(213, 65, 53, 0.15) !important;
    color: #d54135 !important;
}

/* Module highlight colors using Equant360 design system colors */
.module-hr { border-left: 4px solid #ffc327; }          /* Warning Yellow */
.module-payroll { border-left: 4px solid #0f9755; }     /* Success Green */
.module-attendance { border-left: 4px solid #179bd7; }  /* Info Blue */
.module-performance { border-left: 4px solid #d54135; } /* Danger Red */

/* Feature badge colors */
.badge-ai {
    background: linear-gradient(135deg, #ffc327 0%, #e6af1f 100%);
    color: #1a1a1a;
}

.badge-enterprise {
    background: linear-gradient(135deg, #0f9755 0%, #0d7f47 100%);
    color: #fff;
}

.badge-success {
    background: linear-gradient(135deg, #0f9755 0%, #0d7f47 100%);
    color: #fff;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc327 0%, #e6af1f 100%);
    color: #1a1a1a;
}

.badge-info {
    background: linear-gradient(135deg, #179bd7 0%, #1387bf 100%);
    color: #fff;
}

.badge-danger {
    background: linear-gradient(135deg, #d54135 0%, #c13a2f 100%);
    color: #fff;
}

/* Stats highlight */
.stat-highlight {
    background: linear-gradient(135deg, rgba(255, 195, 39, 0.1) 0%, rgba(15, 151, 85, 0.1) 100%);
    border-radius: 12px;
    padding: 2rem;
}

/* Colored list bullets */
.icon-list li:nth-child(4n+1) i {
    color: #ffc327 !important;
}

.icon-list li:nth-child(4n+2) i {
    color: #0f9755 !important;
}

.icon-list li:nth-child(4n+3) i {
    color: #179bd7 !important;
}

.icon-list li:nth-child(4n+4) i {
    color: #d54135 !important;
}

/* Section title underlines with colors */
h2.display-4::after,
h2.display-3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffc327 0%, #0f9755 50%, #179bd7 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Colorful hover states for cards */
.card:nth-child(4n+1):hover {
    border-top: 3px solid #ffc327;
}

.card:nth-child(4n+2):hover {
    border-top: 3px solid #0f9755;
}

.card:nth-child(4n+3):hover {
    border-top: 3px solid #179bd7;
}

.card:nth-child(4n+4):hover {
    border-top: 3px solid #d54135;
}
