:root {
    /* Colors */
    --color-primary: #1E3A8A;
    --color-primary-dark: #172554;
    --color-primary-light: rgba(30, 58, 138, 0.08);
    /* For hovers */
    --color-secondary: #3B82F6;
    --color-accent: #16A34A;
    --color-accent-hover: #15803d;
    --color-text-main: #1F2937;
    --color-text-light: #6B7280;
    --bg-light: #FFFFFF;
    --bg-neutral: #F9FAFB;
    /* Slightly improved neutral */
    --bg-footer: #111827;
    --border-color: #E5E7EB;

    /* Typos */
    --font-family: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 6px;
    /* Slightly rounder */
    --radius-md: 12px;
    /* Modern curve */
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--bg-neutral);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button,
select,
input {
    font-family: inherit;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-neutral {
    background-color: var(--bg-neutral);
}

.bg-primary-light {
    background-color: #eff6ff;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 10px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

.btn-search {
    background-color: var(--color-accent);
    color: white;
    width: 100%;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
}

.btn-search:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 6px 10px rgba(22, 163, 74, 0.3);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--bg-neutral);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-outline-primary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--color-primary-light);
}

.company-link {
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
}

.separator {
    color: var(--border-color);
    user-select: none;
}

/* Header */
#main-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    /* More translucent for glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    /* Softer border */
    transition: all var(--transition-smooth);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.6rem;
}

#main-nav ul {
    display: flex;
    gap: 32px;
}

#main-nav a {
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 4px 0;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--color-primary);
}

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
}

.full-width {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

#mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation */
#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#mobile-menu {
    position: fixed;
    top: 0;
    /* Cover entire screen */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 80px 20px 20px;
    transform: translateX(100%);
    /* Slide from right */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

#mobile-menu a {
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
}

.company-link-mobile {
    color: var(--color-primary) !important;
    background: var(--bg-primary-light);
    padding: 16px;
    border-radius: var(--radius-md);
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
    width: 100%;
}

#mobile-menu-overlay {
    /* Overlay handled by full screen menu */
    display: none;
}

/* Hero */
#hero {
    margin-top: var(--header-height);
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    color: var(--color-text-light);
    font-size: 1.15rem;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    background: white;
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 840px;
    margin: 0 auto 40px;
    transition: transform var(--transition-fast);
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#search-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 12px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border: 1px solid transparent;
    /* Prepare for focus state */
    border-radius: var(--radius-md);
    padding: 0 16px;
    transition: all var(--transition-fast);
}

.input-group:focus-within {
    background: white;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input,
.input-group select {
    border: none;
    background: transparent;
    width: 100%;
    padding: 14px 10px;
    outline: none;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.icon-input svg,
.select-group svg {
    color: #9CA3AF;
    flex-shrink: 0;
}

.quick-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.chip {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-main);
    font-weight: 500;
}

.chip:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: #eff6ff;
    transform: translateY(-1px);
}

/* Job Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters */
.filters-sidebar {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 90px;
    /* Below fixed header */
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.text-btn:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    cursor: pointer;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: var(--color-primary);
}

/* Custom Checkbox */
input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.checkbox-label .count {
    margin-left: auto;
    color: var(--color-text-light);
    font-size: 0.8rem;
    background: var(--bg-neutral);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Job Grid */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sort-options {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.sort-options select {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    margin-left: 8px;
    background: white;
    cursor: pointer;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-secondary);
    opacity: 0;
    transition: opacity 0.3s;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.job-card:hover::before {
    opacity: 1;
}

.job-info h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.tag.clt {
    background: #E0E7FF;
    color: #3730A3;
}

.tag.pj {
    background: #FEF3C7;
    color: #92400E;
}

.tag.estagio {
    background: #DCFCE7;
    color: #166534;
}

.tag.temporario {
    background: #F3E8FF;
    color: #6B21A8;
}

.job-salary {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.95rem;
    background: rgba(22, 163, 74, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.job-action {
    flex-shrink: 0;
    margin-left: 24px;
}

/* Cities */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.city-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.city-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transform: scale(1);
    transition: transform 0.3s;
}

.city-card:hover .city-icon {
    transform: scale(1.1);
}

.city-card h3 {
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    font-size: 1.5rem;
}

.city-card p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Advertise */
.advertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.advertise-text h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.benefits-list {
    margin: 30px 0;
}

.benefits-list li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--color-primary);
}

/* Welcome Modal Specifics */
.welcome-modal {
    z-index: 2000;
    /* Higher than header */
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for focus */
    padding: 20px;
}

.welcome-content {
    max-width: 400px;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .welcome-content {
    transform: scale(1);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.welcome-header {
    margin-bottom: 30px;
}

.welcome-logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.welcome-header h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.welcome-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.full-width-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    transition: transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    /* For the anchor tag */
}

.full-width-btn:active {
    transform: scale(0.98);
}

/* Modal Content inside Job Modal */
.modal-header h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.modal.active .modal-content {
    animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.advertise-plans {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.plan-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    flex: 1;
    position: relative;
    transition: transform var(--transition-smooth);
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.standout {
    border: 2px solid var(--color-secondary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.plan-card.standout:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 16px 0;
}

.plan-card .price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* Footer */
#main-footer {
    background: var(--bg-footer);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F3F4F6;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #9CA3AF;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}



.apply-btn {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.apply-btn:hover {
    background: #128C7E;
    box-shadow: 0 6px 10px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
    }

    .advertise-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .advertise-plans {
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header-actions,
    #main-nav {
        display: none;
    }

    #mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    #search-form {
        grid-template-columns: 1fr;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-action {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .job-action .btn {
        width: 100%;
    }

    .advertise-plans {
        flex-direction: column;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        padding: 24px;
    }
}