/* =============================================
   Shambhavaa — 3D & Interaction Enhancements
   ============================================= */

/* ==================== HERO SPLIT LAYOUT ==================== */
.hero {
    min-height: 74vh;
    padding: 112px 0 54px;
}

.hero-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hero-split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text-side {
    flex: 1;
    max-width: 580px;
    text-align: left;
}

.hero-cosmos-side {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 10px 22px;
    background: rgba(198, 161, 91, 0.08);
    border: 1px solid rgba(198, 161, 91, 0.3);
    border-radius: 30px;
    font-size: 0.78rem;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 30px;
    animation: slowFadeIn 1s ease 0.1s both;
}

.hero-content h1 {
    font-size: clamp(2.9rem, 6.4vw, 4.8rem);
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    justify-content: center;
}

.hero-text-side h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 22px;
    animation: slowFadeIn 1s ease 0.3s both;
}

.hero-text-side .hero-subtitle {
    animation: slowFadeIn 1s ease 0.6s both;
    margin: 0 0 36px;
}

.hero-text-side .hero-actions {
    animation: slowFadeIn 1s ease 0.9s both;
    justify-content: flex-start;
    margin-bottom: 28px;
}

/* Ghost button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    font-size: 0.93rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(198, 161, 91, 0.06);
    transform: translateY(-2px);
}

/* Trust pills */
.hero-trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    animation: slowFadeIn 1s ease 1.2s both;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 5px 14px;
    border: 1px solid rgba(198, 161, 91, 0.12);
    border-radius: 20px;
    letter-spacing: 0;
    line-height: 1.2;
}

/* ==================== 3D COSMOS ==================== */
.cosmos-3d {
    position: relative;
    width: 380px;
    height: 380px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.12s ease-out;
    animation: slowFadeIn 1.2s ease 0.5s both;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(198, 161, 91, 0.22);
    transform-style: preserve-3d;
    will-change: transform;
}

.ring-outer {
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
    animation: orbit3d 22s linear infinite;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(198, 161, 91, 0.02) 100%);
}

.ring-mid {
    width: 238px;
    height: 238px;
    margin: -119px 0 0 -119px;
    animation: orbit3d 13s linear infinite reverse;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(198, 161, 91, 0.03) 100%);
}

.ring-inner {
    width: 152px;
    height: 152px;
    margin: -76px 0 0 -76px;
    animation: orbit3d 7s linear infinite;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(198, 161, 91, 0.04) 100%);
}

@keyframes orbit3d {
    0%   { transform: translate(0, 0) rotateX(72deg) rotateZ(0deg); }
    100% { transform: translate(0, 0) rotateX(72deg) rotateZ(360deg); }
}

.planet {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #d8b673, #a38245);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #060612;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(198, 161, 91, 0.7), 0 0 28px rgba(198, 161, 91, 0.2);
}

.planet.p-saturn {
    width: 24px; height: 24px; font-size: 10px;
    background: radial-gradient(circle at 35% 35%, #c4a882, #7a5a2a);
    box-shadow: 0 0 12px rgba(196, 168, 130, 0.6);
}

.planet.p-mars {
    top: -11px; width: 21px; height: 21px; font-size: 9px;
    background: radial-gradient(circle at 35% 35%, #d47050, #a03528);
    box-shadow: 0 0 12px rgba(212, 112, 80, 0.7);
}

.planet.p-moon {
    top: -10px; width: 19px; height: 19px; font-size: 9px;
    background: radial-gradient(circle at 35% 35%, #e0d5c5, #908070);
    box-shadow: 0 0 10px rgba(224, 213, 197, 0.5);
}

/* Kundli SVG overlay */
.kundli-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    opacity: 0.38;
    pointer-events: none;
    animation: rotateKundli 120s linear infinite;
}

@keyframes rotateKundli { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Central Om */
.cosmos-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    background: radial-gradient(circle, rgba(198, 161, 91, 0.14), rgba(198, 161, 91, 0.02));
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseCore 4s ease-in-out infinite;
    z-index: 2;
}

.cosmos-core-inner {
    font-size: 2.2rem;
    color: var(--primary);
    text-shadow: 0 0 16px rgba(198, 161, 91, 0.9), 0 0 40px rgba(198, 161, 91, 0.3);
}

@keyframes pulseCore {
    0%, 100% { box-shadow: 0 0 18px rgba(198, 161, 91, 0.18), 0 0 50px rgba(198, 161, 91, 0.04); }
    50%       { box-shadow: 0 0 36px rgba(198, 161, 91, 0.38), 0 0 80px rgba(198, 161, 91, 0.10); }
}

/* ==================== STATS BAR ==================== */
.stats-bar-section {
    position: relative;
    z-index: 2;
    padding: 0;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(14, 20, 38, 0.92);
    border-top: 1px solid rgba(198, 161, 91, 0.14);
    border-bottom: 1px solid rgba(198, 161, 91, 0.14);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.stat-item {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid rgba(198, 161, 91, 0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    display: inline;
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.3rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: 0.73rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 7px;
}

/* ==================== POPULAR BADGE ==================== */
.service-card { position: relative; }

.popular-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--gold-gradient);
    color: #0a0a20;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(198, 161, 91, 0.3);
    z-index: 3;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 44px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.testimonial-card > p {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--gold-gradient);
    color: #0a0a20;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author strong {
    display: block;
    color: var(--text-light);
    font-size: 0.93rem;
    font-family: var(--font-sans);
}

.testimonial-author span {
    display: block;
    font-size: 0.73rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ==================== URGENCY STRIP ==================== */
.urgency-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(90deg, #110800 0%, #261200 45%, #110800 100%);
    border-top: 1px solid rgba(198, 161, 91, 0.35);
    padding: 11px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.urgency-strip.visible { transform: translateY(0); }
.urgency-strip.hidden  { display: none; }

.urgency-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.urgency-text {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.urgency-text strong { color: var(--primary-light); }

.urgency-cta {
    display: inline-flex;
    padding: 7px 20px;
    background: var(--gold-gradient);
    color: #0a0a20 !important;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.urgency-cta:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(198, 161, 91, 0.4);
    color: #0a0a20 !important;
}

.urgency-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.urgency-close:hover { color: var(--text-light); }

/* ==================== SCROLL REVEAL ==================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ==================== CARD 3D TILT ==================== */
.service-card {
    will-change: transform;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
    .hero {
        min-height: auto;
        padding: 106px 0 48px;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-content h1 {
        font-size: clamp(2.45rem, 9vw, 3.5rem);
    }

    .hero-subtitle {
        max-width: 560px;
        line-height: 1.62;
    }

    .hero-split-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-text-side {
        max-width: 100%;
        text-align: center;
    }

    .hero-text-side .hero-actions { justify-content: center; }
    .hero-trust-pills { justify-content: center; }

    .hero-cosmos-side { flex: none; }

    .cosmos-3d { width: 280px; height: 280px; }
    .ring-outer { width: 254px; height: 254px; margin: -127px 0 0 -127px; }
    .ring-mid   { width: 178px; height: 178px; margin: -89px  0 0 -89px; }
    .ring-inner { width: 114px; height: 114px; margin: -57px  0 0 -57px; }
    .cosmos-core { width: 64px; height: 64px; }
    .cosmos-core-inner { font-size: 1.7rem; }
    .kundli-svg { width: 158px; height: 158px; }
}

@media (max-width: 600px) {
    .hero {
        padding: 96px 0 42px;
    }

    .hero-badge {
        margin-bottom: 20px;
        padding: 8px 14px;
        font-size: 0.68rem;
    }

    .hero-content h1 {
        font-size: clamp(2.12rem, 12vw, 2.75rem);
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-trust-pills {
        max-width: 340px;
        margin: 0 auto;
    }

    .trust-pill {
        flex: 1 1 150px;
        white-space: normal;
        text-align: center;
    }

    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) { border-bottom: 1px solid rgba(198, 161, 91, 0.08); }
    .cosmos-3d { width: 220px; height: 220px; }
    .ring-outer { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
    .ring-mid   { width: 140px; height: 140px; margin: -70px  0 0 -70px; }
    .ring-inner { width: 90px;  height: 90px;  margin: -45px  0 0 -45px; }
    .urgency-text { font-size: 0.8rem; }
}
