/* ============================================================
   🔒 FULLY SCOPED — .astro-services-section prefix
   Enhanced animations · Tight spacing · Same theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

.astro-services-section *,
.astro-services-section *::before,
.astro-services-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════
   SECTION SHELL
══════════════════════════════ */
.astro-services-section {
    padding: clamp(50px, 6vw, 70px) clamp(16px, 4vw, 40px);
    background: radial-gradient(ellipse at 20% 10%, #fff8f0 0%, #fdfbff 40%, #f4f0ff 100%);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ── background glow orbs ── */
.astro-services-section::before {
    content: '';
    position: absolute;
    width: clamp(300px, 40vw, 500px);
    height: clamp(300px, 40vw, 500px);
    background: radial-gradient(circle, rgba(255, 140, 0, 0.12), transparent 70%);
    top: -80px;
    right: -80px;
    border-radius: 50%;
    animation: astroSvcGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.astro-services-section::after {
    content: '';
    position: absolute;
    width: clamp(200px, 30vw, 380px);
    height: clamp(200px, 30vw, 380px);
    background: radial-gradient(circle, rgba(150, 100, 255, 0.08), transparent 70%);
    bottom: -60px;
    left: -60px;
    border-radius: 50%;
    animation: astroSvcGlow 10s ease-in-out 3s infinite alternate-reverse;
    pointer-events: none;
}

/* ── floating particles ── */
.astro-services-section .svc-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 180, 50, 0.35);
}
.astro-services-section .svc-particle.sp1 { width:5px;height:5px; top:15%; left:5%;  animation: svcFloat 7s ease-in-out infinite; }
.astro-services-section .svc-particle.sp2 { width:3px;height:3px; top:65%; right:7%; animation: svcFloat 9s ease-in-out 2s infinite reverse; }
.astro-services-section .svc-particle.sp3 { width:4px;height:4px; top:80%; left:20%; animation: svcFloat 8s ease-in-out 4s infinite; }
.astro-services-section .svc-particle.sp4 { width:3px;height:3px; top:25%; right:20%;animation: svcFloat 6s ease-in-out 1s infinite reverse; }
.astro-services-section .svc-particle.sp5 { width:6px;height:6px; top:50%; left:50%; animation: svcFloat 11s ease-in-out 3s infinite; }

/* ── top accent line ── */
.astro-services-section .svc-top-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff8c00, #ffd700, #9b59b6, transparent);
    background-size: 200% 100%;
    animation: svcShimmerBar 4s linear infinite;
}

/* ══════════════════════════════
   CONTAINER
══════════════════════════════ */
.astro-services-section .astro-services-container {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════
   HEADER BLOCK
══════════════════════════════ */

/* eyebrow */
.astro-services-section .svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 140, 0, 0.07);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c4780a;
    margin-bottom: 14px;
    animation: svcFadeUp 0.6s ease both;
}
.astro-services-section .svc-eyebrow-dot {
    width: 5px; height: 5px;
    background: #ff8c00;
    border-radius: 50%;
    animation: svcBlink 2s ease-in-out infinite;
}

/* title */
.astro-services-section .astro-services-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 700;
    color: #2c2c54;
    margin-bottom: 14px;
    line-height: 1.2;
    animation: svcFadeUp 0.6s ease 0.1s both;
}

.astro-services-section .astro-services-title .title-highlight {
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* subtitle */
.astro-services-section .astro-services-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: #777;
    margin-bottom: clamp(30px, 4vw, 44px);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: svcFadeUp 0.6s ease 0.2s both;
}

/* ── header divider ── */
.astro-services-section .svc-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: clamp(28px, 4vw, 42px);
    animation: svcFadeUp 0.6s ease 0.25s both;
}
.astro-services-section .svc-divider-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.4));
}
.astro-services-section .svc-divider-line.r {
    background: linear-gradient(90deg, rgba(255,140,0,0.4), transparent);
}
.astro-services-section .svc-divider-icon {
    font-size: 18px;
    animation: svcSpin 8s linear infinite;
}

/* ══════════════════════════════
   GRID
══════════════════════════════ */
.astro-services-section .astro-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(18px, 2.5vw, 28px);
}

/* ══════════════════════════════
   CARD
══════════════════════════════ */
.astro-services-section .astro-service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 140, 0, 0.08);

    /* reveal animation — driven by JS adding .svc-visible */
    opacity: 0;
    transform: translateY(30px);
}

.astro-services-section .astro-service-card.svc-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        box-shadow 0.4s ease;
}

/* gradient border glow */
.astro-services-section .astro-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1.5px;
    background: linear-gradient(120deg, #ff8c00, #ffd700, #9b59b6, #ff8c00);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: svcGradientShift 4s ease infinite paused;
    pointer-events: none;
}

/* shine sweep */
.astro-services-section .astro-service-card::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    top: -100%;
    left: -100%;
    transform: rotate(25deg);
    transition: 0.65s ease;
    pointer-events: none;
}

/* ── image ── */
.astro-services-section .astro-service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 16px;
    transition: transform 0.5s ease;
    display: block;
}

/* ── category badge ── */
.astro-services-section .svc-badge {
    display: inline-block;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #c4780a;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ── heading ── */
.astro-services-section .astro-service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(17px, 1.8vw, 22px);
    margin-bottom: 8px;
    font-weight: 700;
    color: #2c2c54;
    transition: color 0.3s;
}

/* ── body text ── */
.astro-services-section .astro-service-card p {
    font-size: clamp(13px, 1.1vw, 15px);
    color: #777;
    line-height: 1.65;
}

/* ── read more arrow ── */
.astro-services-section .svc-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #ff8c00;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── hover states ── */
.astro-services-section .astro-service-card:hover {
    transform: translateY(-12px) scale(1.025);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.13);
}

.astro-services-section .astro-service-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.astro-services-section .astro-service-card:hover::after {
    top: 100%;
    left: 100%;
}

.astro-services-section .astro-service-card:hover img {
    transform: scale(1.07);
}

.astro-services-section .astro-service-card:hover h3 {
    color: #c4780a;
}

.astro-services-section .astro-service-card:hover .svc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════
   BOTTOM CTA STRIP
══════════════════════════════ */
.astro-services-section .svc-bottom {
    margin-top: clamp(30px, 4vw, 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: svcFadeUp 0.6s ease 0.5s both;
}

.astro-services-section .svc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    border-radius: 50px;
    color: #1a0800;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: svcPulse 2.5s ease-in-out infinite;
}

.astro-services-section .svc-view-all::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    top: -100%; left: -100%;
    transition: 0.6s;
}
.astro-services-section .svc-view-all:hover::before { top: 100%; left: 100%; }
.astro-services-section .svc-view-all:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 36px rgba(255,140,0,0.5);
}

/* ══════════════════════════════
   KEYFRAMES  (svc- prefixed)
══════════════════════════════ */
@keyframes astroSvcGlow {
    from { transform: translateY(0) scale(1);   opacity: 0.7; }
    to   { transform: translateY(40px) scale(1.1); opacity: 1; }
}
@keyframes svcFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
    50%       { transform: translateY(-22px) scale(1.5); opacity: 0.8; }
}
@keyframes svcFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes svcBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}
@keyframes svcShimmerBar {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes svcGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes svcSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes svcPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,140,0,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(255,140,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,140,0,0); }
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 600px) {
    .astro-services-section {
        padding: clamp(36px, 6vw, 50px) 15px;
    }
    .astro-services-section .astro-service-card img {
        height: 160px;
    }
    .astro-services-section .astro-service-card h3 {
        font-size: 18px;
    }
    .astro-services-section .astro-service-card p {
        font-size: 13px;
    }
    .astro-services-section .astro-services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}