﻿/* ============================================================
   WADAI Home Page Styles - Red Primary Color
   Dynamic, Creative & Professional
   ============================================================ */

:root {
    --brand-primary: #d90217;
    --brand-primary-dark: #a60112;
    --brand-primary-light: #ef233c;
    --brand-primary-hover: #ef233c;
    --brand-text-dark: #111111;
    --brand-text-gray: #5e6d55;
    --brand-bg-light: #f7faf7;
    --brand-neutral-100: #ffffff;
    --brand-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
    --brand-radius-md: 0.5rem;
    --brand-radius-lg: 0.75rem;
    
    /* Secondary Colors */
    --wadai-blue: #0066cc;
    --wadai-green: #00a86b;
    --wadai-orange: #ff6b35;
    --wadai-purple: #6c5ce7;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--brand-text-dark);
    background-color: var(--brand-neutral-100);
}

.wad-homepage {
    background: var(--brand-neutral-100);
}

.text-brand {
    color: var(--brand-primary) !important;
}

.bg-brand-soft {
    background-color: rgba(217, 2, 23, 0.12) !important;
}

.bg-brand-subtle {
    background-color: rgba(217, 2, 23, 0.08) !important;
}

.badge.bg-brand-soft {
    color: var(--brand-primary) !important;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-color: var(--brand-primary);
    color: var(--brand-neutral-100);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.3);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary-hover) 100%);
    border-color: var(--brand-primary-hover);
    color: var(--brand-neutral-100);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(217, 2, 23, 0.4);
}

.btn-outline-brand {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-neutral-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 2, 23, 0.3);
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, var(--brand-neutral-100) 0%, rgba(255, 255, 255, 0) 5%, transparent), url('/assets/media/hero-illustration.avif');
    background-position: center -80%;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateX(-50%);
    left: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: -12% -20% auto -10%;
    height: 420px;
    background: radial-gradient(circle at top right, rgba(217, 2, 23, 0.16), rgba(217, 2, 23, 0));
    z-index: 0;
    pointer-events: none;
}

.hero-copy {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: 2rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(217, 2, 23, 0.35);
}

.hero-copy .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--brand-neutral-100);
    letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy p {
    color: var(--brand-neutral-100);
}

.hero-search {
    background: var(--brand-neutral-100);
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
    border: 2px solid rgba(217, 2, 23, 0.2);
    transition: all 0.3s ease;
}

.hero-search:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(217, 2, 23, 0.15);
}

.hero-search .form-control,
.hero-search .form-select {
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero-search .form-control:focus,
.hero-search .form-select:focus {
    box-shadow: none;
}

.hero-search .btn {
    border-radius: 999px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--brand-neutral-100);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(217, 2, 23, 0.1);
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(217, 2, 23, 0.2);
}

.hero-card__header .badge {
    background: rgba(217, 2, 23, 0.15);
    color: var(--brand-primary);
    font-weight: 700;
}

.hero-market li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.hero-market li:last-child {
    border-bottom: none;
}

.hero-card__footer .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.875rem;
    background: rgba(217, 2, 23, 0.15);
    color: var(--brand-primary);
}

.hero-card__footer .btn {
    border-radius: 999px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 1.5rem;
    background: var(--brand-neutral-100);
    box-shadow: var(--brand-shadow-soft);
    border: 2px solid rgba(217, 2, 23, 0.1);
}

.hero-stats span.h3 {
    display: block;
}

.trusted-bar {
    background: var(--brand-neutral-100);
    border-block: 1px solid rgba(17, 17, 17, 0.06);
}

.trusted-marquee {
    flex-wrap: wrap;
}

.trusted-logo {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.36);
    opacity: 0.85;
    white-space: nowrap;
}

.value-section {
    background: linear-gradient(180deg, var(--brand-neutral-100), var(--brand-bg-light));
}

.value-block {
    width: 100%;
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--brand-neutral-100) 0%, var(--brand-bg-light) 100%);
    overflow: hidden;
}

.value-block:nth-of-type(odd) {
    background: linear-gradient(135deg, #fdfdfd 0%, rgba(217, 2, 23, 0.03) 100%);
}

.value-block::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 2, 23, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: valueFloat 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes valueFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.value-block .container {
    position: relative;
    z-index: 1;
}

.value-copy {
    max-width: 460px;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(217, 2, 23, 0.15);
    color: var(--brand-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.2);
}

.value-visual {
    position: relative;
}

.value-visual picture {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.1);
    background: linear-gradient(135deg, rgba(217, 2, 23, 0.06), rgba(217, 2, 23, 0));
}

.value-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-section {
    background: var(--brand-neutral-100);
}

.category-card {
    border: 2px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: var(--brand-neutral-100);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 20px 50px rgba(217, 2, 23, 0.2);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(217, 2, 23, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--brand-primary);
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.2);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(217, 2, 23, 0.2);
}

.how-it-works {
    background: var(--brand-bg-light);
}

.how-card {
    background: var(--brand-neutral-100);
    border-radius: 1.5rem;
    border: 2px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
    transition: all 0.4s ease;
    padding: 2.5rem;
}

.how-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(217, 2, 23, 0.2);
    border-color: var(--brand-primary);
}

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(217, 2, 23, 0.15);
    color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.2);
    transition: all 0.3s ease;
}

.how-card:hover .icon-circle {
    transform: scale(1.15) rotate(10deg);
    background: rgba(217, 2, 23, 0.25);
}

.talent-showcase {
    background: var(--brand-neutral-100);
}

.talent-showcase .carousel-inner {
    overflow: visible;
    padding-top: 3rem;
}

.talent-card {
    border-radius: 1.75rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.talent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(217, 2, 23, 0.2);
    border-color: var(--brand-primary);
}

.talent-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.3);
}

.talent-card .badge {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(217, 2, 23, 0.15);
    color: var(--brand-primary);
    font-weight: 700;
}

.testimonials {
    background: var(--brand-bg-light);
}

.testimonial-card {
    max-width: 720px;
    background: var(--brand-neutral-100);
    border-radius: 2rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 28px 60px rgba(17, 17, 17, 0.08);
    border: 2px solid rgba(217, 2, 23, 0.1);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(217, 2, 23, 0.3);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(217, 2, 23, 0.3);
}

.carousel-indicators .active {
    background-color: var(--brand-primary);
}

.cta-banner {
    background: linear-gradient(140deg, var(--brand-primary), var(--brand-primary-dark));
    border-radius: 2rem;
    box-shadow: 0 28px 60px rgba(217, 2, 23, 0.3);
    margin: 0 1rem;
    padding: 3rem 2rem;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-copy {
        border-radius: 1.5rem;
        text-align: center;
    }

    .hero-search {
        border-radius: 1.5rem;
        padding: 1rem;
    }

    .value-block {
        min-height: auto;
        padding: 3rem 1.5rem;
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .cta-banner {
        margin: 0;
        border-radius: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-card {
        padding: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .trusted-marquee {
        gap: 1.5rem;
    }
}

#talentCarousel .carousel-item {
    display: block;
    height: auto;
    padding: 1rem 0;
}

#talentCarousel .carousel-inner {
    overflow: visible;
}

#talentCarousel .row {
    align-items: stretch;
}

.talent-showcase {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
