:root {
    --primary-color: #0d0c41;
    /* Azul Profissional */
    --secondary-color: #82828d;
    /* Azul Acinzentado */
    --accent-color: #4846d4;
    /* Laranja destaque */
    --bg-light: #f0f0ff;
    --bg-blue: #f0f0ff;
    --text-dark: #0d0c41;
    --success-color: #4846d4;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulseSoft {

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

    50% {
        transform: scale(1.08);
    }
}

@keyframes floatSoft {

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

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

/* Navbar Customization */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    animation: fadeIn 0.5s ease-out;
    position: sticky;
    top: 0;
    overflow: visible;
    z-index: 1030;
    transition: padding 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.navbar .container {
    position: relative;
    z-index: 3;
}

.navbar .navbar-brand,
.navbar .btn-login,
.navbar .nav-link {
    transition: transform 0.28s ease, padding 0.28s ease, font-size 0.28s ease;
}

.navbar.navbar-scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled .navbar-brand {
    transform: scale(0.95);
    transform-origin: left center;
}

.navbar.navbar-scrolled .btn-login {
    padding: 6px 16px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 5px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(24, 19, 45, 0.24);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: scale(1.02);
    transition: transform 1.2s ease-in-out;
}

.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

#heroBannerCarousel {
    height: 460px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    #heroBannerCarousel {
        height: 500px;
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    #heroBannerCarousel {
        height: 460px;
        overflow: hidden;
    }
}

#heroBannerCarousel .carousel-inner,
#heroBannerCarousel .carousel-item,
#heroBannerCarousel .carousel-item .hero-bg-slide {
    height: 100%;
    margin: 0;
}

#heroBannerCarousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out !important;
}

#heroBannerCarousel.carousel-fade .carousel-item.active,
#heroBannerCarousel.carousel-fade .carousel-item-next.carousel-item-start,
#heroBannerCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 1;
}

#heroBannerCarousel.carousel-fade .active.carousel-item-start,
#heroBannerCarousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out !important;
}

#heroBannerCarousel .carousel-item.active .hero-bg-slide {
    transform: scale(1);
}

#heroBannerCarousel .carousel-item:not(.active) .hero-bg-slide {
    transform: scale(1.02);
}

#heroBannerCarousel .carousel-item .container {
    margin-bottom: 0 !important;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

#heroBannerCarousel .carousel-item .row {
    height: 100%;
    margin-top: 0;
    margin-bottom: 0;
    align-content: flex-start;
    padding-top: 0.75rem !important;
    padding-bottom: 0 !important;
    justify-content: flex-start;
}

#heroBannerCarousel .carousel-item .col-lg-7 {
    max-width: 860px;
    margin-left: 0;
    margin-right: 0;
    text-align: left !important;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 19, 45, 0.78) 0%, rgba(73, 89, 110, 0.72) 100%);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

#heroBannerCarousel .carousel-item.active .hero-bg-overlay,
#heroBannerCarousel .carousel-item-next.carousel-item-start .hero-bg-overlay,
#heroBannerCarousel .carousel-item-prev.carousel-item-end .hero-bg-overlay {
    opacity: 1;
}

#heroBannerCarousel .carousel-item:not(.active) .hero-bg-overlay {
    opacity: 0.96;
}

.hero-bg-controls {
    margin-top: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    backdrop-filter: blur(4px);
}

.hero-bg-btn {
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-bg-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.35);
}

.hero-bg-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-bg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-bg-dot.is-active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.hero-bottom-wave-banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
}

.hero-bottom-wave-banner svg {
    display: block;
    width: 100%;
    height: 96px;
}

.hero-bottom-wave-banner path {
    fill: var(--bg-light);
}

.hero-bottom-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
}

.hero-bottom-wave svg {
    display: block;
    width: 100%;
    height: 96px;
}

.hero-bottom-wave path {
    fill: var(--bg-light);
}


.hero-bottom-wave-internas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
}

.hero-bottom-wave-internas svg {
    display: block;
    width: 100%;
    height: 96px;
}

.hero-bottom-wave-internas path {
    fill: #ffffff;
}

.featured-wave-section {
    position: relative;
    overflow: hidden;
    padding-top: 130px;
    padding-bottom: 130px;
    background-color: var(--bg-light);
}

.featured-wave-section .container {
    position: relative;
    z-index: 2;
}

#featuredJobsCarousel.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

.section-bottom-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}

.section-bottom-wave svg {
    display: block;
    width: 100%;
    height: 96px;
}

.section-bottom-wave path {
    fill: #8196b1;
}

.vagas-section {
    background-color: #ffffff;
}

.section-bottom-wave-vagas path {
    fill: #ffffff;
}

.section-top-wave-banner {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}

.section-top-wave-banner svg {
    display: block;
    width: 100%;
    height: 96px;
}

.section-top-wave-banner path {
    fill: #8196b1;
}

.section-top-wave {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}

.section-top-wave svg {
    display: block;
    width: 100%;
    height: 96px;
}

.section-top-wave path {
    fill: var(--bg-light);
}

.hero-section h1,
.hero-section .lead,
.hero-section .search-container,
.hero-section .badge {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero-section h1 {
    animation-delay: 0.2s;
}

.hero-section .lead {
    animation-delay: 0.4s;
}

.hero-section .search-container {
    animation-delay: 0.6s;
}

.hero-section .badge:nth-child(1) {
    animation-delay: 0.8s;
}

.hero-section .badge:nth-child(2) {
    animation-delay: 1s;
}

.hero-section .badge:nth-child(3) {
    animation-delay: 1.2s;
}

.hero-section .badge:nth-child(4) {
    animation-delay: 1.4s;
}

.search-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search-width {
    max-width: 900px;
}

.search-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.form-control-lg {
    border: none;
    border-right: 1px solid rgba(73, 89, 110, 0.28);
    border-radius: 0;
}

.form-control-lg:last-child {
    border-right: none;
}

/* Job Cards */
.job-card {
    background: white;
    border: 1px solid rgba(73, 89, 110, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
}

.section-padding .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-padding .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.company-logo {
    width: 50px;
    height: 50px;
    background: rgba(73, 89, 110, 0.14);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.job-card:hover .company-logo {
    transform: rotate(-6deg) scale(1.06);
}

.badge-remote {
    background-color: rgba(73, 89, 110, 0.15);
    color: var(--secondary-color);
    border: none;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.categories-section {
    background-color: #ffffff !important;
}

.categories-section h2 {
    color: #ffffff !important;
}

.categories-section p {
    color: #ffffff !important;
}

.freelancer-cta {
    background-color: #82828d;
    border-radius: 20px;
    padding: 60px;
}

.freelancer-cta-alt {
    background-color: #8196b1;
    border-radius: 20px;
}

.employer-section {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    overflow: hidden;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(42px) scale(0.96);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.categories-section .card.reveal-on-scroll,
#categories-cards-section .card.reveal-on-scroll {
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.freelancer-cta.reveal-on-scroll.is-visible {
    animation: fadeIn 0.9s ease-out both;
}

.employer-section.reveal-on-scroll.is-visible {
    animation: fadeIn 0.9s ease-out both;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-icon-small:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.btn-primary,
.btn-warning,
.btn-outline-light,
.btn-outline-primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-warning:hover,
.btn-outline-light:hover,
.btn-outline-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.freelancer-cta .bi-laptop-fill {
    animation: floatSoft 2.6s ease-in-out infinite;
}

.progress-bar {
    animation: pulseSoft 1.6s ease-in-out infinite;
    transform-origin: center;
}

.progress-thin {
    height: 8px;
}

.progress-85 {
    width: 85%;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-top-wave {
    line-height: 0;
    margin-bottom: -1px;
}

.footer-top-wave svg {
    display: block;
    width: 100%;
    height: 96px;
}

.footer-top-wave path {
    fill: var(--secondary-color);
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-link:hover {
    color: #fff;
    background: var(--accent-color);
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #4846d4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.25s ease;
}

.back-to-top i {
    font-size: 1.1rem;
    line-height: 1;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-warning {
    background-color: #4846d4 !important;
}

.text-warning {
    color: #4846d4 !important;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #82828d !important;
    border-color: #82828d !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-warning {
    background-color: #4846d4;
    border-color: #4846d4;
    color: #fff;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: #82828d !important;
    border-color: #82828d !important;
    color: #fff !important;
}

.btn-job-details {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-job-details:visited {
    color: #fff;
}

.btn-job-details:hover {
    background-color: #82828d !important;
    border-color: #82828d !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(24, 19, 45, 0.2);
}

.btn-job-details:focus,
.btn-job-details:focus-visible {
    background-color: #82828d !important;
    border-color: #82828d !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 116, 34, 0.35);
    outline: none;
}

.btn-job-details:active {
    background-color: #82828d !important;
    border-color: #82828d !important;
    color: #fff !important;
    transform: translateY(0);
    box-shadow: none;
}

.btn-job-details:disabled,
.btn-job-details.disabled {
    background-color: rgba(24, 19, 45, 0.45) !important;
    border-color: rgba(24, 19, 45, 0.45) !important;
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.text-success {
    color: var(--accent-color) !important;
}

.progress-bar {
    background-color: var(--accent-color);
}

.pagination .page-link,
.pagination>li>a,
.pagination>li>span {
    color: var(--primary-color);
    border-color: rgba(24, 19, 45, 0.18);
    font-weight: 600;
    background-color: #fff;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination>li>a:hover,
.pagination>li>a:focus {
    color: #fff;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: none;
}

.pagination .page-item.active .page-link,
.pagination>li.active>a,
.pagination>li.active>span,
.pagination>li.active>a:hover,
.pagination>li.active>span:hover,
.pagination>li.active>a:focus,
.pagination>li.active>span:focus {
    color: #fff;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination .page-item.disabled .page-link,
.pagination>li.disabled>a,
.pagination>li.disabled>span {
    color: rgba(24, 19, 45, 0.45);
    background-color: #f5f6f8;
    border-color: rgba(24, 19, 45, 0.12);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.link_dev {
    color: #4846d4;
    text-decoration: none;
    font-weight: 500;
}

.text_footer {
    padding-right: 15px;
}

.round {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    /* Centraliza vertical */
    justify-content: center;
    /* Centraliza horizontal */
}

.round i {
    color: white;
    font-size: 40px;
}

.cor_form {
    background-color: var(--bg-blue);
}

@media (max-width: 768px) {
    .form-control-lg {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 10px;
    }

    .hero-section {
        padding: 0 0;
        text-align: center;
    }

    .carousel-control-next,
    .carousel-control-prev {
        top: 280px !important;
        height: auto;
    }



    .hero-bg-controls {
        margin-top: 1rem;
        padding: 6px 10px;
    }

    .hero-bottom-wave svg {
        height: 70px;
    }

    .hero-bottom-wave-banner svg {
        height: 70px;
    }

    .hero-bottom-wave-internas svg {
        height: 70px;
    }

    .featured-wave-section {
        padding-top: 105px;
        padding-bottom: 105px;
        margin-top: -1px;
    }

    .section-top-wave svg,
    .section-bottom-wave svg {
        height: 70px;
    }

    .section-top-wave-banner svg,
    .section-bottom-wave-banner svg {
        height: 70px;
    }

    .freelancer-cta,
    .employer-section {
        padding: 30px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 14px;
        bottom: 14px;
        margin-right: 50px;
    }
}

/* Carrossel de parceiros - setas mais arejadas */
#partnersCarousel .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next-icon {
    background-color: var(--success-color);
    border-radius: 50%;
    padding: 14px;
    /* aumente o espaço interno */
    box-shadow: 0 2px 8px rgba(24, 19, 45, 0.12);
    width: 40px;
    height: 40px;
    background-size: 18px 18px;
    /* ícone menor, mais espaço */
    background-position: center;
}

/* Carrossel de parceiros - espaçamento entre logos */
#partnersCarousel .carousel-item .col-md-2 {
    padding-left: 24px;
    padding-right: 24px;
}

#partnersCarousel .carousel-item .row {
    margin-left: -24px;
    margin-right: -24px;
}

.list-group {
    top: 0px;
}

.nav-treeview {
    background-color: #000000;
}

.box-valor {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.border-box-valor {
    border-color: var(--accent-color);
}