/* ============================================
   ItsFreelancer.com — Homepage CSS
   ============================================ */

/* ===== HERO ===== */
.home-hero {
    background: linear-gradient(135deg, #0A0F1E 0%, #0D1B3E 60%, #0A2558 100%);
    padding: 80px 0 90px;
    overflow: hidden;
    position: relative;
}

.home-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,196,140,0.12);
    border: 1px solid rgba(0,196,140,0.3);
    color: #00C48C;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-highlight {
    background: linear-gradient(90deg, #0057FF, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,87,255,0.4);
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,87,255,0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
}

.hero-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-trust span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

/* ===== FLOATING CARDS VISUAL ===== */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 360px;
}

.floating-cards {
    position: relative;
    width: 320px;
    height: 320px;
}

.center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(0,87,255,0.15), 0 0 0 24px rgba(0,87,255,0.07);
    z-index: 2;
}
.center-badge span { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.center-badge small { font-size: 0.68rem; color: rgba(255,255,255,0.75); font-weight: 600; }

.float-card {
    position: absolute;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    animation: floatAnim 4s ease-in-out infinite;
}

.fc-1 { top: 0;    left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.fc-2 { top: 15%;  right: 0;  animation-delay: 0.5s; }
.fc-3 { top: 40%;  right: -10px; animation-delay: 1s; }
.fc-4 { bottom: 15%; right: 0; animation-delay: 1.5s; }
.fc-5 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.fc-6 { top: 40%;  left: -10px; animation-delay: 2.5s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.fc-1, .fc-5 { animation-name: floatAnimCenter; }
@keyframes floatAnimCenter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.sbar-item { text-align: center; }
.sbar-item strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.sbar-item span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.sbar-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== HOME SECTIONS ===== */
.home-section { padding: 72px 0; }
.home-section-alt { background: var(--bg); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-head p { font-size: 1rem; color: var(--text-muted); }

/* ===== CATEGORY CARDS ===== */
.home-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.home-cat-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.home-cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0,87,255,0.12);
    transform: translateY(-3px);
}

.hcc-icon { font-size: 2.2rem; flex-shrink: 0; }
.hcc-info h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.hcc-info p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.hcc-count { font-size: 0.8rem; font-weight: 700; color: var(--primary); }

/* ===== HOME TOOLS GRID ===== */
.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.home-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all 0.22s;
    position: relative;
}
.home-tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(0,87,255,0.1);
    transform: translateY(-2px);
}

.htc-icon { font-size: 1.8rem; flex-shrink: 0; }
.htc-info { flex: 1; min-width: 0; }
.htc-cat { font-size: 0.7rem; font-weight: 700; color: var(--primary); display: block; margin-bottom: 3px; }
.htc-info h3 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.htc-info p { font-size: 0.78rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.htc-arrow { color: var(--text-muted); font-size: 1.1rem; transition: all 0.2s; }
.home-tool-card:hover .htc-arrow { transform: translateX(4px); color: var(--primary); }

.section-cta { text-align: center; }
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(0,87,255,0.2);
    transition: all 0.2s;
}
.btn-view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== WHY HOME GRID ===== */
.why-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.why-home-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.2s;
}
.why-home-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(0,87,255,0.08); }
.why-home-card span { font-size: 2rem; display: block; margin-bottom: 14px; }
.why-home-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.why-home-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #0A0F1E, #0D1B3E);
    padding: 60px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-inner h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .home-hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
}
@media (max-width: 600px) {
    .home-section { padding: 48px 0; }
    .stats-bar-inner { gap: 20px; }
    .sbar-divider { display: none; }
    .cta-inner { flex-direction: column; text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-trust { justify-content: center; }
}
