/* ===== CSS SERVICES - MOBILE FIRST RESPONSIVO ===== */
/* Substitua COMPLETAMENTE o arquivo services.css */

/* RESET BÁSICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HERO SECTION - MOBILE FIRST ===== */
.services-hero {
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 25%, #16213e 50%, #0f3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    /* ESPAÇO CRÍTICO PARA HEADER */
    padding-top: 80px;
    padding-bottom: 2rem;
}

/* PARTÍCULAS - REDUZIDAS PARA MOBILE */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cosmic-particles,
.mystical-constellation {
    position: absolute;
    inset: 0;
}

.particle,
.constellation-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

/* HERO CONTENT - MOBILE FIRST */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Coluna no mobile - animação aparece primeiro */
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #93c5fd;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* STATS - LAYOUT HORIZONTAL MOBILE */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 350px;
    width: 100%;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.2;
    text-align: center;
}

/* BOTÕES MOBILE */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover,
.btn-outline-light:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* VISUAL MOBILE */
.hero-visual {
    width: 100%;
    max-width: 280px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    /* Adiciona margem inferior */
}

.tarot-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    z-index: 3;
}

.mystical-card {
    width: 60px;
    height: 100px;
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    position: absolute;
    border: 2px solid rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cardFloat 4s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-1 {
    transform: rotate(-15deg) translateX(-35px);
    animation-delay: 0s;
    z-index: 3;
}

.card-2 {
    transform: rotate(0deg);
    animation-delay: 1s;
    z-index: 4;
}

.card-3 {
    transform: rotate(15deg) translateX(35px);
    animation-delay: 2s;
    z-index: 3;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }

    50% {
        transform: translateY(-15px) rotate(var(--rotation, 0deg));
    }
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #ec4899, #8b5cf6);
    background-size: 400% 400%;
    border-radius: 8px;
    opacity: 0.6;
    filter: blur(8px);
    z-index: -1;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.4;
        background-position: 0% 50%;
    }

    50% {
        opacity: 0.8;
        background-position: 100% 50%;
    }
}

.card-symbol {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.energy-rings {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 1;
}

.energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.ring-1 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 15s linear infinite;
}

.ring-2 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 20s linear infinite reverse;
}

.ring-3 {
    width: 170px;
    height: 170px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 25s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== SEÇÃO CATEGORIAS ===== */
.service-categories {
    padding: 3rem 0;
    background: linear-gradient(180deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    position: relative;
}

.service-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(12, 12, 30, 0.8), transparent);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #93c5fd;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before,
.category-card:active::before {
    left: 100%;
}

.category-card:active {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.love .category-icon {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.career .category-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.spiritual .category-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.general .category-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.category-description {
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.category-count {
    font-size: 0.85rem;
    color: #93c5fd;
    font-weight: 700;
}

/* ===== SEÇÃO SERVIÇOS ===== */
.services-grid-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.filter-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-tab {
    width: 100%;
    max-width: 250px;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-tab:active,
.filter-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card-wrapper {
    transition: all 0.3s ease;
}

.service-card-wrapper.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* ===== CTA SECTION ===== */
.services-cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mystical-orb {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
}

.orb-core {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #fbbf24 0%, #f59e0b 70%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.8);
    }
}

.orb-rings {
    position: absolute;
    inset: 0;
}

.orb-ring {
    position: absolute;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
}

.ring-0 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbRingRotate 15s linear infinite;
}

.ring-1 {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbRingRotate 20s linear infinite reverse;
}

.ring-2 {
    width: 110px;
    height: 110px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbRingRotate 25s linear infinite;
}

@keyframes orbRingRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cta-text {
    max-width: 400px;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-text p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.benefit i {
    color: #fbbf24;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

/* ===== RESPONSIVO TABLET ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .services-hero {
        padding-top: 100px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 3rem;
        text-align: left;
        min-height: calc(100vh - 100px);
        flex-direction: row;
    }

    .hero-text {
        max-width: none;
        align-items: flex-start;
    }

    .hero-subtitle {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
        width: fit-content;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-stats {
        max-width: 500px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        flex-direction: row;
        max-width: none;
    }

    .btn {
        width: auto;
        padding: 1rem 2rem;
    }

    .hero-visual {
        max-width: none;
        height: 400px;
    }

    .mystical-card {
        width: 100px;
        height: 160px;
    }

    .card-symbol {
        font-size: 2rem;
    }

    .energy-rings {
        width: 300px;
        height: 300px;
    }

    .ring-1 {
        width: 100px;
        height: 100px;
    }

    .ring-2 {
        width: 180px;
        height: 180px;
    }

    .ring-3 {
        width: 260px;
        height: 260px;
    }

    .section-title {
        font-size: 3rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tabs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-tab {
        width: auto;
        max-width: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content {
        grid-template-columns: 1fr 2fr;
        display: grid;
        text-align: left;
        align-items: center;
    }

    .mystical-orb {
        width: 200px;
        height: 200px;
    }

    .orb-core {
        width: 80px;
        height: 80px;
    }

    .ring-0 {
        width: 120px;
        height: 120px;
    }

    .ring-1 {
        width: 160px;
        height: 160px;
    }

    .ring-2 {
        width: 200px;
        height: 200px;
    }

    .cta-text {
        max-width: none;
    }

    .cta-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-actions {
        flex-direction: row;
        max-width: none;
    }
}

/* ===== RESPONSIVO DESKTOP ===== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 3.5rem;
    }
}

/* ===== OTIMIZAÇÕES DE PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ACESSIBILIDADE ===== */
.btn:focus,
.filter-tab:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ===== UTILIDADES ===== */
.scroll-smooth {
    scroll-behavior: smooth;
}

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

.hidden {
    display: none !important;
}
