/* ═══════════════════════════════════════════════════════════════
   Digital Ayurveda — Sleek, Refined & Deep Immersive Hero System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Curated Color Palette & Tokens ─────────────────────────── */
:root {
    --bg-dark:          #040612;
    --bg-darker:        #020308;
    --bg-card:          rgba(12, 17, 38, 0.55);
    --bg-card-hover:    rgba(18, 26, 58, 0.75);
    
    --accent-emerald:   #00f5d4;
    --accent-teal:      #00bbf9;
    --accent-violet:    #7b2cbf;
    --accent-glow:      rgba(0, 245, 212, 0.25);
    
    --text-primary:     #f8fafc;
    --text-secondary:   #b8a7ea;
    --text-muted:       rgba(248, 250, 252, 0.45);
    
    --glass-border:     rgba(184, 167, 234, 0.12);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --shadow-soft:      0 8px 30px rgba(0, 0, 0, 0.35);
    
    --font-heading:     'Playfair Display', serif;
    --font-body:        'Inter', sans-serif;
    
    --ease-smooth:      cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast:  all 0.2s var(--ease-smooth);
    --transition-norm:  all 0.35s var(--ease-smooth);
    
    --radius-sm:        12px;
    --radius-md:        20px;
    --radius-lg:        28px;
    --radius-full:      9999px;
}

/* ─── Reset & Base Setup ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ─── Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(184, 167, 234, 0.3);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #ffffff 50%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-norm);
    position: relative;
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 245, 212, 0.3);
}

/* ─── Header & Navigation ────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 6%;
    z-index: 1000;
    transition: var(--transition-norm);
}

header[data-header-state="scrolled"] {
    padding: 0.85rem 6%;
    background: rgba(4, 6, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    transition: var(--transition-fast);
}

.nav-brand:hover .nav-logo-icon {
    border-color: var(--accent-emerald);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    background: rgba(12, 17, 38, 0.4);
    padding: 0.5rem 1.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-emerald);
}

.btn-ghost, .btn-solid {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border-light);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.btn-solid {
    background: var(--accent-emerald);
    color: var(--bg-dark);
    font-weight: 700;
}

.btn-solid:hover {
    background: #25fbdc;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
    transform: translateY(-1px);
}

/* ─── LEVEL-UP IMMERSIVE HERO SECTION ─────────────────────────── */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 6% 3rem;
    overflow: hidden;
    perspective: 1200px;
}

/* Dynamic Aurora Glow Backdrop */
.hero-aurora-glow {
    position: absolute;
    top: -20%;
    right: 15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, rgba(123, 44, 191, 0.1) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: auroraPulse 10s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.15) translate(-30px, 40px); opacity: 1; }
}

/* Floating Particle Layer */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    opacity: 0.4;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-120px) scale(1.2); opacity: 0; }
}

.hero-backdrop-text {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(8rem, 18vw, 22rem);
    font-weight: 800;
    color: rgba(184, 167, 234, 0.025);
    user-select: none;
    pointer-events: none;
    line-height: 0.8;
    text-align: center;
    z-index: 0;
    transition: transform 0.1s linear;
}

.hero-grid {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.1s ease-out;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.25);
    color: var(--accent-emerald);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* 3D Depth Visual Container */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card-layer-3d {
    position: relative;
    transform-style: preserve-3d;
}

.orb-container {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(20px);
}

.orb-core {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--accent-emerald), var(--accent-violet) 70%, var(--bg-darker));
    box-shadow: 0 0 60px rgba(0, 245, 212, 0.35);
    position: relative;
}

.orb-light-spot {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(10px);
}

.orb-ring-1 {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 245, 212, 0.3);
    animation: ringRotate 24s linear infinite;
}

.orb-ring-2 {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px dashed rgba(123, 44, 191, 0.25);
    animation: ringRotate 30s linear infinite reverse;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

/* Floating Depth Shloka Card */
.shloka-card {
    position: absolute;
    bottom: -15px;
    left: -20px;
    padding: 1.4rem 1.6rem;
    max-width: 310px;
    border-radius: var(--radius-md);
    transform: translateZ(40px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.shloka-card blockquote {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-emerald);
    font-style: italic;
    line-height: 1.5;
}

.shloka-card span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ─── Section Layout ─────────────────────────────────────────── */
.section {
    padding: 5.5rem 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.interactive-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.breathing-box {
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.breath-orb-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.breath-orb-inner {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-emerald), var(--accent-violet));
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.25);
    transition: transform 1s var(--ease-smooth);
}

.breath-orb-wrap.expanding .breath-orb-inner {
    transform: scale(1.4);
}

.breath-orb-wrap.holding .breath-orb-inner {
    transform: scale(1.4);
}

.breath-orb-wrap.contracting .breath-orb-inner {
    transform: scale(0.85);
}

.breath-phase-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-emerald);
    min-height: 1.6rem;
}

.breath-timer {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.wellness-score-card {
    padding: 2.8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.score-ring-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--accent-emerald);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.2s var(--ease-smooth);
}

.score-number {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-number small {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: -0.4rem;
}

.journal-form {
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(4, 7, 20, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-emerald);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

input[type=range].form-control {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(184, 167, 234, 0.15);
    border-radius: var(--radius-full);
    padding: 0;
}

input[type=range].form-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-emerald);
    cursor: pointer;
}

#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-md);
    background: rgba(13, 19, 42, 0.95);
    border: 1px solid var(--accent-emerald);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    z-index: 10000;
    transform: translateY(160%);
    transition: transform 0.35s var(--ease-smooth);
    font-size: 0.9rem;
}

#toast.visible {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-grid, .dashboard-grid, .interactive-zone {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .journal-form, .breathing-box, .wellness-score-card {
        padding: 2rem;
    }
}