/* Custom CSS for Recruitment System - Inspired by afr.sa */
:root {
    --primary-color: #1b4d3e;
    --secondary-color: #28a745;
    --accent-color: #f8f9fa;
    --text-dark: #333333;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* Hero Section with Floating Service Cards */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1582213726892-25b828503978?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0 140px 0;
    color: white;
    text-align: center;
}

.service-card-floating {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    border-bottom: 4px solid var(--secondary-color);
}

.service-card-floating:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Country Cards */
.country-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    display: block;
}

.country-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.1);
}

/* Worker Cards */
.worker-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.worker-img-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.worker-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.worker-card:hover .worker-img-container img {
    transform: scale(1.05);
}

.badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

/* Tabs */
.tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
    background: #e5e7eb;
    color: #4b5563;
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Reveal Animation for Cards */
@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-card {
    opacity: 0;
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered delay for cards */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
