/* ============================================================
   HOME PAGE v5.4 — COMPONENT OVERRIDES
   Splash · Page Transition · Stats Lift · Content Card
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   0. PAGE TRANSITION LOADER (Every Load)
   ───────────────────────────────────────────────────────────── */
#pageTransition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

#pageTransition.pt-done {
    opacity: 0;
    pointer-events: none;
}

.pt-loader {
    text-align: center;
}

.pt-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f1f5f9;
    border-top-color: #00aeef;
    border-right-color: #f7941e;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: ptSpin 1s cubic-bezier(0.6, 0.1, 0.4, 0.9) infinite;
}

.pt-text {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: ptPulse 1.5s ease-in-out infinite;
}

@keyframes ptSpin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ptPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ─────────────────────────────────────────────────────────────
   1. GENIUS SPLASH SCREEN (First Visit Only)
   ───────────────────────────────────────────────────────────── */
#welcomeSplash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #020617;
    /* Deep ultra dark */
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.wsp-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 174, 239, 0.15) 0%, transparent 60%);
    animation: wspBgPulse 4s ease-in-out infinite alternate;
}

@keyframes wspBgPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Glass Orb */
.wsp-glass-orb {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 174, 239, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wspOrbFloat 6s ease-in-out infinite;
}

@keyframes wspOrbFloat {

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

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

.wsp-ring-outer,
.wsp-ring-inner {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px dashed rgba(247, 148, 30, 0.4);
    animation: wspSpinOuter 20s linear infinite;
}

.wsp-ring-inner {
    inset: -30px;
    border: 1px solid rgba(0, 174, 239, 0.3);
    border-style: dotted;
    animation: wspSpinInner 15s linear infinite reverse;
}

@keyframes wspSpinOuter {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes wspSpinInner {
    100% {
        transform: rotate(360deg);
    }
}

.wsp-logo-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    animation: wspLogoPulse 2s ease-in-out infinite alternate;
}

@keyframes wspLogoPulse {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1.05);
    }
}

.wsp-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.wsp-brand {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.wsp-brand span {
    color: #00aeef;
}

.wsp-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto 40px;
}

/* Cyber Loader */
.wsp-loader-box {
    width: 260px;
    margin: 0 auto;
}

.wsp-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wsp-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00aeef, #f7941e);
    box-shadow: 0 0 10px #f7941e;
    transition: width 0.1s linear;
}

.wsp-status-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    font-family: monospace;
}

.wsp-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

/* Dismiss */
#welcomeSplash.wsp-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────
   1.5 VIP ADS BANNER (HOME PAGE ONLY PROFESSIONAL UPGRADE)
   ───────────────────────────────────────────────────────────── */
.home-ads-wrapper {
    /* Restoring original size (full width or container based on previous layout) */
    width: 100%;
}

.home-ads-wrapper .ad-slider-container {
    /* Minimal professional touches without changing original dimensions */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 2px solid #00aeef !important; /* Subtle brand line */
    margin-bottom: 0 !important;
}

/* 1. Remove blur and darkness from the ad image */
/* 2. Disable the scale(1.1) animation which causes extreme blurriness on large screens */
.home-ads-wrapper .ad-banner-img {
    opacity: 1 !important;
    filter: brightness(0.92); /* Just enough to make white text readable */
    transform: scale(1) !important; 
    transition: none !important;
}
.home-ads-wrapper .ad-slide.active .ad-banner-img {
    transform: scale(1) !important;
}

/* Make overlay elegant and restricted to the bottom text area */
.home-ads-wrapper .ad-content-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%, transparent 100%) !important;
    padding: 15px 30px !important;
    backdrop-filter: none !important; /* Fix mobile blurriness */
    -webkit-backdrop-filter: none !important;
}
.home-ads-wrapper .ad-info h3 {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
    margin-bottom: 2px !important;
}

/* ─────────────────────────────────────────────────────────────
   2. STATS LIFT (Wide, Prominent, Under Hero)
   ───────────────────────────────────────────────────────────── */
.stats-lift-wrapper {
    position: relative;
    z-index: 30;
    margin-top: -60px;
    /* Pulls it up over the hero section slightly */
    padding: 0 20px;
    margin-bottom: 40px;
    /* Space before content card */
}

.max-w-1400 {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-bar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 174, 239, 0.08);
    position: relative;
    overflow: hidden;
}

/* Add a subtle top highlight to stats bar */
.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00aeef, #f7941e);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border: none; /* No borders between items */
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item.border-0 {
    border: none !important;
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-info {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem !important;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem !important;
    color: #64748b;
    font-weight: 600;
}

/* Colors for stats */
.jobs-icon {
    background: rgba(0, 174, 239, 0.1);
    color: #00aeef;
}

.companies-icon {
    background: rgba(247, 148, 30, 0.1);
    color: #f7941e;
}

.seekers-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.services-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}


/* ─────────────────────────────────────────────────────────────
   3. CONTENT CARD
   ───────────────────────────────────────────────────────────── */
.content-card {
    max-width: 1400px;
    width: calc(100% - 40px);
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    
    /* Premium Borders */
    border-left: 3px solid rgba(148, 163, 184, 0.12);
    border-right: 3px solid rgba(148, 163, 184, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 1);
    
    /* Refined Shadow */
    box-shadow: 
        0 -16px 40px -8px rgba(15, 23, 42, 0.04),
        0 20px 50px -12px rgba(100, 116, 139, 0.20),
        0 0 0 1px rgba(15, 23, 42, 0.02);
        
    position: relative;
    z-index: 20;
    padding-top: 30px;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   4. SECTION HEADER (Centered Title + Badge)
   ───────────────────────────────────────────────────────────── */
.sec-hdr {
    text-align: center;
    margin-bottom: 40px;
}

.sec-hdr-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.sec-hdr-row h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sec-hdr-row h2 i {
    color: #00aeef;
    font-size: 1.4rem;
}

.sec-hdr-row::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00aeef, #f7941e);
    border-radius: 10px;
    margin: 5px auto 0;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.sec-hdr>p {
    color: #64748b;
    font-size: 1rem;
    margin: 30px 0 0;
}

/* NON-BUTTON BADGE (Just visual stats) */
.shr-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f7941e;
    box-shadow: 0 8px 20px rgba(247, 148, 30, 0.2);
    position: relative;
}

.shr-badge::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(247, 148, 30, 0.4);
    animation: wspSpinOuter 15s linear infinite;
}

.shr-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #f7941e;
    line-height: 1;
}

.shr-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   5. PARTNERS SECTION
   ───────────────────────────────────────────────────────────── */
.partners-section {
    padding: 60px 0 !important;
    position: relative;
    z-index: 5;
    background: #ffffff !important;
    /* Back to white based on user request */
    overflow: hidden;
}

.partners-section .marquee-container,
.partners-section .companies-marquee,
.partners-section .marquee-track {
    overflow: hidden !important;
}

/* Re-add white fade gradients to match the white background perfectly */
.partners-section .marquee-container::before {
    background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0)) !important;
    width: 150px !important;
    z-index: 10;
}

.partners-section .marquee-container::after {
    background: linear-gradient(to left, #ffffff 10%, rgba(255, 255, 255, 0)) !important;
    width: 150px !important;
    z-index: 10;
}

/* ─────────────────────────────────────────────────────────────
   6. RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .stats-lift-wrapper {
        margin-top: -40px;
        padding: 0 15px;
    }

    .stats-bar {
        padding: 16px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 12px 5px;
    }

    .stat-info {
        text-align: center;
    }

    .stat-item.border-0 {
        border-bottom: none !important;
    }

    .content-card {
        width: calc(100% - 20px);
        border-radius: 18px 18px 0 0;
    }
}

@media (max-width: 767px) {
    .stats-lift-wrapper {
        margin-top: -30px;
        padding: 0 10px;
    }

    .stats-bar {
        padding: 15px 10px;
        border-radius: 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.6rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    .content-card {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding-top: 30px;
    }

    .sec-hdr-row h2 {
        font-size: 1.4rem;
    }

    .shr-badge {
        width: 60px;
        height: 60px;
    }

    .shr-num {
        font-size: 1.1rem;
    }
}