/* ============================================================
   AK SERVICES — SACRED IVORY & GOLD LIGHT THEME
   Warm parchment · Burnished gold · Saffron ember
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ─── SECTION ─────────────────────────────────────────────── */
.ak-services-section {
    padding: 80px 40px;
    background: #fdf8f0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Warm mandala radial glow */
.ak-services-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 160, 40, 0.10) 0%,
        rgba(220, 100, 30, 0.05) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    animation: akPulseGlow 8s ease-in-out infinite alternate;
}

@keyframes akPulseGlow {
    from { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* Warm parchment texture overlay */
.ak-services-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Decorative corner flourishes */
.ak-services-section .ak-corner-tl,
.ak-services-section .ak-corner-br {
    position: absolute;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}
.ak-services-section .ak-corner-tl { top: 20px; left: 20px; }
.ak-services-section .ak-corner-br { bottom: 20px; right: 20px; transform: rotate(180deg); }

/* ─── HEADING ─────────────────────────────────────────────── */
.akf-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
    animation: akFadeDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes akFadeDown {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.akf-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    line-height: 1.15;
    background: linear-gradient(110deg, #7a4f00, #c8860c, #f5c230, #d4880a, #7a4f00);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: akGoldShimmer 5s linear infinite;
}

@keyframes akGoldShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* Gold divider under heading */
.akf-heading h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, #c8960c, #f5c842, #c8960c, transparent);
    border-radius: 2px;
}

.akf-heading p {
    font-size: 15px;
    color: #9a8870;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ─── GRID ────────────────────────────────────────────────── */
.ak-services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    position: relative;
    z-index: 1;
}

/* ─── CARD ────────────────────────────────────────────────── */
.ak-service-card {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Staggered entrance animation */
    opacity: 0;
    transform: translateY(48px);
    animation: akCardRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ak-service-card:nth-child(1) { animation-delay: 0.15s; }
.ak-service-card:nth-child(2) { animation-delay: 0.30s; }
.ak-service-card:nth-child(3) { animation-delay: 0.45s; }
.ak-service-card:nth-child(4) { animation-delay: 0.60s; }
.ak-service-card:nth-child(5) { animation-delay: 0.75s; }
.ak-service-card:nth-child(6) { animation-delay: 0.90s; }

@keyframes akCardRise {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   CHAKRA (BACK) — spinning sacred geometry
========================= */
.ak-chakra-bg {
    position: absolute;
    bottom: 0;
    left: 50%;

    width: 380px;
    height: 380px;

    z-index: 1;

    transform: translateX(-50%);
    transform-origin: center;

    animation: akSpin 30s linear infinite;

    filter:
        drop-shadow(0 0 18px rgba(200, 150, 12, 0.35))
        drop-shadow(0 0 40px rgba(200, 150, 12, 0.12))
        brightness(0.95)
        sepia(1)
        saturate(1.8)
        hue-rotate(8deg);

    opacity: 0.30;
}

@keyframes akSpin {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

/* =========================
   IMAGE (MIDDLE)
   Light theme: warm ivory border + soft saffron glow
========================= */
.ak-img-box {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 260px;
    height: 380px;
    border-radius: 130px;
    overflow: hidden;

    z-index: 2;

    box-shadow:
        0 0 0 2px rgba(200, 150, 12, 0.30),
        0 0 0 6px rgba(200, 150, 12, 0.07),
        0 20px 50px rgba(120, 80, 10, 0.18),
        0 0 30px rgba(200, 150, 12, 0.10);

    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ak-service-card:hover .ak-img-box {
    transform: translateX(-50%) translateY(-6px);
    box-shadow:
        0 0 0 2px rgba(245, 200, 66, 0.55),
        0 0 0 8px rgba(245, 200, 66, 0.10),
        0 28px 60px rgba(120, 80, 10, 0.28),
        0 0 50px rgba(200, 150, 12, 0.20);
}

.ak-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) saturate(0.88) sepia(0.06);
    transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ak-service-card:hover .ak-img-box img {
    filter: brightness(0.72) saturate(0.65) sepia(0.10);
    transform: scale(1.04);
}

/* =========================
   HOVER OVERLAY
   Light theme: warm ivory veil
========================= */
.ak-hover-content {
    position: absolute;
    inset: 0;
    border-radius: 130px;
    background: linear-gradient(
        180deg,
        rgba(255, 248, 230, 0.05) 0%,
        rgba(240, 220, 170, 0.72) 55%,
        rgba(220, 190, 120, 0.92) 100%
    );
    color: #3a2500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 22px;
    opacity: 0;
    transition: opacity 0.35s ease;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.ak-service-card:hover .ak-hover-content {
    opacity: 1;
}

/* =========================
   OVERLAY CIRCLE (FRONT)
   Light theme: warm gold → saffron gradient
========================= */
.ak-service-overlay {
    position: absolute;

    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);

    width: 170px;
    height: 170px;
    border-radius: 50%;

    background: radial-gradient(circle at 35% 35%,
        #fff4c2 0%,
        #f5c230 30%,
        #d4800a 70%,
        #a04010 100%
    );
    color: #fff8e8;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    z-index: 3;

    box-shadow:
        0 0 0 2px rgba(245, 200, 66, 0.40),
        0 0 0 6px rgba(245, 200, 66, 0.10),
        0 10px 35px rgba(160, 80, 10, 0.35),
        0 0 25px rgba(200, 150, 12, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 8px rgba(0, 0, 0, 0.12);

    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;

    /* Subtle float animation */
    animation: akFloat 4s ease-in-out infinite;
}

.ak-service-card:nth-child(even) .ak-service-overlay {
    animation-delay: -2s;
}

@keyframes akFloat {
    0%, 100% { bottom: 80px; }
    50%       { bottom: 88px; }
}

.ak-service-card:hover .ak-service-overlay {
    transform: translateX(-50%) scale(1.09);
    animation-play-state: paused;
    box-shadow:
        0 0 0 2px rgba(245, 200, 66, 0.70),
        0 0 0 8px rgba(245, 200, 66, 0.14),
        0 16px 48px rgba(160, 80, 10, 0.50),
        0 0 45px rgba(200, 150, 12, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.ak-service-overlay span {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
    color: #fff4d0;
}

.ak-service-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #fff8e8;
    text-shadow: 0 1px 6px rgba(100, 40, 0, 0.4);
    margin-top: 3px;
}

/* =========================
   WRAPPER
========================= */
.ak-chakra-wrap {
    position: static;
}

/* =========================
   SCROLL REVEAL (JS-driven)
========================= */
.ak-service-card.ak-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .ak-services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }
}

@media (max-width: 768px) {
    .ak-services-section {
        padding: 60px 20px;
    }

    .akf-heading h2 {
        font-size: 34px;
    }

    .ak-services-container {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .ak-service-card {
        height: 480px;
    }

    .ak-img-box {
        width: 220px;
        height: 340px;
    }

    .ak-chakra-bg {
        width: 320px;
        height: 320px;
    }

    .ak-service-overlay {
        width: 140px;
        height: 140px;
        bottom: 70px;
    }

    .ak-service-overlay h3 {
        font-size: 15px;
    }
}