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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page Container */
.page-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4C51BF;
    margin-bottom: 2rem;
    text-align: center;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #4a5568;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #4C51BF;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, rgba(238, 174, 202, 0.3), rgba(148, 187, 233, 0.3));
    background-size: 400% 400%;
    animation: gradientFloat 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientFloat {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Mood Check Section */
.mood-check-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.mood-check-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.mood-faces {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mood-face {
    font-size: 2.5rem;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mood-face:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mood-face.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.mood-feedback {
    min-height: 2rem;
    font-style: italic;
    color: #4a5568;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-align: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.cta-btn.tertiary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #4a5568;
    margin-top: 0.5rem;
}

/* Section Cards */
.section-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.section-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.section-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Mood Journey Styles */
.mood-sections {
    display: grid;
    gap: 2rem;
}

.mood-section {
    width: 100%;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.color-circle.selected {
    border-color: #2d3748;
    transform: scale(1.15);
}

.selected-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    min-height: 2rem;
}

.selected-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
    animation: colorPop 0.3s ease;
}

@keyframes colorPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Canvas */
#emotionCanvas {
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    cursor: crosshair;
    background: white;
    width: 100%;
    max-width: 600px;
    height: 300px;
}

.canvas-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.canvas-controls input,
.canvas-controls button {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: white;
}

/* Anhedonia Questions */
.anhedonia-questions {
    display: grid;
    gap: 2rem;
}

.question-card {
    padding: 2rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.question-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-weight: 500;
}

.answer-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.answer-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.answer-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Save Button */
.save-btn, .card-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 1rem;
}

.save-btn:hover, .card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.card-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.card-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* JoyBoard Styles */
.joyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.joy-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.joy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.joy-card.full-width {
    grid-column: 1 / -1;
}

.joy-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.joy-card p {
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Breathing Bubble */
.breathing-bubble {
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    position: relative;
    cursor: pointer;
}

.bubble-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 3px solid rgba(102, 126, 234, 0.5);
    transition: all 4s ease-in-out;
}

.bubble-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.breathing-bubble.inhale .bubble-inner {
    transform: scale(1.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
}

.breathing-bubble.exhale .bubble-inner {
    transform: scale(0.8);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

/* Water Tracker */
.water-glasses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.glass {
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid transparent;
}

.glass:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.glass.filled {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 197, 253, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.water-progress {
    font-weight: 500;
    color: #4a5568;
    margin-top: 1rem;
}

/* Time Input */
.time-input {
    padding: 0.75rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 200px;
    margin: 2rem 0;
    background: white;
}

/* Sound Buttons */
.sound-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sound-btn {
    padding: 0.875rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sound-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.sound-btn.playing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sound-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    margin-top: 1rem;
}

/* Challenge Display */
.challenge-display {
    background: rgba(248, 250, 252, 0.8);
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.challenge-text {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.6;
}

.challenge-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.challenge-celebration {
    margin-top: 1rem;
    font-size: 2rem;
    animation: celebration 0.6s ease;
}

@keyframes celebration {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

/* Plant Display */
.plant-display {
    text-align: center;
    margin: 1.5rem 0;
}

.plant-visual {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.plant-level {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.plant-message {
    font-size: 0.9rem;
    color: #4a5568;
    font-style: italic;
}

/* SafeSpace Styles */
.safespace-sections {
    display: grid;
    gap: 2rem;
}

.safespace-section {
    width: 100%;
}

/* Journal */
.journal-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    margin-top: 1.5rem;
}

.journal-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.journal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.clear-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.3);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Quote Display */
.quote-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.quote-display::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.2);
    font-family: serif;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.quote-author {
    font-weight: 600;
    color: #667eea;
}

.favorite-quotes {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.favorite-quotes h4 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.saved-quotes-list {
    display: grid;
    gap: 1rem;
}

.saved-quote {
    background: rgba(248, 250, 252, 0.8);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    position: relative;
}

.saved-quote .quote-text {
    font-size: 1rem;
    margin: 0;
}

.remove-quote {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.saved-quote:hover .remove-quote {
    opacity: 1;
}

.empty-state {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.save-quote-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.save-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Emergency Kit */
.emergency-kit {
    border: 2px solid rgba(245, 87, 108, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 247, 248, 0.95) 100%);
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.emergency-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(245, 87, 108, 0.2);
    transition: all 0.3s ease;
}

.emergency-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.15);
}

.emergency-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.emergency-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.emergency-item p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.emergency-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Music Player */
.music-player {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.play-btn, .stop-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover, .stop-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Body Scan Guide */
.body-scan-guide {
    background: rgba(248, 250, 252, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.scan-instruction {
    color: #4a5568;
    margin-bottom: 1rem;
    font-style: italic;
}

.scan-progress {
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.scan-progress::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
}

/* Animal Display */
.animal-display {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.animal-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.animal-image:hover {
    transform: scale(1.05);
}

/* Breathing Guide */
.breathing-guide {
    text-align: center;
    margin: 2rem 0;
}

.breath-circle {
    width: 100px;
    height: 100px;
    margin: 1rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 3px solid rgba(102, 126, 234, 0.5);
    transition: all 4s ease-in-out;
}

.breath-circle.inhale {
    transform: scale(1.3);
}

.breath-circle.exhale {
    transform: scale(0.7);
}

.breath-instruction {
    color: #4a5568;
    font-weight: 500;
    margin-top: 1rem;
}

/* Crisis Resources */
.crisis-resources {
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 242, 242, 0.95) 100%);
}

.resource-links {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.resource-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #dc2626;
}

.resource-item h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resource-item p {
    color: #2d3748;
    font-weight: 500;
    margin: 0;
}

.resource-note {
    text-align: center;
    font-weight: 500;
    color: #4a5568;
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

/* Info Page Styles */
.info-sections {
    display: grid;
    gap: 2rem;
}

.info-section {
    width: 100%;
}

/* Anhedonia Explanation */
.anhedonia-explanation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.explanation-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brain-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.connection-lines {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 1px;
}

.explanation-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #2d3748;
}

/* Accordion */
.accordion {
    display: grid;
    gap: 0.5rem;
}

.accordion-item {
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.accordion-header.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content p {
    color: #4a5568;
    line-height: 1.6;
}

/* Practices Grid */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.practice-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.practice-card.completed {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
}

.practice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.practice-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.practice-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.practice-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.practice-btn.completed {
    background: rgba(34, 197, 94, 0.9);
}

/* Help Section */
.help-section {
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 242, 242, 0.95) 100%);
}

.help-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #2d3748;
}

.help-signs {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.help-signs h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.help-signs ul {
    list-style: none;
    padding: 0;
}

.help-signs li {
    margin-bottom: 0.75rem;
    color: #4a5568;
    padding-left: 0;
}

.help-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Progress Display */
.progress-display {
    text-align: center;
    padding: 2rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.progress-stat {
    margin-bottom: 1.5rem;
}

.progress-number {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.progress-label {
    color: #4a5568;
    font-size: 1.1rem;
}

.progress-message {
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

/* About Page Styles */
.about-sections {
    display: grid;
    gap: 2rem;
}

.about-section {
    width: 100%;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

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

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid #667eea;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.3);
    font-family: serif;
}

.testimonial-card p {
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 2rem;
    font-style: italic;
}

.testimonial-author {
    color: #667eea;
    font-weight: 600;
    text-align: right;
}

/* Science Points */
.science-points {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.science-point {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid #667eea;
}

.science-point h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.science-point p {
    color: #4a5568;
    line-height: 1.7;
}

/* Team Message */
.team-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-message p {
    color: #2d3748;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.team-values {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.value {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.center-value {
    grid-column: 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.value strong {
    color: #667eea;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.value p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Support Message */
.support-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.support-message p {
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.emergency-contacts {
    background: rgba(254, 242, 242, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.contact {
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact strong {
    color: #dc2626;
}

.support-final {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .mood-faces {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mood-face {
        font-size: 2rem;
        padding: 0.75rem;
    }
    
    .color-palette {
        gap: 0.75rem;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    #emotionCanvas {
        height: 250px;
    }
    
    .canvas-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .joyboard-grid {
        grid-template-columns: 1fr;
    }
    
    .joy-card {
        padding: 1.5rem;
    }
    
    .water-glasses {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sound-buttons {
        grid-template-columns: 1fr;
    }
    
    .challenge-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-item {
        padding: 1.5rem;
    }
    
    .journal-textarea {
        min-height: 150px;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-values {
        grid-template-columns: 1fr;
    }
    
    .center-value {
        grid-column: 1;
        transform: none;
    }
    
    .anhedonia-explanation {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-card {
        padding: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .answer-buttons {
        flex-direction: column;
    }
    
    .journal-actions {
        flex-direction: column;
    }
    
    .music-player {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .mood-faces {
        gap: 0.25rem;
    }
    
    .mood-face {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .color-circle {
        width: 40px;
        height: 40px;
    }
    
    .color-palette {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .joy-card {
        padding: 1rem;
    }
    
    .plant-visual {
        font-size: 3rem;
    }
    
    .emergency-icon {
        font-size: 2rem;
    }
    
    .brain-icon {
        font-size: 3rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .practice-icon {
        font-size: 2rem;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in {
    animation: slideIn 0.6s ease;
}

.bounce {
    animation: bounce 2s infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Focus States */
button:focus,
.nav-link:focus,
.cta-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .section-card {
        border: 2px solid #2d3748;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: #2d3748;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg-animation {
        animation: none;
    }
    
    .breathing-bubble,
    .breath-circle {
        transition: none;
    }
}