/* Modern Home Page Enhancements for PCIP */

:root {
    --pci-gradient-primary: linear-gradient(135deg, #0d6efd 0%, #004fb0 100%);
    --pci-gradient-gold: linear-gradient(135deg, #c5a059 0%, #a68541 100%);
    --pci-glass-bg: rgba(255, 255, 255, 0.7);
    --pci-glass-border: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Hero Section Refinement */
.hero-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(197, 160, 89, 0.05), transparent);
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    padding: 20px;
}

.hero-image-container .main-image {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-img-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to right, #fff 0%, transparent 20%),
        linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, transparent 15%);
}

body.dark-mode .hero-img-mask {
    background: linear-gradient(to right, #0f172a 0%, transparent 20%),
        linear-gradient(to top, rgba(15, 23, 42, 0.2) 0%, transparent 15%);
}

.hero-image-container:hover img {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    background: var(--pci-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--pci-glass-border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.card-candidate {
    top: 10%;
    right: -5%;
}

.card-processes {
    bottom: 15%;
    left: -5%;
    animation-delay: 1s;
}

/* Stats Section */
.stat-pill {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.stat-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Steps Section */
.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--pci-gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.05);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Feature Grid - Enhanced Cards */
.job-card-premium {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.job-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary);
}

.job-card-header-pci {
    padding: 1.5rem 2rem;
    background: #f8fbfd;
    border-bottom: 1px solid #f1f5f9;
}

.job-card-premium .card-body-content {
    padding: 2rem;
    flex-grow: 1;
}

.job-card-premium .card-footer-content {
    padding: 1.5rem 2rem;
    background: #fff;
    border-top: 1px solid #f8fafc;
}

.badge-pci-status {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.badge-pci-time {
    background: #f0f7ff;
    color: #0284c7;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e0f2fe;
}

body.dark-mode .badge-pci-status {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

body.dark-mode .badge-pci-time {
    background: rgba(2, 132, 199, 0.1);
    color: #38bdf8;
    border-color: rgba(2, 132, 199, 0.2);
}

.job-meta-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.job-meta-item i {
    width: 24px;
    color: #3b82f6;
    font-size: 1.1rem;
}

.job-meta-item i.bi-geo-alt {
    color: #f43f5e;
}

.job-meta-item i.bi-calendar3 {
    color: #64748b;
}

.btn-pci-details {
    border: 1px solid #3b82f6 !important;
    background: #fff !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    padding: 0.6rem 2rem !important;
    border-radius: 12px !important;
    transition: all 0.2s;
}

.btn-pci-details:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

.job-card-premium .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--pci-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card-premium:hover .card-overlay {
    opacity: 1;
}

/* Quick Access / Stats Pills Refinement */
.stat-pill {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.stat-pill .icon-box {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.stat-pill:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--bs-primary) !important;
    color: #fff !important;
}

/* Section Headings */
.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

body.dark-mode .hero-wrapper {
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(197, 160, 89, 0.1), transparent);
    background-color: #0f172a;
}

body.dark-mode .stat-pill,
body.dark-mode .job-card-premium {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .section-title {
    color: #f8fafc;
}