/* ============================================================
   WADAI Enhanced Homepage - Clean & Cute Design
   Light Background, Black Text, Small Cute Boxes
   ============================================================ */

/* ========== Remove Main Padding for Home Page ========== */
#wad-home,
.wad-homepage {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

main.wad-main {
    padding-top: 0 !important;
}

/* ========== Color System ========== */
:root {
    --wadai-red: #d90217;
    --wadai-red-dark: #a60112;
    --wadai-red-light: #ef233c;
    --wadai-red-soft: rgba(217, 2, 23, 0.08);
    --wadai-red-medium: rgba(217, 2, 23, 0.12);
    
    /* Secondary Colors for Icons & Accents */
    --wadai-blue: #0066cc;
    --wadai-green: #00a86b;
    --wadai-orange: #ff6b35;
    --wadai-purple: #6c5ce7;
    --wadai-yellow: #fdcb6e;
    
    --wadai-text-dark: #1a1a1a;
    --wadai-text-black: #000000;
    --wadai-text-gray: #6c757d;
    --wadai-bg-light: #f8f9fa;
    --wadai-white: #ffffff;
    --wadai-shadow: rgba(0, 0, 0, 0.08);
    --wadai-shadow-soft: rgba(0, 0, 0, 0.05);
}

/* ========== Hero Section - Light Background (NO RED) ========== */
.hero-enhanced-section {
    min-height: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 10px 0 30px;
    margin-top: 0;
}

.hero-enhanced-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
}

.hero-gradient-animated {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(217, 2, 23, 0.03) 0%, transparent 70%);
    animation: gradientFloat 20s ease-in-out infinite;
    top: -25%;
    left: -25%;
}

@keyframes gradientFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(30px, -30px) scale(1.1) rotate(5deg); }
    66% { transform: translate(-20px, 20px) scale(0.95) rotate(-3deg); }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 25% 35%, rgba(217, 2, 23, 0.08), transparent),
        radial-gradient(1.5px 1.5px at 65% 75%, rgba(217, 2, 23, 0.06), transparent),
        radial-gradient(1px 1px at 45% 55%, rgba(217, 2, 23, 0.1), transparent);
    background-size: 250% 250%;
    animation: particlesFloat 25s linear infinite;
    opacity: 0.5;
}

@keyframes particlesFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-enhanced-title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--wadai-text-black) !important;
    margin-bottom: 1.25rem;
    margin-top: 0;
    letter-spacing: -0.03em;
}

.hero-title-line1 {
    display: inline;
    animation: fadeInUp 0.9s ease-out;
    color: var(--wadai-text-black) !important;
}

.hero-title-line2 {
    display: inline;
    color: var(--wadai-red) !important;
    animation: fadeInUp 1.1s ease-out;
    margin-left: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-enhanced-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--wadai-text-gray) !important;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-searchbox-enhanced {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
}

.hero-search-form-enhanced {
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.6rem 0.6rem 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-search-form-enhanced:focus-within {
    box-shadow: 0 6px 30px rgba(217, 2, 23, 0.2);
    transform: translateY(-2px);
    border-color: var(--wadai-red);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wadai-red);
    z-index: 1;
    font-size: 1.1rem;
}

.hero-search-form-enhanced .form-control {
    border: none;
    padding-left: 3.5rem;
    font-size: 1.05rem;
    box-shadow: none;
    color: var(--wadai-text-black) !important;
    font-weight: 500;
}

.hero-search-form-enhanced .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.hero-search-form-enhanced .form-control:focus {
    box-shadow: none;
    outline: none;
}

.hero-search-btn {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.3);
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, var(--wadai-red-dark) 0%, var(--wadai-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 2, 23, 0.4);
    color: #fff;
}

.toggle-tab {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--wadai-text-gray);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toggle-tab.active,
.toggle-tab:hover {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.25);
}

.hero-quick-stats {
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    color: var(--wadai-text-black) !important;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.15);
    border-color: var(--wadai-red-soft);
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: var(--wadai-red) !important;
    letter-spacing: -0.02em;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--wadai-text-gray) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-trusted-enhanced {
    margin-top: 2rem;
}

.trusted-logos-slider {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.trusted-logo {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0);
    transition: all 0.3s ease;
}

.trusted-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* ========== Stats Counter Section - Beautiful Cute Design ========== */
.stats-counter-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.5rem 0;
    position: relative;
}

.stat-card-modern {
    padding: 1.75rem 1.5rem;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.stat-card-modern:hover::after {
    transform: scaleX(1);
}

.stat-card-modern:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.12);
    border-color: var(--wadai-red-soft);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.stat-card-modern:hover .stat-icon-wrapper::before {
    opacity: 0.4;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.2; }
}

.stat-card-modern:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 6px 20px rgba(217, 2, 23, 0.35);
}

.stat-icon {
    font-size: 1.6rem;
    color: white;
    z-index: 1;
}

.stat-number-large {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 0.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
    display: block;
}

.stat-label-modern {
    font-size: 0.9rem;
    color: var(--wadai-text-black) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0;
}

/* ========== Trending Jobs Section - Cute Small Boxes ========== */
.trending-jobs-section {
    background: white;
    padding: 5rem 0;
}

.job-card-trending {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1.75rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.job-card-trending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.job-card-trending:hover::before {
    transform: scaleX(1);
}

.job-card-trending:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(217, 2, 23, 0.12);
    border-color: var(--wadai-red-soft);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.25rem;
}

.job-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--wadai-text-black) !important;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.job-card-company {
    font-size: 0.95rem;
    color: var(--wadai-text-gray);
    font-weight: 600;
}

.job-card-badge {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 25px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(217, 2, 23, 0.25);
}

.job-card-body {
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--wadai-text-gray);
    margin-bottom: 1.25rem;
}

.job-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.job-card-salary {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Notifications Section ========== */
.notifications-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.notification-card {
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    transition: all 0.3s ease;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.notification-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.12);
    border-color: var(--wadai-red-soft);
}

.notification-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* ========== Testimonials Enhanced ========== */
.testimonials-enhanced {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
}

.testimonials-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(217, 2, 23, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.testimonial-card-enhanced {
    max-width: 850px;
    background: white;
    border-radius: 25px;
    padding: 3.5rem 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.testimonial-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-radius: 0 0 8px 8px;
}

.testimonial-quote-icon {
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--wadai-text-black) !important;
    font-style: italic;
    font-weight: 400;
}

.testimonial-avatar-enhanced {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    margin: 2rem auto 1.5rem;
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.3);
}

.testimonial-rating {
    margin-top: 1.5rem;
}

/* ========== Success Stories Section - Cute Small Boxes ========== */
.success-stories-section {
    background: white;
    padding: 5rem 0;
}

.success-story-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.success-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.success-story-card:hover::before {
    transform: scaleX(1);
}

.success-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(217, 2, 23, 0.15);
    border-color: var(--wadai-red-soft);
}

.success-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.3);
    transition: all 0.4s ease;
}

.success-story-card:hover .success-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.success-icon {
    font-size: 2.5rem;
    color: white;
}

.success-metric {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--wadai-text-black) !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

/* ========== Animations ========== */
[data-animate] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

[data-animate="fadeIn"] {
    transform: translateY(30px);
}

[data-animate="fadeInUp"] {
    transform: translateY(40px);
}

[data-animate="fadeInDown"] {
    transform: translateY(-40px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-enhanced-section {
        min-height: 65vh;
        padding: 10px 0 30px;
    }

    .hero-enhanced-title {
        font-size: 2.25rem;
    }

    .hero-search-form-enhanced {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .hero-search-btn {
        width: 100%;
        border-radius: 20px;
    }

    .stat-number-large {
        font-size: 2.25rem;
    }
    
    .stat-card-modern {
        padding: 1.5rem 1.25rem;
    }
    
    .stat-icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-item {
        min-width: 100%;
        padding: 0.9rem 1.25rem;
    }

    .testimonial-card-enhanced {
        padding: 2.5rem 2rem;
    }

    .success-story-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-quick-stats {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .stat-item {
        width: 100%;
    }

    .trusted-logos-slider {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .hero-enhanced-title {
        font-size: 2rem;
    }
}

/* ========== Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Loading States ========== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}
