@charset "UTF-8";

:root {
    --indigo: #1E293B;
    --saffron: #D97706;
    --cream: #FDFBF7;
    --forest: #064E3B;
}

html,
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--cream);
    color: var(--indigo);
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Marcellus', serif;
}

.glass {
    background: rgba(245, 241, 232, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 42, 56, 0.05);
}

.panchakosha-container {
    position: relative;
    width: 100%;
    max-width: min(500px, 100vw);
    aspect-ratio: 1;
    margin: 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    perspective: 1000px;
}

.kosha-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.1), inset 0 0 10px rgba(217, 119, 6, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Orbit Lines Layer */
.kosha-layer::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(217, 119, 6, 0.6);
    border-bottom-color: rgba(217, 119, 6, 0.2);
    animation: rotate-orbit var(--orbit-speed, 10s) linear infinite;
    pointer-events: none;
    opacity: 0.8;
}

.kosha-layer::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(217, 119, 6, 0.3);
    animation: rotate-orbit var(--orbit-speed-rev, 15s) linear infinite reverse;
    pointer-events: none;
    opacity: 0.5;
}

/* Layer Specifics (Innermost to Outermost) */
/* 1: Anandamaya (Core) */
.kosha-layer:nth-child(1) {
    z-index: 10;
    background: radial-gradient(circle, var(--saffron) 30%, #EAB308 100%) !important;
    border: none;
    box-shadow: 
        0 0 40px rgba(217, 119, 6, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.6);
    animation: core-pulse 3s infinite ease-in-out;
}
.kosha-layer:nth-child(1)::before,
.kosha-layer:nth-child(1)::after { display: none; }

/* 2: Vijnanamaya */
.kosha-layer:nth-child(2) { 
    z-index: 9; 
    --orbit-speed: 25s; 
    --orbit-speed-rev: 30s;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(217, 119, 6, 0.05)) !important;
    border: 1px solid rgba(217, 119, 6, 0.4);
}

/* 3: Manomaya */
.kosha-layer:nth-child(3) { 
    z-index: 8; 
    --orbit-speed: 35s; 
    --orbit-speed-rev: 40s;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(217, 119, 6, 0.02)) !important;
}

/* 4: Pranamaya */
.kosha-layer:nth-child(4) { 
    z-index: 7; 
    --orbit-speed: 45s; 
    --orbit-speed-rev: 50s;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), transparent) !important;
}

/* 5: Annamaya */
.kosha-layer:nth-child(5) { 
    z-index: 6; 
    --orbit-speed: 60s; 
    --orbit-speed-rev: 70s;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.04), transparent) !important;
}

/* Staggered Floating Animation for all */
.kosha-layer:not(:nth-child(1)) {
    animation: floating-layer 8s infinite ease-in-out;
    animation-delay: calc(var(--layer-index, 0) * -1.5s);
}

.kosha-layer:nth-child(2) { --layer-index: 1; }
.kosha-layer:nth-child(3) { --layer-index: 2; }
.kosha-layer:nth-child(4) { --layer-index: 3; }
.kosha-layer:nth-child(5) { --layer-index: 4; }

/* Interactive Hover States */
.panchakosha-container:hover .kosha-layer:not(:hover) {
    opacity: 0.4;
    filter: blur(1px) grayscale(0.5);
    transform: translate(-50%, -50%) scale(0.9);
}

.kosha-layer:hover {
    z-index: 25 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    border-color: var(--saffron);
    background: rgba(217, 119, 6, 0.25) !important;
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.3);
    opacity: 1 !important;
    filter: none !important;
}

.kosha-layer:hover::before {
    opacity: 1;
    border-top-color: var(--saffron);
    animation-duration: 4s; /* Speed up on interaction */
}

/* Typography Refinement */
.kosha-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--indigo);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.85;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.kosha-layer:hover .kosha-label {
    opacity: 1;
    color: var(--saffron);
    transform: translateX(-50%) translateY(-12px) scale(1.15);
    text-shadow: 0 0 15px rgba(217, 119, 6, 0.6);
}

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

@keyframes core-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 0 40px rgba(217, 119, 6, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        box-shadow: 0 0 70px rgba(217, 119, 6, 1), inset 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

@keyframes floating-layer {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(30, 42, 56, 0.4), rgba(30, 42, 56, 0.7));
}

.mask-image-bottom {
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.text-saffron {
    color: var(--saffron);
}

.saffron-gradient-text {
    background: linear-gradient(to right, var(--saffron), #EAB308);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Breathing Animation */
.breath-circle {
    transition: all 4s ease-in-out;
}

.breath-inhale {
    transform: scale(1.6);
    background-color: #A7F3D0;
}

.breath-exhale {
    transform: scale(1);
    background-color: #E0F2FE;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--saffron);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Duration Buttons */
.duration-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.duration-btn:hover {
    background-color: white;
    border-color: var(--saffron);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.1);
}

.duration-btn.active {
    background-color: #0F766E;
    border-color: #0F766E;
    color: white;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.duration-btn.active:hover {
    transform: translateY(-2px);
}
