/*
 * Shifa — Sacred Vedic & Devotional Design System
 * Original Custom Stylesheet
 */

:root {
    --color-canvas: #fffbf3;
    --color-cream: #fff6e6;
    --color-mist: #fff6e6;
    --color-maroon: #5b0e0e;
    --color-night-800: #5b0e0e;
    --color-night-900: #420808;
    --color-saffron: #e0782a;
    --color-vermilion: #c8341a;
    --color-gold: #ffd27d;
    --color-brown: #4a2618;
    --color-ink: #3f1f14;
    --color-muted: #8a6552;
    --color-line: #f1dfc4;
    --color-brand-50: #fff4e6;
    --color-brand-100: #fde3c8;
    --color-brand-200: #f6c08e;
    --color-brand-400: #e0782a;
    --color-brand-500: #c8341a;
    --color-brand-600: #a8290f;
}

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

body {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: var(--color-canvas);
    color: var(--color-ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

[x-cloak] {
    display: none !important;
}

/* Layout Container */
.container-x {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}
@media (min-width: 1024px) {
    .container-x {
        padding-inline: 2rem;
    }
}

.section-y {
    padding-block: 3rem;
}
@media (min-width: 1024px) {
    .section-y {
        padding-block: 4.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 0.75rem;
    padding: 0.8125rem 1.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn:active {
    transform: translateY(1px);
}
.btn-sm {
    border-radius: 0.625rem;
    padding: 0.5625rem 0.9375rem;
    font-size: 0.875rem;
}
.btn-sacred {
    background-image: linear-gradient(135deg, var(--color-saffron), var(--color-vermilion));
    color: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(200, 52, 26, 0.7);
}
.btn-sacred:hover {
    filter: brightness(1.06);
}
.btn-outline-sacred {
    color: var(--color-vermilion);
    background-color: #ffffff;
    border: 1.5px solid rgba(200, 52, 26, 0.45);
}
.btn-outline-sacred:hover {
    background-color: var(--color-brand-50);
}

/* Cards & Surfaces */
.dev-card {
    border: 1px solid var(--color-line);
    background-color: #ffffff;
    border-radius: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(91, 14, 14, 0.04), 0 18px 40px -30px rgba(91, 14, 14, 0.35);
}
.dev-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 2px rgba(91, 14, 14, 0.06), 0 26px 48px -28px rgba(91, 14, 14, 0.45);
}

.mandala-bg {
    background-color: var(--color-cream);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(224, 120, 42, 0.10) 0, transparent 38%),
        radial-gradient(circle at 88% 82%, rgba(200, 52, 26, 0.08) 0, transparent 40%);
}

.maroon-surface {
    background-color: var(--color-maroon);
    color: #ffffff;
    background-image:
        radial-gradient(circle at 85% 0%, rgba(255, 210, 125, 0.18) 0, transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(200, 52, 26, 0.45) 0, transparent 50%);
}

/* Badges, Chips & Inputs */
.chip-sacred {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    letter-spacing: 0.02em;
    background-color: var(--color-brand-50);
    color: var(--color-vermilion);
    border: 1px solid var(--color-brand-100);
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.input-sacred {
    width: 100%;
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    background-color: #ffffff;
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-sacred::placeholder {
    color: rgba(138, 101, 82, 0.75);
}
.input-sacred:focus {
    border-color: var(--color-saffron);
    box-shadow: 0 0 0 3px var(--color-brand-100);
    outline: none;
}

/* Section Ornament */
.ornament {
    color: var(--color-saffron);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ornament::before,
.ornament::after {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

/* Horizontal Scroll Snap Rail */
.rail {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 0.5rem;
    scroll-padding-inline: 1.25rem;
}
.rail::-webkit-scrollbar {
    display: none;
}
.rail > * {
    scroll-snap-align: start;
}
@media (min-width: 1024px) {
    .rail {
        gap: 1.25rem;
        margin-inline: 0;
        padding-inline: 0;
        scroll-padding-inline: 0;
    }
}

/* Header & Hero Overlay */
.site-header {
    background-color: #ffffff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px -18px rgba(91, 14, 14, 0.45);
}
.site-header .hdr-link {
    color: var(--color-ink);
    transition: color 0.15s ease;
}
.site-header .hdr-link:hover,
.site-header .hdr-link.is-active {
    color: var(--color-vermilion);
}
.site-header .hdr-link.is-active::after {
    content: "";
    background-color: currentColor;
    border-radius: 999px;
    height: 2px;
    position: absolute;
    bottom: -0.125rem;
    left: 0.75rem;
    right: 0.75rem;
}
.site-header .hdr-btn {
    border-color: var(--color-line);
    background-color: var(--color-cream);
    color: var(--color-maroon);
}
.site-header[data-overlay]:not(.is-solid) {
    box-shadow: none;
    background-color: transparent;
}
.site-header[data-overlay]:not(.is-solid) .hdr-link {
    color: rgba(255, 255, 255, 0.92);
}
.site-header[data-overlay]:not(.is-solid) .hdr-link:hover,
.site-header[data-overlay]:not(.is-solid) .hdr-link.is-active {
    color: var(--color-gold);
}
.site-header[data-overlay]:not(.is-solid) .hdr-btn {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-under-header {
    margin-top: -68px;
    padding-top: 68px;
}
@media (min-width: 1024px) {
    .hero-under-header {
        margin-top: -80px;
        padding-top: 80px;
    }
}

.text-gold-gradient {
    color: transparent;
    background-image: linear-gradient(#fff7e0, #ffd27d 55%, #f0a64a);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Animations */
@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.slow-rotate {
    transform-origin: 50% 50%;
    will-change: transform;
    animation: 160s linear infinite slow-rotate;
}

@keyframes petal-fall {
    0% { opacity: 0; transform: translateY(-10%) rotate(0deg); }
    10% { opacity: 0.9; }
    100% { opacity: 0; transform: translate(40px, 520px) rotate(260deg); }
}
.petal {
    pointer-events: none;
    background: linear-gradient(135deg, #f7a24a, #c8341a);
    border-radius: 80% 0;
    width: 14px;
    height: 10px;
    animation: 11s linear infinite petal-fall;
    position: absolute;
    top: 0;
}

@keyframes stripe-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.stripe__track {
    width: max-content;
    display: flex;
    animation: 40s linear infinite stripe-x;
}
.stripe:hover .stripe__track {
    animation-play-state: paused;
}

@keyframes tmarquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes tmarquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.tmarquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
}
.tmarquee__row {
    will-change: transform;
    width: max-content;
    display: flex;
}
.tmarquee__row--left {
    animation: 72s linear infinite tmarquee-left;
}
.tmarquee__row--right {
    animation: 92s linear infinite tmarquee-right;
}
.tmarquee:hover .tmarquee__row {
    animation-play-state: paused;
}

