
/* ==========================================
   GLOBAL
========================================== */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}


/* ==========================================
   NAVBAR
========================================== */

.navbar {
    height: 64px;
    background: #fffdfa;
    border-bottom: 1px solid #eee8df;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-flower {
    color: #dc941b;
    font-size: 30px;
    animation: logoFloat 4s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    padding: 10px 13px;
    font-size: 13px;
    border-radius: 30px;
    transition: background .3s, color .3s;
}

.nav-menu a:hover,
.nav-menu .active {
    background: #f2e5d0;
    color: #97610e;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-icon {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f5f1eb;
    font-size: 20px;
    transition: .3s;
}

.nav-icon:hover {
    background: #f2e4c9;
    transform: translateY(-3px);
}


/* ==========================================
   HERO SECTION
   FIRST UPLOADED IMAGE AS BACKGROUND
========================================== */

.hero {
    min-height: 540px;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background-image:
        url("/tpl1/images/hero/rashi-hero-bg.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(255, 251, 241, .12) 0%,
        rgba(255, 249, 235, .03) 36%,
        rgba(10, 19, 49, .03) 57%,
        rgba(9, 15, 39, .18) 100%
    );
}

.hero-container {
    min-height: 540px;
    display: grid;
    grid-template-columns: 43% 57%;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 520px;
    padding: 35px 0;
    animation: heroEntrance 1s cubic-bezier(.2,.8,.2,1) both;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #576174;
    margin-bottom: 35px;
}

.breadcrumb span {
    color: #a87520;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb strong {
    color: #18263c;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 30px;
    background: #f1e4d0;
    color: #80530f;
    font-size: 12px;
    margin-bottom: 12px;
    animation: badgeAppear 1s .2s both;
}

.hero-badge span {
    color: #c58a22;
}

.hero h1 {
    font: 800 clamp(60px, 7vw, 86px)/1.05 "Playfair Display", serif;
    letter-spacing: -2px;
    color: #14233a;
    margin-bottom: 13px;
}

.hero h2 {
    max-width: 510px;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 13px;
    color: #17263d;
}

.hero-content > p {
    max-width: 480px;
    font-size: 14px;
    line-height: 1.75;
    color: #586477;
    margin-bottom: 23px;
}


/* ==========================================
   PREMIUM BUTTON
========================================== */

.primary-btn,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    position: relative;
    overflow: hidden;

    padding: 14px 22px;
    border-radius: 7px;

    color: #fff;
    background: linear-gradient(
        110deg,
        #a76808,
        #d09625,
        #b47710
    );

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 7px 20px #99651530;

    transition:
        transform .35s,
        box-shadow .35s;
}

.primary-btn::before,
.cta-button::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 20%,
        #ffffff75 50%,
        transparent 80%
    );

    transform: translateX(-120%);
    animation: buttonShine 5s ease-in-out infinite;
}

.primary-btn:hover,
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px #98651850;
}

.primary-btn span,
.cta-button span {
    font-size: 21px;
    transition: transform .35s;
}

.primary-btn:hover span,
.cta-button:hover span {
    transform: translateX(6px);
}


/* ==========================================
   SECOND IMAGE - 360 DEGREE ROTATION
========================================== */

.hero-wheel {
    width: 100%;
    height: 540px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1200px;
    isolation: isolate;
}

.rotating-wheel {
    width: min(100%, 600px);
    aspect-ratio: 1 / 1;

    object-fit: contain;
    display: block;

    position: relative;
    z-index: 2;

    /*
      Black background blends into cosmic background.
      If your wheel PNG has transparency, this still works.
    */

    mix-blend-mode: screen;

    filter:
        drop-shadow(0 0 15px #f7bf4d50)
        drop-shadow(0 0 35px #e9a52a35);

    transform-origin: center center;

    animation:
        wheelRotate 90s linear infinite,
        wheelFloat 7s ease-in-out infinite;
}

/* Golden aura behind wheel */

.wheel-glow {
    position: absolute;

    width: 65%;
    aspect-ratio: 1;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        #f5c25a30 0%,
        #eeb64a17 45%,
        transparent 72%
    );

    filter: blur(25px);

    animation: auraPulse 4s ease-in-out infinite;
}

/* Particles */

.wheel-particles {
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(2px 2px at 20% 30%, #fff5c4 50%, transparent 100%),
        radial-gradient(2px 2px at 80% 20%, #ffe6a0 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 75%, white 50%, transparent 100%),
        radial-gradient(2px 2px at 30% 80%, #f7c96a 50%, transparent 100%);

    background-size: 170px 170px;

    animation: particleTwinkle 4s ease-in-out infinite alternate;

    pointer-events: none;
}


/* ==========================================
   HERO STAR ANIMATION
========================================== */

.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        radial-gradient(2px 2px at 20% 20%, #ffffff 50%, transparent 100%),
        radial-gradient(2px 2px at 75% 35%, #ffe6a3 50%, transparent 100%),
        radial-gradient(1px 1px at 45% 75%, #ffffff 50%, transparent 100%),
        radial-gradient(2px 2px at 85% 85%, #f7c35e 50%, transparent 100%);

    background-size: 190px 190px;

    animation: starDrift 35s linear infinite;
}

.stars-two {
    opacity: .45;
    background-size: 130px 130px;
    animation-duration: 55s;
    animation-direction: reverse;
}

.floating-planet {
    position: absolute;
    z-index: 1;

    border-radius: 50%;
    pointer-events: none;

    background:
        radial-gradient(circle at 30% 25%, #ffffffaa, transparent 28%),
        radial-gradient(circle at 35% 30%, #7598db, #283d76 65%, #101832);

    box-shadow:
        inset -15px -15px 25px #0008,
        0 0 25px #c7d7ff30;

    animation: planetFloat 8s ease-in-out infinite;
}

.planet-one {
    width: 55px;
    height: 55px;
    left: 52%;
    top: 12%;
}

.planet-two {
    width: 35px;
    height: 35px;
    right: 7%;
    top: 15%;
    animation-delay: -3s;
}

.planet-three {
    width: 75px;
    height: 75px;
    right: 3%;
    bottom: 8%;
    animation-delay: -5s;
}

.hero-bottom-glow {
    position: absolute;
    bottom: -50px;
    left: 30%;
    width: 40%;
    height: 100px;

    background: #f3bd4d25;
    filter: blur(55px);
    pointer-events: none;
}


/* ==========================================
   SECTION HEADINGS
========================================== */

.rashi-section {
    padding-top: 30px;
    padding-bottom: 25px;
}

.section-heading {
    text-align: center;
    margin-bottom: 25px;
}

.section-kicker {
    display: block;
    color: #b37b1d;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-heading h2 {
    font: 700 31px "Playfair Display", serif;
    color: #14243a;
}

.heading-divider {
    width: 150px;
    height: 1px;
    background: #d9b56c;
    margin: 13px auto;
    position: relative;
}

.heading-divider span {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: #c18b2d;
    background: var(--cream);
    padding: 0 8px;
    font-size: 15px;

    animation: starPulse 2s ease-in-out infinite;
}

.section-heading > p {
    max-width: 720px;
    margin: auto;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================
   RASHI GRID
========================================== */

.rashi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.rashi-card {
    --accent: #ba771c;
    --tint: #f7f0e9;

    position: relative;
    min-height: 205px;

    padding: 16px 8px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border: 1px solid #eee7df;
    border-radius: 12px;

    background: var(--tint);

    overflow: hidden;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s,
        border-color .3s;

    animation: cardEntrance .8s both;
}

.rashi-card::before {
    content: "";
    position: absolute;

    width: 150px;
    height: 150px;

    left: 50%;
    top: -100px;

    transform: translateX(-50%);

    background: var(--accent);
    opacity: .08;
    filter: blur(35px);

    transition: .5s;
}

.rashi-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 18px 35px #1b2a421a;
    border-color: var(--accent);
}

.rashi-card:hover::before {
    top: -30px;
    opacity: .2;
}

.sign-circle {
    width: 74px;
    height: 74px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    color: #fff2d3;
    background: var(--accent);

    border: 3px double #ffffffa8;

    box-shadow: 0 5px 15px #00000015;

    margin-bottom: 8px;

    transition:
        transform .5s cubic-bezier(.2,.8,.2,1),
        box-shadow .5s;

    position: relative;
    z-index: 1;
}

.sign-circle span {
    font: 43px Georgia, serif;
}

.rashi-card:hover .sign-circle {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 0 25px color-mix(in srgb, var(--accent), transparent 55%);
}

.rashi-card h3 {
    font: 600 18px "Playfair Display", serif;
    margin-bottom: 2px;
}

.hindi {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.rashi-card p {
    font-size: 12px;
    color: #465164;
}

.card-arrow {
    margin-top: auto;

    width: 31px;
    height: 31px;

    border: 1px solid #e8c990;
    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #fffaf2;
    color: #a36b10;

    transition: .35s;
}

.rashi-card:hover .card-arrow {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}


/* CARD COLORS */

.aries { --accent:#ca392b; --tint:#fbf0ed; }
.taurus { --accent:#177a58; --tint:#f1f4ed; }
.gemini { --accent:#e7a000; --tint:#fbf5e8; }
.cancer { --accent:#1879c5; --tint:#edf5f8; }
.leo { --accent:#e47b00; --tint:#fbf2e8; }
.virgo { --accent:#6139a4; --tint:#f5f1f8; }
.libra { --accent:#d74e81; --tint:#f9f0f2; }
.scorpio { --accent:#b81932; --tint:#fbefed; }
.sagittarius { --accent:#51358b; --tint:#f3eff8; }
.capricorn { --accent:#a56b15; --tint:#faf2e8; }
.aquarius { --accent:#087f9c; --tint:#edf6f6; }
.pisces { --accent:#1767b4; --tint:#edf5f8; }


/* ==========================================
   ABOUT SECTION
========================================== */

.about-section {
    display: grid;
    grid-template-columns: 42% 58%;

    min-height: 280px;

    overflow: hidden;

    background: #fffdfa;
    border: 1px solid #eee8df;
    border-radius: 13px;

    box-shadow: 0 7px 25px #19273d08;

    margin-top: 5px;
    margin-bottom: 25px;
}

.about-image-wrap {
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;

    transition: transform 1s cubic-bezier(.2,.8,.2,1);
}

.about-image-wrap:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: auto 0 0;

    padding: 22px 18px;

    color: white;
    font-size: 13px;
    font-weight: 600;

    background: linear-gradient(transparent, #090e20cc);
}

.image-overlay span {
    color: #ffd77a;
    margin-right: 8px;
}

.about-content {
    padding: 30px;
    align-self: center;
}

.about-content h2 {
    font: 700 30px "Playfair Display", serif;
    margin-bottom: 12px;
}

.gold-divider {
    height: 1px;
    width: 165px;
    background: #d2a14e;
    margin-bottom: 15px;
}

.about-content > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.benefit-item {
    transition: transform .35s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    display: block;
    color: #bd7c13;
    font-size: 29px;
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: 12px;
    line-height: 1.45;
}


/* ==========================================
   WHY RASHI
========================================== */

.why-section {
    padding-bottom: 25px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.why-card {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 90px;
    padding: 15px;

    background: #fffdfa;
    border: 1px solid #eee8df;
    border-radius: 11px;

    transition:
        transform .35s,
        box-shadow .35s,
        border-color .35s;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px #17253d15;
    border-color: #e2c58e;
}

.why-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #f8e9cf;
    color: #b87911;

    font-size: 24px;

    transition: transform .45s;
}

.why-card:hover .why-icon {
    transform: rotate(12deg) scale(1.1);
}

.why-card h3 {
    font-size: 13px;
    margin-bottom: 5px;
}

.why-card p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}


/* ==========================================
   CTA SECTION
========================================== */

.cta-section {
    min-height: 205px;

    display: grid;
    grid-template-columns: 42% 58%;

    align-items: center;

    position: relative;
    overflow: hidden;

    background: #101a35;
    color: white;

    border-radius: 13px;
    margin-bottom: 25px;

    isolation: isolate;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(90deg, #101a3530, #101a35f0),
        url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1600&q=85")
        center/cover;

    opacity: .9;
}

.cta-stars {
    position: absolute;
    inset: 0;
    z-index: -1;

    background-image:
        radial-gradient(2px 2px at 15% 25%, #fff 50%, transparent),
        radial-gradient(2px 2px at 65% 20%, #ffe09a 50%, transparent),
        radial-gradient(1px 1px at 85% 70%, #fff 50%, transparent);

    background-size: 150px 150px;

    animation: starDrift 40s linear infinite;
}

.cta-image {
    height: 205px;
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .7;

    transition: transform 1s;
}

.cta-section:hover .cta-image img {
    transform: scale(1.08);
}

.cta-content {
    text-align: center;
    padding: 25px;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font: 700 29px "Playfair Display", serif;
    margin-bottom: 9px;
}

.cta-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 17px;
}

.cta-button {
    background: linear-gradient(110deg, #f2b942, #ffda79);
    color: #3c2a0b;
}


/* ==========================================
   FOOTER
========================================== */

.footer {
    text-align: center;
    padding: 20px;
    color: #87909d;
    font-size: 12px;
}

.footer-logo {
    display: block;
    color: #a8751d;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 7px;
}


/* ==========================================
   KEYFRAME ANIMATIONS
========================================== */

/* Actual full 360 degree rotation */

@keyframes wheelRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Gentle floating */

@keyframes wheelFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -9px;
    }
}

/* Golden glow */

@keyframes auraPulse {
    0%, 100% {
        opacity: .55;
        transform: scale(.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Star background movement */

@keyframes starDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 190px 190px;
    }
}

/* Planet floating */

@keyframes planetFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-16px) rotate(8deg);
    }
}

/* Hero entrance */

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Card entrance */

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button shimmer */

@keyframes buttonShine {
    0%, 70% {
        transform: translateX(-120%);
    }

    90%, 100% {
        transform: translateX(120%);
    }
}

/* Small golden star */

@keyframes starPulse {
    0%, 100% {
        opacity: .6;
        transform: translate(-50%, -50%) scale(.9);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.25);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(12deg);
    }
}

@keyframes particleTwinkle {
    from {
        opacity: .25;
    }

    to {
        opacity: .9;
    }
}


/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 1000px) {

    .nav-menu a {
        padding: 9px 7px;
        font-size: 12px;
    }

    .hero-container {
        grid-template-columns: 44% 56%;
    }

    .hero-wheel {
        height: 460px;
    }

    .rotating-wheel {
        width: 100%;
    }

    .rashi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 28px);
    }

    .navbar {
        height: auto;
    }

    .nav-inner {
        min-height: 60px;
        flex-wrap: wrap;
        padding-top: 8px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 8px 0;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu a {
        white-space: nowrap;
    }

    /* Hero */

    .hero {
        background-position: 70% center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 23px 0 0;
        max-width: 100%;
    }

    .breadcrumb {
        margin-bottom: 22px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero h2 {
        font-size: 17px;
    }

    .hero-content > p {
        font-size: 13px;
    }

    .hero-wheel {
        /*height: auto;*/
        min-height: 320px;
        margin-top: 5px;
    }

    .rotating-wheel {
        width: min(90%, 340px);
    }

    .planet-one {
        left: 8%;
        top: 15%;
    }

    .planet-two {
        right: 5%;
        top: 10%;
    }

    /* Cards */

    .section-heading h2 {
        font-size: 25px;
    }

    .rashi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .rashi-card {
        min-height: 190px;
    }

    /* About */

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-image-wrap,
    .about-image-wrap img {
        height: 200px;
        min-height: 200px;
    }

    .about-content {
        padding: 22px 17px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .benefit-grid {
        gap: 5px;
    }

    .benefit-item p {
        font-size: 11px;
    }

    /* Why */

    .why-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */

    .cta-section {
        grid-template-columns: 1fr;
    }

    .cta-image {
        height: 145px;
    }

    .cta-content {
        padding: 22px 14px 28px;
    }

    .cta-content h2 {
        font-size: 25px;
    }
}


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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

}
