/* MindEase - Student Mental Health Support */
/* Calming, accessible design with soft colors */

:root {
    --primary: #5B8A72;
    --primary-light: #7BA391;
    --primary-dark: #4A7059;
    --secondary: #E8B86D;
    --accent: #D4A574;
    --bg: #FAFBF9;
    --bg-alt: #F0F4F1;
    --text: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --urgent: #C0392B;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(91, 138, 114, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 138, 114, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(91, 138, 114, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(91, 138, 114, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 138, 114, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-urgent {
    background: var(--urgent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.3);
}

.btn-urgent:hover {
    background: #A93226;
    transform: translateY(-2px);
}

.crisis-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(192, 57, 43, 0.08);
    border-left: 4px solid var(--urgent);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    max-width: 500px;
}

.crisis-icon {
    font-size: 1.5rem;
}

.crisis-banner p {
    font-size: 0.95rem;
    color: var(--text);
}

.crisis-banner a {
    color: var(--urgent);
    font-weight: 600;
    text-decoration: none;
}

.crisis-banner a:hover {
    text-decoration: underline;
}

/* Hero Visual - Breathing Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calm-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.breathing-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(91, 138, 114, 0.1);
    animation: breathe 6s ease-in-out infinite;
}

.breathing-circle.inner {
    width: 140px;
    height: 140px;
    background: rgba(91, 138, 114, 0.15);
    animation-delay: -1s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.breathing-text {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text);
}

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

.feature-card {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(91, 138, 114, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(91, 138, 114, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tools Section */
.tools-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.tool-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tool-card:hover {
    box-shadow: var(--shadow-hover);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.tool-card > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Breathing Tool */
.breathing-exercise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.breath-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.1s ease;
    box-shadow: 0 8px 30px rgba(91, 138, 114, 0.3);
}

.breath-circle.inhale {
    animation: inhale 4s ease-in-out;
}

.breath-circle.hold {
    animation: hold 7s ease-in-out;
}

.breath-circle.exhale {
    animation: exhale 8s ease-in-out;
}

@keyframes inhale {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

@keyframes hold {
    from { transform: scale(1.3); }
    to { transform: scale(1.3); }
}

@keyframes exhale {
    from { transform: scale(1.3); }
    to { transform: scale(1); }
}

/* Grounding Tool */
.grounding-intro {
    margin-bottom: 20px;
}

.grounding-list {
    list-style: none;
}

.grounding-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
}

.grounding-list li:last-child {
    border-bottom: none;
}

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

/* Mood Checker */
.mood-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mood-btn {
    padding: 16px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.mood-btn:hover {
    border-color: var(--primary);
    background: rgba(91, 138, 114, 0.05);
}

.mood-btn.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.mood-response {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: none;
}

.mood-response.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Study Timer */
.study-timer .timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
}

.timer-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.timer-mode {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

/* Sounds Player */
.sound-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.sound-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.sound-btn:hover {
    border-color: var(--primary);
    background: rgba(91, 138, 114, 0.05);
}

.sound-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.volume-control label {
    font-weight: 500;
    color: var(--text-light);
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(91, 138, 114, 0.2);
    border-radius: 3px;
    outline: none;
}

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

/* Affirmations */
.affirmation-display {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Journal Section */
.journal-section {
    padding: 100px 0;
    background: var(--white);
}

.journal-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.journal-card {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(91, 138, 114, 0.1);
}

.journal-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

/* Mood Calendar */
.mood-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mood-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(91, 138, 114, 0.1);
}

.mood-day:hover {
    transform: scale(1.1);
}

.mood-day.great { background: #2ECC71; color: white; }
.mood-day.good { background: #27AE60; color: white; }
.mood-day.okay { background: #F39C12; color: white; }
.mood-day.stressed { background: #E67E22; color: white; }
.mood-day.overwhelmed { background: #E74C3C; color: white; }

.mood-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.mood-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mood-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mood-dot.great { background: #2ECC71; }
.mood-dot.good { background: #27AE60; }
.mood-dot.okay { background: #F39C12; }
.mood-dot.stressed { background: #E67E22; }
.mood-dot.overwhelmed { background: #E74C3C; }

/* Gratitude Journal */
.gratitude-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.gratitude-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.gratitude-input input:focus {
    border-color: var(--primary);
}

.gratitude-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.gratitude-list li {
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gratitude-list li button {
    background: none;
    border: none;
    color: var(--urgent);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition);
}

.gratitude-list li button:hover {
    opacity: 1;
}

/* Sleep Tracker */
.sleep-input {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.sleep-input label {
    font-weight: 500;
    color: var(--text-light);
}

.sleep-input input,
.sleep-input select {
    padding: 12px 16px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.sleep-input input:focus,
.sleep-input select:focus {
    border-color: var(--primary);
}

.sleep-stats {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
}

/* Daily Reflection */
.daily-reflection textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    outline: none;
    margin-bottom: 16px;
}

.daily-reflection textarea:focus {
    border-color: var(--primary);
}

.reflection-history {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.reflection-entry {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.reflection-entry .date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Community Section */
.community-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.community-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.community-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.community-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.community-card > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Success Stories */
.stories-list {
    margin-bottom: 24px;
}

.story {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
}

.story-text {
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.6;
}

.story-author {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Peer Forum */
.forum-topics {
    margin-bottom: 24px;
}

.forum-topic {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.forum-topic:hover {
    background: rgba(91, 138, 114, 0.1);
}

.topic-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.forum-topic h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.topic-replies {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Resource Sharing */
.shared-resources {
    margin-bottom: 24px;
}

.shared-resource {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-type {
    display: inline-block;
    background: var(--secondary);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.shared-resource h4 {
    font-size: 1.1rem;
    color: var(--text);
}

.shared-resource p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.resource-votes {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

/* Safety Section */
.safety-section {
    padding: 100px 0;
    background: var(--white);
}

.safety-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.safety-builder {
    max-width: 800px;
    margin: 0 auto;
}

.safety-step {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid rgba(91, 138, 114, 0.1);
}

.safety-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.safety-step p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.safety-step textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    outline: none;
}

.safety-step textarea:focus {
    border-color: var(--primary);
}

#saveSafetyPlan {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 20px;
}

.safety-saved {
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.safety-saved.show {
    opacity: 1;
}

/* Resources Section */
.resources {
    padding: 100px 0;
    background: var(--bg-alt);
}

.resources h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text);
}

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

.resource-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(91, 138, 114, 0.2);
}

.resource-category ul {
    list-style: none;
}

.resource-category li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-category li:last-child {
    border-bottom: none;
}

.resource-category a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: var(--transition);
}

.resource-category a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.emergency-link {
    color: var(--urgent) !important;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.stats h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 280px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.cta > p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4,
.footer-crisis h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-crisis a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-crisis a:hover {
    color: var(--white);
}

.footer-crisis p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal h3 {
    margin-bottom: 20px;
    color: var(--text);
}

.modal textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(91, 138, 114, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .crisis-banner {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(91, 138, 114, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features h2,
    .tools-section h2,
    .journal-section h2,
    .community-section h2,
    .safety-section h2,
    .resources h2,
    .stats h2,
    .cta h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .tools-grid,
    .journal-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .mood-options,
    .sound-options {
        grid-template-columns: 1fr;
    }

    .mood-calendar {
        gap: 4px;
    }

    .mood-day {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .gratitude-input {
        flex-direction: column;
    }

    .timer-controls {
        flex-wrap: wrap;
    }
}