/* ============================================================
   TRANSFORMATIONS — 3D Flip Card Gallery — Bombay Beauty
   ============================================================ */

.trans-body {
    background: #080808;
    color: #fff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

/* ── SECTION HEADINGS ────────────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 10px;
}

.section-heading p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* ── HERO ────────────────────────────────────────────────── */
.trans-hero {
    height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.trans-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(255,215,0,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 50%, rgba(255,140,0,0.12) 0%, transparent 55%),
        linear-gradient(160deg, #080808 0%, #100a00 60%, #080808 100%);
    animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    from { opacity: 0.8; }
    to   { opacity: 1; }
}

/* ── 3D FLIP GRID ────────────────────────────────────────── */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* FLIP CARD CONTAINER */
.flip-card {
    perspective: 1200px;
    height: 420px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.85s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 20px;
}

/* Flipped state */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Hover-preview: lift slightly */
.flip-card:hover .flip-card-inner {
    transform: rotateY(8deg) translateY(-4px);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.6);
}

.flip-card.flipped:hover .flip-card-inner {
    transform: rotateY(172deg) translateY(-4px);
}

/* FRONT AND BACK SHARED */
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Images fill the card */
.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.flip-card:hover .flip-card-front img,
.flip-card:hover .flip-card-back img {
    transform: scale(1.04);
}

/* FRONT — dark desaturated overlay */
.flip-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    pointer-events: none;
}

/* BACK — glowing gold overlay */
.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    pointer-events: none;
}

/* Labels: BEFORE / AFTER */
.card-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 5;
}

.before-label {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.after-label {
    background: rgba(255,215,0,0.25);
    color: #ffd700;
    border: 1px solid rgba(255,215,0,0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

/* Flip hint */
.flip-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    z-index: 5;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Coming soon overlay for placeholder cards */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    z-index: 4;
    border: 2px dashed rgba(255,215,0,0.3);
    border-radius: 20px;
    margin: 10px;
}

/* Category tag */
.card-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 5;
}

/* Book button on back */
.card-book-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #ffd700;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    z-index: 5;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.card-book-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-bottom: 80px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .flip-card {
        height: 340px;
    }

    .flip-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}
