/* =========================================================
   KINHA - HERITAGE MANDALA HERO  (hero.css)
   Save this file as UTF-8.
========================================================= */

:root {
    --kinha-maroon: #641c2b;
    --kinha-dark: #42121d;
    --kinha-darker: #250b12;

    --kinha-gold: #c9a227;
    --kinha-gold-light: #e7cf72;
    --kinha-gold-soft: #f2df9a;

    --kinha-cream: #fff8e7;
    --kinha-paper: #f8edd8;

    --kinha-text: #3c2026;
    --kinha-muted: #765f5a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--kinha-text);
}

a {
    text-decoration: none;
}


/* =========================================================
   HERO
========================================================= */

.kinha-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(
        circle at center,
        #fffdf7 0%,
        #fff5df 28%,
        #efd8b9 62%,
        #d5b08f 100%
    );
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .8), transparent 45%);
    pointer-events: none;
}

.heritage-pattern {
    position: absolute;
    width: 900px;
    height: 900px;
    max-width: 200vw;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(100, 28, 43, .035) 0deg 2deg,
        transparent 2deg 10deg
    );
    -webkit-mask-image: radial-gradient(circle, black 0%, transparent 68%);
    mask-image: radial-gradient(circle, black 0%, transparent 68%);
    animation: slowPattern 80s linear infinite;
    pointer-events: none;
}

@keyframes slowPattern {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* =========================================================
   PARTICLES
========================================================= */

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--kinha-gold);
    box-shadow: 0 0 12px rgba(201, 162, 39, .7);
    animation: floatingParticle 5s ease-in-out infinite;
    pointer-events: none;
}

.particle-1 { left: 6%;  top: 26%; }
.particle-2 { right: 8%; top: 20%;    animation-delay: 1s; }
.particle-3 { left: 9%;  bottom: 22%; animation-delay: 2s; }
.particle-4 { right: 7%; bottom: 28%; animation-delay: 3s; }
.particle-5 { left: 2%;  top: 52%;    animation-delay: 1.5s; }
.particle-6 { right: 22%; top: 8%;    animation-delay: 2.5s; }

@keyframes floatingParticle {
    0%, 100% { transform: translateY(0) scale(1);     opacity: .4; }
    50%      { transform: translateY(-15px) scale(1.4); opacity: 1; }
}


/* =========================================================
   HERO LAYOUT - two columns
========================================================= */

.hero-layout {
    position: relative;
    z-index: 5;
    width: 80%;
    max-width: 1450px;
    min-height: 78vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
}


/* ---------- LEFT: image + intro ---------- */

.hero-intro {
    display: flex;
    align-items: center;
    gap: clamp(25px, 3vw, 50px);
    max-width: 720px;
}

.intro-image {
    flex: 0 0 clamp(110px, 12vw, 170px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 12px;
}

.intro-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.intro-content {
    max-width: 390px;
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--kinha-gold);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.intro-content h1 {
    margin: 0;
    color: var(--kinha-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(36px, 3.6vw, 58px);
    font-weight: 400;
    line-height: 1.06;
}

.intro-content h1 span {
    display: block;
    color: var(--kinha-gold);
    font-style: italic;
}

.gold-divider {
    width: 60px;
    height: 2px;
    margin: 24px 0;
    background: var(--kinha-gold);
}

.intro-lead {
    margin: 0 0 12px;
    color: var(--kinha-text);
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
}

.intro-description {
    margin: 0;
    color: var(--kinha-muted);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.heritage-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
    padding: 13px 22px;
    color: var(--kinha-cream);
    background: var(--kinha-maroon);
    border: 1px solid var(--kinha-maroon);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    transition: .3s ease;
}

.heritage-button:hover {
    background: var(--kinha-gold);
    border-color: var(--kinha-gold);
    color: var(--kinha-dark);
}


/* =========================================================
   MANDALA
========================================================= */

.mandala-wrapper {
    position: relative;
    width: min(480px, 36vw);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    z-index: 5;
}

.mandala-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring-outer {
    width: 86%;
    height: 86%;
    border: 1px solid rgba(100, 28, 43, .15);
    box-shadow: inset 0 0 40px rgba(201, 162, 39, .05);
    animation: ringPulse 7s ease-in-out infinite;
}

.ring-dashed {
    width: 78%;
    height: 78%;
    border: 1px dashed rgba(201, 162, 39, .55);
    animation: rotateRing 55s linear infinite;
}

.ring-inner {
    width: 59%;
    height: 59%;
    border: 1px solid rgba(100, 28, 43, .22);
}

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

@keyframes ringPulse {
    0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.98); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.02); }
}

.radial-rays {
    position: absolute;
    width: 74%;
    height: 74%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(201, 162, 39, .22) 0deg 1deg,
        transparent 1deg 30deg
    );
    -webkit-mask-image: radial-gradient(circle, transparent 0 48%, black 49% 52%, transparent 53%);
    mask-image: radial-gradient(circle, transparent 0 48%, black 49% 52%, transparent 53%);
    animation: rayRotation 60s linear infinite;
    pointer-events: none;
}

@keyframes rayRotation {
    from { transform: rotate(0); }
    to   { transform: rotate(-360deg); }
}

.center-light {
    position: absolute;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, .95),
        rgba(231, 207, 114, .42) 30%,
        rgba(201, 162, 39, .12) 55%,
        transparent 72%
    );
    filter: blur(14px);
    animation: centerGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes centerGlow {
    0%, 100% { transform: scale(.94); opacity: .65; }
    50%      { transform: scale(1.07); opacity: 1; }
}


/* ---------- Center emblem ---------- */

.center-emblem {
    position: absolute;
    width: 31%;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--kinha-cream);
    border: 5px solid var(--kinha-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 5px rgba(255, 248, 231, .9),
        0 0 0 7px rgba(201, 162, 39, .3),
        0 15px 45px rgba(66, 18, 29, .3),
        0 0 45px rgba(201, 162, 39, .35);
    z-index: 20;
}

.kinha-hindi {
    font-family: 'Noto Serif Devanagari', serif;
    font-weight: 700;
    color: var(--kinha-maroon);
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1;
}

.kinha-english {
    margin-top: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    color: var(--kinha-muted);
}

.emblem-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 207, 114, .4), transparent 65%);
    filter: blur(15px);
    z-index: -2;
    animation: emblemGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes emblemGlow {
    0%, 100% { transform: scale(.9);  opacity: .5; }
    50%      { transform: scale(1.1); opacity: 1; }
}

.emblem-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.emblem-ring-outer {
    width: 130%;
    height: 130%;
    border: 1px dashed rgba(201, 162, 39, .55);
    animation: emblemSpin 30s linear infinite;
}

.emblem-ring-inner {
    width: 115%;
    height: 115%;
    border: 1px solid rgba(100, 28, 43, .18);
}

/* the emblem rings are not offset with translate(), so they get their own spin */
@keyframes emblemSpin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

.emblem-star {
    position: absolute;
    color: var(--kinha-gold);
    z-index: 30;
    font-size: 12px;
}

.star-top    { top: -18px; }
.star-bottom { bottom: -18px; }


/* ---------- Orbit navigation ---------- */

.mandala-nav {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: orbitRotation 45s linear infinite;
    z-index: 10;
}

@keyframes orbitRotation {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.mandala-item {
    position: absolute;
    width: 20%;
    aspect-ratio: 1;
    margin: -10%;                 /* centres each item on its left/top point */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #fffdf7, #f7ead2);
    border: 2px solid var(--kinha-gold);
    color: var(--kinha-dark);
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow:
        0 10px 25px rgba(66, 18, 29, .16),
        inset 0 0 0 2px rgba(255, 255, 255, .65);
    animation: counterRotation 45s linear infinite;
    transition:
        scale .4s cubic-bezier(.2, .8, .2, 1),
        background .35s ease,
        color .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
    z-index: 10;
}

@keyframes counterRotation {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

.item-icon {
    font-size: 16px;
    color: var(--kinha-gold);
    line-height: 1;
    transition: transform .3s ease;
}

.item-text {
    font-size: clamp(9px, 1.1vw, 13px);
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* centre = 50% / 50%, orbit radius = 38%, 36 degree steps, starting at the top */
.item-1  { left: 50%;    top: 12%;    }
.item-2  { left: 72.34%; top: 19.26%; }
.item-3  { left: 86.14%; top: 38.26%; }
.item-4  { left: 86.14%; top: 61.74%; }
.item-5  { left: 72.34%; top: 80.74%; }
.item-6  { left: 50%;    top: 88%;    }
.item-7  { left: 27.66%; top: 80.74%; }
.item-8  { left: 13.86%; top: 61.74%; }
.item-9  { left: 13.86%; top: 38.26%; }
.item-10 { left: 27.66%; top: 19.26%; }

/* hover uses the separate "scale" property so it works
   while the counter-rotation animation owns "transform" */
.mandala-item:hover {
    scale: 1.22;
    background: linear-gradient(145deg, var(--kinha-maroon), var(--kinha-dark));
    border-color: var(--kinha-gold-light);
    color: var(--kinha-cream);
    box-shadow:
        0 15px 35px rgba(66, 18, 29, .4),
        0 0 30px rgba(201, 162, 39, .45);
    z-index: 15;
}

.mandala-item:hover .item-icon {
    color: var(--kinha-gold-light);
    transform: scale(1.25) rotate(10deg);
}

.mandala-wrapper:hover .mandala-nav,
.mandala-wrapper:hover .mandala-item {
    animation-play-state: paused;
}


/* =========================================================
   HERO CAPTION + SCROLL INDICATOR
========================================================= */

.hero-caption {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--kinha-maroon);
    z-index: 20;
}

.hero-caption p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.caption-line {
    width: 45px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kinha-gold));
}

.caption-line:last-child {
    background: linear-gradient(90deg, var(--kinha-gold), transparent);
}

.scroll-indicator {
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--kinha-maroon);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--kinha-gold);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(.4); transform-origin: top; }
    50%      { transform: scaleY(1);  transform-origin: top; }
}


/* =========================================================
   TABLET  (max 1100px)
========================================================= */

@media (max-width: 1100px) {
    .hero-layout {
        width: 88%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 25px;
    }

    .hero-intro { gap: 20px; }
    .intro-image { flex-basis: 125px; }
    .mandala-wrapper { width: min(420px, 44vw); }
}


/* =========================================================
   MOBILE  (max 760px)  - stacked layout, page scrolls
========================================================= */

@media (max-width: 760px) {
    .kinha-hero {
        height: auto;
        min-height: 0;
        align-items: flex-start;      /* stops centring from pushing content above the screen */
        padding: 50px 0 110px;
    }

    .hero-layout {
        width: 90%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .hero-intro {
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .intro-image {
        flex: 0 0 auto;
        width: 110px;
    }

    .intro-content { max-width: 500px; }

    .gold-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .mandala-wrapper {
        width: min(100%, 420px);
        justify-self: auto;
    }

    .hero-caption { bottom: 25px; }
    .scroll-indicator { display: none; }
}


/* =========================================================
   SMALL PHONES  (max 480px)
========================================================= */

@media (max-width: 480px) {
    .kinha-hero { padding-top: 40px; }

    .intro-content h1 { font-size: 36px; }

    .mandala-wrapper { width: 100%; }

    .mandala-item {
        padding: 2px;
        gap: 1px;
        border-width: 1px;
    }

    .item-icon { font-size: 12px; }

    .item-text {
        font-size: 7.5px;
        letter-spacing: 0;
        line-height: 1.15;
    }

    .center-emblem { border-width: 3px; }
    .kinha-hindi { font-size: 20px; }
    .kinha-english { font-size: 6px; letter-spacing: 2px; }

    .hero-caption {
        width: 92%;
        justify-content: center;
        gap: 8px;
    }

    .hero-caption p {
        font-size: 10px;
        letter-spacing: 1.5px;
        white-space: normal;
        text-align: center;
    }

    .caption-line {
        width: 20px;
        flex-shrink: 0;
    }
}


/* =========================================================
   TOUCH SCREENS - don't freeze the orbit after a tap
========================================================= */

@media (hover: none) {
    .mandala-wrapper:hover .mandala-nav,
    .mandala-wrapper:hover .mandala-item {
        animation-play-state: running;
    }

    .mandala-item:hover { scale: 1; }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}