/* Color Variables - Light Mode */
:root {
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-secondary: #f8fafc;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-subtle: rgba(79, 70, 229, 0.2);
    --gradient-wellness: linear-gradient(135deg, #10b981, #34d399);
    --gradient-mindful: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-balance: linear-gradient(135deg, #f59e0b, #fbbf24);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --text-muted: #6b7280;
        --bg-light: #111827;
        --bg-white: #1f2937;
        --bg-secondary: #1a1f2e;
        --border-light: #374151;
        --border-medium: #4b5563;
        --border-subtle: rgba(79, 70, 229, 0.2);
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
        
        /* Typography */
        --font-primary: 'Inter', sans-serif;
        --font-display: 'Playfair Display', serif;
    }
}

/* Manual Dark Mode Override */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --text-muted: #6b7280;
    --bg-light: #111827;
    --bg-white: #1f2937;
    --bg-secondary: #1a1f2e;
    --border-light: #374151;
    --border-medium: #4b5563;
    --border-subtle: rgba(79, 70, 229, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { 
    font-size: 2.5rem; 
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
h3 { 
    font-size: 2rem; 
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Dark mode navigation */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(31, 41, 55, 0.95);
    }
}

[data-theme="dark"] .navbar {
    background: rgba(31, 41, 55, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-logo a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(10, 15, 28, 0.9);
    transform: scale(1.05);
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 3px;
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.dark-mode-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.dark-mode-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .toggle-icon {
    transform: rotate(180deg);
}

[data-theme="dark"] .toggle-icon::before {
    content: '☀️';
}

/* Dark mode toggle icon switching */
.toggle-icon::before {
    content: '🌙';
}

[data-theme="dark"] .toggle-icon::before {
    content: '☀️';
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-wellness);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Wellness Meter */
.wellness-meter {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.meter-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
}

.meter-center span:first-child {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.meter-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.wellness-factors {
    position: relative;
    width: 100%;
    height: 100%;
}

.factor {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.factor:hover,
.factor:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.factor span:first-child {
    font-size: 1.5rem;
}

.factor span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.factor.sleep { top: 10%; left: 10%; }
.factor.focus { top: 10%; right: 10%; }
.factor.mood { bottom: 10%; left: 10%; }
.factor.connection { bottom: 10%; right: 10%; }

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.key-impacts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.impact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.impact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.impact-icon.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.impact-icon.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.impact-icon.neutral {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.impact-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.impact-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mental Health Spectrum */
.mental-health-spectrum {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.spectrum-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.spectrum-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.spectrum-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.spectrum-circle.healthy {
    background: var(--gradient-wellness);
}

.spectrum-circle.moderate {
    background: var(--gradient-balance);
}

.spectrum-circle.problematic {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.spectrum-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.spectrum-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Topic Sections */
.topic-section {
    padding: 80px 0;
    position: relative;
}

.topic-section:nth-child(even) {
    background: var(--bg-light);
}

.topic-header {
    text-align: center;
    margin-bottom: 4rem;
}

.topic-header h2 {
    margin-top: 0;
}

/* Content spacing improvements */
.section-content > h3,
.content-block h3,
.strategy-category h3,
.mindfulness-exercise h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.section-content > h3:first-child,
.content-block h3:first-child,
.strategy-category h3:first-child {
    margin-top: 0;
}

/* Spacing for exercise and strategy items */
.mindfulness-exercise,
.strategy-category,
.content-block {
    margin-bottom: 3rem;
}

.mindfulness-exercise:last-child,
.strategy-category:last-child,
.content-block:last-child {
    margin-bottom: 0;
}

.topic-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.topic-tag.wellness {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.topic-tag.screen-time {
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
}

.topic-tag.mindfulness {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Wellness Framework */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pillar-card h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.pillar-practices {
    margin-top: 1.5rem;
}

.pillar-practices h5 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pillar-practices ul {
    list-style: none;
}

.pillar-practices li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pillar-practices li:last-child {
    border-bottom: none;
}

/* Assessment */
.assessment-container {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.assessment-questions {
    margin: 2rem 0;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.question-item:last-child {
    border-bottom: none;
}

.question-text {
    flex: 1;
    font-weight: 500;
}

.rating-scale {
    display: flex;
    gap: 0.5rem;
}

.rating-scale input[type="radio"] {
    display: none;
}

.rating-scale label {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.rating-scale input[type="radio"]:checked + label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.rating-scale label:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.assessment-results {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-wellness);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.score-number {
    font-size: 2rem;
}

.score-total {
    font-size: 1rem;
    opacity: 0.8;
}

/* Screen Time Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.insight-card h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.research-note {
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    border-left: 4px solid var(--secondary);
}

/* Screen Time Tracker */
.tracker-container {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.activity-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item label {
    font-weight: 500;
    color: var(--text-secondary);
}

.category-item input {
    padding: 0.75rem;
    border: 2px solid var(--border-medium);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.category-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.log-time-btn {
    background: var(--gradient-wellness);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.log-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-visualization {
    margin-top: 2rem;
    text-align: center;
}

.chart-insights {
    margin-top: 1rem;
}

.total-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Healthy Limits */
.limits-guide {
    margin-top: 3rem;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.rec-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.rec-item h5 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.strategies-list {
    margin-top: 2rem;
}

.strategy-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.strategy-item:last-child {
    border-bottom: none;
}

.strategy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.strategy-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.strategy-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mindfulness Exercises */
.mindfulness-principles .principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.principle-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.principle-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.practice-example {
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    border-left: 4px solid #8b5cf6;
}

/* Exercise Tabs */
.exercises-container {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.exercise-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

/* Mindfulness Exercises */
.exercises-container {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

.exercise-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
}

.tab-btn.active,
.tab-btn:hover {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.tab-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.exercise-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem 0;
}

.exercise-panel.active {
    display: block;
    opacity: 1;
}

.exercise-panel h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.exercise-panel p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.exercise-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-subtle);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(139, 92, 246, 0.05);
    transform: translateX(5px);
}

.step-number {
    width: 36px;
    height: 36px;
    background: #8b5cf6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 1rem;
}

.step p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.try-exercise-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
    margin-top: 1.5rem;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.try-exercise-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.try-exercise-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.try-exercise-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Mindfulness Tracker */
.tracker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.check-in-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.check-in-card h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.check-in-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.check-in-card textarea,
.check-in-card input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-medium);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.check-in-card textarea:focus,
.check-in-card input:focus {
    outline: none;
    border-color: var(--primary);
}

.mood-scale {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mood-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    background: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-btn:hover,
.mood-btn.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.reflection-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.question label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.save-intention-btn,
.save-reflection-btn {
    background: var(--gradient-wellness);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.save-intention-btn:hover,
.save-reflection-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Mental Health Strategies */
.strategies-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.strategy-category {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.category-icon {
    font-size: 2rem;
}

.category-header h3 {
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.strategy-item {
    margin-bottom: 2rem;
}

.strategy-item:last-child {
    margin-bottom: 0;
}

.strategy-item h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.125rem;
}

.strategy-techniques {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.technique {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.technique strong {
    color: var(--primary);
}

/* Emergency Resources */
.emergency-resources {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid #ef4444;
}

.emergency-resources h3 {
    color: #ef4444;
    margin-bottom: 2rem;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.resource-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resource-contacts,
.app-recommendations,
.professional-resources {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact,
.app,
.resource {
    padding: 0.5rem;
    background: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: left;
}

/* Footer */
.section-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .section-footer {
        padding: 2rem 0 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --border-medium: #000000;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -1px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
    z-index: 10000; /* Highest z-index to stay above mobile menu */
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 6vw, 4rem);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 9999; /* Below hamburger but above navbar */
    list-style: none;
    margin: 0;
    padding: 0;
    
    /* Safe area support */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    padding: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    color: var(--text-primary);
  }
  
  .nav-link:hover::after,
  .nav-link:focus::after {
    width: 100%;
  }
}

/* Dark mode specific component styles */
@media (prefers-color-scheme: dark) {
    .section-badge {
        background: rgba(16, 185, 129, 0.1);
    }
    
    .hero {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .overview-card,
    .pillar-card,
    .insight-card,
    .strategy-card,
    .tracker-card,
    .resource-card {
        background: var(--bg-white);
        border: 1px solid var(--border-light);
    }
    
    .nav-menu {
        background-color: var(--bg-white);
    }

    /* Input and form element dark mode styles */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        background-color: var(--bg-white);
        color: var(--text-primary);
        border-color: var(--border-medium);
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    textarea:focus {
        background-color: var(--bg-white);
        border-color: var(--primary);
    }

    /* Rating scale label styling for dark mode */
    .rating-scale label {
        background-color: var(--bg-white);
        color: var(--text-primary);
        border-color: var(--border-medium);
    }

    .rating-scale label:hover {
        background-color: rgba(16, 185, 129, 0.1);
    }

    /* Mood button dark mode styling */
    .mood-btn {
        background-color: var(--bg-white);
        color: var(--text-primary);
        border-color: var(--border-medium);
    }

    .mood-btn:hover,
    .mood-btn.active {
        background-color: rgba(16, 185, 129, 0.1);
    }

    /* Assessment results dark mode */
    .assessment-results {
        background-color: var(--bg-light);
        border: 1px solid var(--border-light);
    }

    /* Check-in card specific input styling */
    .check-in-card textarea,
    .check-in-card input[type="text"] {
        background-color: var(--bg-white);
        color: var(--text-primary);
        border-color: var(--border-medium);
    }

    .check-in-card textarea:focus,
    .check-in-card input[type="text"]:focus {
        background-color: var(--bg-white);
        border-color: var(--primary);
    }

    /* Category item input styling */
    .category-item input[type="number"] {
        background-color: var(--bg-white);
        color: var(--text-primary);
        border-color: var(--border-medium);
    }

    .category-item input[type="number"]:focus {
        background-color: var(--bg-white);
        border-color: var(--primary);
    }    /* Resource card dark mode styling */
    .contact,
    .app,
    .resource {
        background-color: var(--bg-white);
        color: var(--text-primary);
    }
}

/* Dark mode footer styling */
[data-theme="dark"] .section-footer {
    background: var(--bg-light);
    color: var(--text-primary);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section ul li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-medium);
}

[data-theme="dark"] .footer-bottom p {
    color: var(--text-secondary);
}

/* Section Navigation - Enhanced Responsive */
.section-navigation {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.section-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(64, 81, 144, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.nav-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 120px;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    background: linear-gradient(135deg, rgba(64, 81, 144, 0.3) 0%, rgba(45, 56, 98, 0.3) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 149, 237, 0.3);
}

.nav-card.back {
    justify-content: flex-start;
    flex-direction: row;
}

.nav-card.next {
    justify-content: flex-end;
    flex-direction: row;
}

.nav-icon {
    font-size: 2rem;
    font-weight: 300;
    color: #6495ed;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6495ed, #4169e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.3);
    transition: all 0.3s ease;
}

.nav-card:hover .nav-icon {
    transform: scale(1.2);
    text-shadow: 0 0 30px rgba(100, 149, 237, 0.5);
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.nav-card.back .nav-content {
    align-items: baseline;
    text-align: center;
    margin-bottom: 2rem;
}

.nav-card.next .nav-content {
    align-items: flex-end;
    text-align: center;
    margin-bottom: 2rem;

}

.nav-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
    font-family: var(--font-primary);
}

.nav-card:hover .nav-content h3 {
    color: #e6f3ff;
}

.nav-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-card:hover .nav-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Desktop Layout */
@media (min-width: 768px) {
    .nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .nav-card {
        min-height: 120px;
    }
}

/* Enhanced Hover Effects for Desktop */
@media (min-width: 1024px) {
    .nav-card:hover {
        transform: translateY(-6px) scale(1.03);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .nav-card {
        transition: none;
    }
    
    .nav-card:hover {
        transform: none;
    }
    
    .nav-card::before,
    .nav-card:hover::before {
        display: none;
    }
}

/* Screen Time Chart Responsive Styles */
.chart-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--bg-subtle);
    padding: 1rem;
}

#screen-time-chart {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 0.25rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-color.work {
    background-color: #6366f1 !important;
}

.legend-color.social {
    background-color: #10b981 !important;
}

.legend-color.entertainment {
    background-color: #f59e0b !important;
}

.legend-color.communication {
    background-color: #ef4444 !important;
}

.legend-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Dark mode support for chart legend */
@media (prefers-color-scheme: dark) {
    .chart-legend {
        background: var(--bg-secondary);
        border-color: var(--border-medium);
    }
    
    .legend-label {
        color: var(--text-primary);
    }
}

/* Mobile-specific chart adjustments */
@media (max-width: 768px) {
    .chart-container {
        max-width: 100%;
        padding: 0.75rem;
    }
    
    .chart-legend {
        gap: 0.75rem;
        padding: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .legend-color {
        width: 10px;
        height: 10px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .legend-color.work {
        background-color: #6366f1 !important;
        border-color: #6366f1;
    }

    .legend-color.social {
        background-color: #10b981 !important;
        border-color: #10b981;
    }

    .legend-color.entertainment {
        background-color: #f59e0b !important;
        border-color: #f59e0b;
    }

    .legend-color.communication {
        background-color: #ef4444 !important;
        border-color: #ef4444;
    }
    
    .time-visualization {
        margin-top: 1.5rem;
    }
    
    .nav-card {
        min-height: 100px;
        padding: 1.5rem;
    }
    
    .nav-content h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .nav-content p {
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .chart-container {
        padding: 0.5rem;
    }
    
    .chart-legend {
        gap: 0.5rem;
        padding: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legend-item {
        font-size: 0.75rem;
        gap: 0.3rem;
        min-width: 80px;
        justify-content: center;
    }
    
    .legend-color {
        width: 8px;
        height: 8px;
    }
}

/* ===== COMPREHENSIVE GRID RESPONSIVENESS ===== */

/* Tablet Responsive Styles (768px - 1024px) */
@media (max-width: 1024px) {
    /* Overview Grid */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .overview-content {
        order: 1;
    }
    
    .overview-visual {
        order: 2;
    }
    
    /* Screen Time Insights */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Strategies Grid */
    .strategies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Principles Grid */
    .mindfulness-principles .principles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Overview Grid - Mobile First */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .overview-content {
        padding: 0 1rem;
    }
    
    .overview-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .lead-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .key-impacts {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .impact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
        background: var(--bg-subtle);
        border-radius: 0.75rem;
    }
    
    .impact-icon {
        font-size: 2rem;
        align-self: center;
    }
    
    /* Screen Time Insights - Mobile */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .insight-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .insight-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .insight-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .research-note {
        font-size: 0.85rem;
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    /* Age Recommendations - Mobile */
    .rec-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .rec-item {
        padding: 1.25rem;
        text-align: center;
    }
    
    .rec-item h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .rec-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Principles Grid - Mobile */
    .mindfulness-principles .principles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .principle-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .principle-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .principle-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .practice-example {
        margin-top: 1rem;
        padding: 1rem;
        font-size: 0.85rem;
        text-align: left;
    }
    
    /* Tracker Grid - Mobile */
    .tracker-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .check-in-card {
        padding: 1.5rem;
    }
    
    .check-in-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .check-in-card p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .mood-scale {
        justify-content: center;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .mood-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Strategies Grid - Mobile */
    .strategies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .strategy-category {
        padding: 1.5rem;
    }
    
    .category-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .category-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .strategy-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
        text-align: center;
    }
    
    .strategy-item h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .strategy-techniques {
        text-align: left;
    }
    
    .technique {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: var(--bg-subtle);
        border-radius: 0.5rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Small Mobile Responsive Styles (max-width: 480px) */
@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .overview-content h2 {
        font-size: 1.5rem;
    }
    
    .impact-item {
        padding: 0.75rem;
    }
    
    .insight-card, 
    .principle-card, 
    .check-in-card, 
    .strategy-category {
        padding: 1rem;
    }
    
    .rec-item {
        padding: 1rem;
    }
    
    .mood-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .technique {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .practice-example {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Text adjustments for very small screens */
    .strategy-item h4,
    .principle-card h4,
    .check-in-card h4 {
        font-size: 0.95rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .research-note,
    .category-header p,
    .check-in-card p {
        font-size: 0.8rem;
    }
}

/* Large Screen Optimizations (min-width: 1200px) */
@media (min-width: 1200px) {
    .overview-grid {
        gap: 5rem;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .rec-grid {
        gap: 2rem;
    }
    
    .principles-grid {
        gap: 2.5rem;
    }
    
    .tracker-grid {
        gap: 2.5rem;
    }
    
    .strategies-grid {
        gap: 3.5rem;
    }
}

/* Additional Responsive Improvements */

/* Wellness Framework Responsive */
@media (max-width: 768px) {
    .wellness-framework {
        margin-top: 2rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .pillar-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .pillar-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .pillar-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .pillar-practices {
        text-align: left;
        margin-top: 1rem;
    }
    
    .pillar-practices ul {
        padding-left: 1rem;
    }
    
    .pillar-practices li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
}

/* Assessment Responsive */
@media (max-width: 768px) {
    .wellness-assessment {
        margin-top: 2rem;
    }
    
    .assessment-container {
        padding: 1.5rem;
    }
    
    .assessment-questions {
        gap: 1.5rem;
    }
    
    .question-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .question-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .rating-scale {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .rating-scale label {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .assessment-results {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .results-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .score-circle {
        margin: 0 auto;
    }
}

/* Exercise Panels Responsive */
@media (max-width: 768px) {
    .exercises-container {
        margin-top: 2rem;
        background: var(--bg-white);
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .exercise-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        text-align: center;
        border-radius: 0.75rem;
        background: var(--bg-subtle);
        border: 2px solid var(--border-light);
        color: var(--text-secondary);
        transition: all 0.3s ease;
        font-weight: 500;
        box-shadow: var(--shadow-sm);
        position: relative;
        overflow: hidden;
    }
    
    .tab-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .tab-btn:hover::before {
        left: 100%;
    }
    
    .tab-btn.active,
    .tab-btn:focus {
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    }
    
    .tab-btn:hover:not(.active) {
        background: rgba(139, 92, 246, 0.1);
        border-color: var(--primary);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }    
    .exercise-panel {
        padding: 2rem 1.5rem;
        background: var(--bg-white);
        border-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin-top: 1rem;
        border: 1px solid var(--border-light);
        position: relative;
        overflow: hidden;
    }
    
    .exercise-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #8b5cf6, #a855f7, #ec4899);
    }
    
    .exercise-panel h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .exercise-panel h4::before {
        content: '🧘‍♀️';
        font-size: 1.2rem;
    }
    
    .exercise-panel p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(139, 92, 246, 0.05);
        border-radius: 0.5rem;
        border-left: 4px solid var(--primary);
    }
    
    .exercise-steps {
        gap: 1.25rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .step {
        padding: 1.5rem;
        background: linear-gradient(135deg, var(--bg-subtle) 0%, rgba(139, 92, 246, 0.03) 100%);
        border-radius: 1rem;
        border: 1px solid rgba(139, 92, 246, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .step:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
        border-color: rgba(139, 92, 246, 0.3);
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.95rem;
        margin-right: 1rem;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    }
    
    .step p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        color: var(--text-primary);
        background: none;
        padding: 0;
        border: none;
    }
    
    .try-exercise-btn {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        font-weight: 700;
        border-radius: 1rem;
        margin-top: 1.5rem;
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
        border: none;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .try-exercise-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .try-exercise-btn:hover::before {
        left: 100%;
    }
    
    .try-exercise-btn:hover,
    .try-exercise-btn:focus {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
        background: linear-gradient(135deg, #7c3aed, #9333ea);
    }
    
    .try-exercise-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    }
}

@media (max-width: 480px) {
    .exercises-container {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .exercise-tabs {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 1rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .tab-btn.active {
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
        color: white;
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    }
    
    .exercise-panel {
        padding: 1.75rem 1.25rem;
        margin-top: 1.25rem;
        border-radius: 1.25rem;
    }
    
    .exercise-panel h4 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .exercise-panel p {
        font-size: 1.05rem;
        text-align: center;
        margin-bottom: 1.75rem;
        padding: 1.25rem;
    }
    
    .exercise-steps {
        gap: 1.5rem;
        margin: 1.75rem 0 2.25rem 0;
    }
    
    .step {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        border-radius: 1.25rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0 auto 0.75rem auto;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    }
    
    .step p {
        font-size: 1.05rem;
        text-align: center;
        font-weight: 500;
    }
    
    .try-exercise-btn {
        padding: 1.5rem 2.25rem;
        font-size: 1.2rem;
        font-weight: 800;
        margin-top: 2rem;
        border-radius: 1.25rem;
        min-height: 65px;
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.35);
        letter-spacing: 1px;
    }
    
    .try-exercise-btn:hover,
    .try-exercise-btn:focus {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(139, 92, 246, 0.45);
    }
}

/* Resources Grid Responsive */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .resource-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .resource-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .app-recommendations,
    .professional-resources {
        text-align: left;
    }
    
    .app,
    .resource,
    .contact {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: var(--bg-subtle);
        border-radius: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Emergency Resources Responsive */
@media (max-width: 768px) {
    .emergency-resources {
        margin-top: 2rem;
    }
    
    .emergency-resources h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .resource-disclaimer {
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Hero Section Mobile Improvements */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .section-badge {
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat {
        text-align: center;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .wellness-meter {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .wellness-factors {
        transform: scale(0.9);
    }
    
    .factor {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .factor span:last-child {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .wellness-meter {
        width: 220px;
        height: 220px;
    }
    
    .wellness-factors {
        transform: scale(0.8);
    }
    
    .factor {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .factor span:last-child {
        font-size: 0.65rem;
    }
}

/* Touch-Friendly Mobile Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Touch target improvements */
    .tab-btn,
    .mood-btn,
    .try-exercise-btn,
    .save-intention-btn,
    .save-reflection-btn,
    .log-time-btn {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }
    
    /* Enhanced touch feedback for exercise buttons */
    .try-exercise-btn {
        min-height: 60px;
        position: relative;
    }
    
    .try-exercise-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Improved touch feedback for tabs */
    .tab-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Enhanced step interaction */
    .step:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Remove hover effects on touch devices for better performance */
    .pillar-card:hover,
    .insight-card:hover,
    .principle-card:hover,
    .check-in-card:hover,
    .strategy-category:hover,
    .step:hover,
    .tab-btn:hover:not(.active) {
        transform: none;
        box-shadow: initial;
    }
    
    /* Enhanced visual feedback for active elements */
    .exercises-container {
        border: 2px solid rgba(139, 92, 246, 0.1);
    }
      .exercise-panel {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
}

/* Additional responsive breakpoint for large mobile/small tablet */
@media (max-width: 640px) and (min-width: 481px) {
    .exercises-container {
        padding: 1.75rem;
    }
    
    .exercise-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tab-btn {
        padding: 1.125rem 1.25rem;
        font-size: 1rem;
        min-height: 55px;
    }
    
    .exercise-panel {
        padding: 2rem 1.75rem;
    }
    
    .step {
        padding: 1.375rem;
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        margin: 0 1rem 0 0;
    }
    
    .step p {
        text-align: left;
        font-size: 1.025rem;
    }
    
    .try-exercise-btn {
        padding: 1.375rem 2.125rem;
        font-size: 1.15rem;
        min-height: 62px;
    }
}

/* Ultra-wide mobile landscape optimization */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 430px) {
    .exercises-container {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .exercise-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        min-height: 45px;
    }
    
    .exercise-panel {
        padding: 1.25rem;
    }
    
    .exercise-panel h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .exercise-panel p {
        margin-bottom: 1rem;
        padding: 0.875rem;
    }
    
    .exercise-steps {
        gap: 1rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .step {
        padding: 1rem;
    }
    
    .try-exercise-btn {
        padding: 1rem 1.75rem;
        font-size: 1.05rem;
        margin-top: 1.25rem;
        min-height: 50px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    .pillar-card,
    .insight-card,
    .principle-card,
    .check-in-card,
    .strategy-category,
    .factor,
    .tab-btn,
    .mood-btn {
        transition: none;
        animation: none;
    }
    
    .pillar-card:hover,
    .insight-card:hover,
    .principle-card:hover,
    .check-in-card:hover,
    .strategy-category:hover {
        transform: none;
    }
}

/* High Contrast Mode Improvements */
@media (prefers-contrast: high) {
    .pillar-card,
    .insight-card,
    .principle-card,
    .check-in-card,
    .strategy-category,
    .rec-item {
        border: 2px solid var(--text-primary);
    }
    
    .legend-color {
        border: 2px solid var(--text-primary) !important;
    }
    
    .tab-btn.active {
        border: 3px solid var(--text-primary);
    }
}

/* Focus Management for Accessibility */
.pillar-card:focus,
.insight-card:focus,
.principle-card:focus,
.check-in-card:focus,
.strategy-category:focus,
.factor:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Screen Reader Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}