/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #302b63 50%, #24243e 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.15;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero Search Card */
.hero-search-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s;
}

.hero-search-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero-search-form {
    width: 100%;
}

.hero-search-fields {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.hero-search-field {
    flex: 1;
    min-width: 0;
}

.hero-search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.hero-search-field input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.hero-search-field input::placeholder {
    color: rgba(255,255,255,0.4);
}

.hero-search-field input:focus {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255,255,255,0.12);
}

.hero-search-field-btn {
    flex: 0 0 auto;
}

.hero-search-field-btn .btn {
    height: 100%;
    min-height: 48px;
}

/* Hero autocomplete shared styles */
.hero-search-field-city,
.hero-search-field-skill {
    position: relative;
}

.hero-search-field-city .autocomplete-wrapper,
.hero-search-field-skill .autocomplete-wrapper {
    position: relative;
}

.hero-search-field-city .autocomplete-dropdown,
.hero-search-field-skill .autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #1a1a3e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.hero-search-field-city .autocomplete-dropdown .autocomplete-item,
.hero-search-field-skill .autocomplete-dropdown .autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    transition: background 0.15s;
}

.hero-search-field-city .autocomplete-dropdown .autocomplete-item:hover,
.hero-search-field-skill .autocomplete-dropdown .autocomplete-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
}

.hero-search-field-city .autocomplete-dropdown .autocomplete-item.empty-result,
.hero-search-field-skill .autocomplete-dropdown .autocomplete-item.empty-result {
    color: rgba(255,255,255,0.4);
    cursor: default;
}

.hero-search-field-city .autocomplete-loader,
.hero-search-field-skill .autocomplete-loader {
    padding: 12px;
    text-align: center;
}

.hero-search-field-city .loader-spinner,
.hero-search-field-skill .loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-search-card {
        padding: 20px;
    }
    .hero-search-fields {
        flex-direction: column;
        gap: 12px;
    }
    .hero-search-field-btn .btn {
        width: 100%;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Common ===== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-chip {
    display: inline-block;
    background: #f0f2ff;
    color: var(--brand-primary);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: #888;
    font-size: 1.05rem;
}

.section-action {
    text-align: center;
    margin-top: 32px;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 80px 0;
    background: #fafafa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: #f0f2ff;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 10px;
}

.step-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Featured Section ===== */
.featured-section {
    padding: 80px 0;
    background: white;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: #e0e3ff;
}

.card-top {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.card-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    background: var(--brand-gradient);
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-name-row h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #222;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.card-city {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #888;
}

.card-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    transition: gap 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-card:hover .card-link {
    gap: 10px;
}

.status-dot {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    color: #9ca3af;
    background: #f3f4f6;
}

.status-dot.online {
    background: #dcfce7;
    color: #166534;
}

.empty-card {
    text-align: center;
    padding: 48px;
    background: #f9f9f9;
    border-radius: 16px;
    color: #888;
}

.empty-card a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== Skills Section ===== */
.skills-section {
    padding: 80px 0;
    background: #fafafa;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.skill-item {
    background: white;
    color: #555;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    font-weight: 500;
}

.skill-item:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* ===== Jobs Section ===== */
.jobs-section {
    padding: 80px 0;
    background: white;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

.job-card:hover {
    border-color: #e0e3ff;
    background: #f8f9ff;
}

.job-info {
    flex: 1;
    min-width: 0;
}

.job-info h3 {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
}

.job-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 8px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 0 80px;
    background: #fafafa;
}

.cta-card {
    background: var(--brand-gradient);
    border-radius: 20px;
    padding: 64px 40px;
    text-align: center;
    color: white;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* ===== Shared Button Styles ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    background: #f8f9ff;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 16px 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
}
