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

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Sticky Tools Sidebar */
.tools-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tools-sidebar-content h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-tool-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.sidebar-tool-link:hover {
    background: var(--bg-secondary);
    transform: translateX(-5px);
}

.sidebar-tool-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sidebar-tool-link span {
    font-size: 0.75rem;
    font-weight: 500;
}

.sidebar-tool-link.active {
    background: var(--gradient-primary);
    color: white;
}

.sidebar-tool-link.active i {
    color: white;
}

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

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

.nav-brand i {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-tool {
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-tool:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 3rem;
    color: var(--accent-color);
}

.floating-card span {
    font-size: 1.25rem;
    font-weight: 600;
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.tool-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

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

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

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

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

/* Quotes Section */
.quotes-section {
    padding: 80px 0;
    background: white;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.quotes-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quotes-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quotes-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.quotes-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.quote-display {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quote-content {
    margin-bottom: 2.5rem;
}

.quote-content blockquote {
    font-size: 1.8rem;
    font-style: italic;
    color: #333;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-weight: 300;
    transition: all 0.3s ease;
}

.quote-content cite {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    font-style: normal;
    transition: all 0.3s ease;
}

.quote-actions {
    display: flex;
    justify-content: center;
}

.quote-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.quote-btn.primary {
    background: #4f46e5;
    color: white;
    border: 2px solid #4f46e5;
}

.quote-btn.primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.quote-btn.secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e5e7eb;
}

.quote-btn.secondary:hover {
    background: #f9fafb;
    color: #333;
    border-color: #d1d5db;
}

/* Tablet Responsive Design for Quotes Section */
@media (max-width: 1024px) and (min-width: 769px) {
    .quotes-section {
        padding: 70px 0;
        min-height: 450px;
    }

    .quotes-header h2 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .quotes-header p {
        font-size: 1.1rem;
        padding: 0 2rem;
        max-width: 700px;
    }

    .quotes-wrapper {
        max-width: 800px;
        padding: 0 2rem;
    }

    .quote-display {
        padding: 2.5rem 2rem;
        border-radius: 18px;
        margin: 0 1rem;
    }

    .quote-content blockquote {
        font-size: 1.6rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        padding: 0 1rem;
    }

    .quote-content cite {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .quote-btn {
        padding: 14px 28px;
        font-size: 1.05rem;
        min-width: 160px;
        border-radius: 25px;
    }

    .quote-btn i {
        font-size: 1.1rem;
    }
}

/* Mobile Responsive Design for Quotes Section */
@media (max-width: 768px) {
    .quotes-section {
        padding: 60px 0;
        min-height: 400px;
    }

    .quotes-header h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .quotes-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .quotes-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .quote-display {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 0 0.5rem;
    }

    .quote-content blockquote {
        font-size: 1.4rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .quote-content cite {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        display: block;
    }

    .quote-actions {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .quote-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .quote-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .quotes-section {
        padding: 40px 0;
        min-height: 350px;
    }

    .quotes-header {
        margin-bottom: 2rem;
    }

    .quotes-header h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .quotes-header p {
        font-size: 0.95rem;
        padding: 0 1.5rem;
    }

    .quote-display {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .quote-content {
        margin-bottom: 2rem;
    }

    .quote-content blockquote {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .quote-content cite {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .quote-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
        min-width: auto;
        width: 100%;
        max-width: 260px;
    }

    .quote-btn i {
        font-size: 1rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .quote-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .quote-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .quote-btn.primary:active {
        background: #3730a3;
    }

    .quote-btn.secondary:active {
        background: #f3f4f6;
    }
}

/* Contact Page Styles */
.contact-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content-section {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4f46e5;
}

.contact-icon {
    background: #4f46e5;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0 0 0.25rem 0;
    color: #4f46e5;
    font-weight: 500;
}

.contact-details span {
    color: #666;
    font-size: 0.9rem;
}

.response-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.response-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.response-info ul {
    list-style: none;
    padding: 0;
}

.response-info li {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.form-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #856404;
}

.faq-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2rem;
}

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

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #4f46e5;
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Contact Page Mobile Styles */
@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}


/* Breathing Exercises Section */
.breathing-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

/* Technique Selector */
.technique-selector {
    margin-bottom: 3rem;
}

.technique-selector h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.75rem;
}

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

.technique-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.technique-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.technique-card:hover::before,
.technique-card.active::before {
    transform: scaleX(1);
}

.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.technique-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.technique-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.technique-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.technique-card p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.technique-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Breathing Visualizer */
.breathing-visualizer {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.breathing-circle-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 3rem;
}

.breathing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

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

.breathing-circle.exhale {
    animation: breatheOut 4s ease-in-out;
}

.breathing-circle.hold {
    animation: hold 4s ease-in-out;
}

@keyframes breatheIn {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.4); }
}

@keyframes breatheOut {
    0% { transform: translate(-50%, -50%) scale(1.4); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes hold {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
}

.breathing-text {
    text-align: center;
    color: white;
}

.breathing-text .instruction {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breathing-text .counter {
    display: block;
    font-size: 3rem;
    font-weight: 700;
}

.breathing-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
}

.ring-1 {
    width: 220px;
    height: 220px;
    animation: pulse 3s ease-in-out infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
    width: 280px;
    height: 280px;
    animation: pulse 3s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Breathing Controls */
.breathing-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Breathing Info Cards */
.breathing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Technique Details */
.technique-details {
    margin-top: 3rem;
}

.detail-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-card h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-card h4 i {
    color: var(--primary-color);
}

.detail-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.detail-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.detail-card ul li:last-child {
    border-bottom: none;
}

.detail-card ul li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.detail-card .benefit {
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 0;
}

.detail-card .benefit i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Responsive Design for Breathing Section */
@media (max-width: 768px) {
    .breathing-circle-container {
        width: 250px;
        height: 250px;
    }
    
    .breathing-circle {
        width: 160px;
        height: 160px;
    }
    
    .breathing-text .instruction {
        font-size: 1rem;
    }
    
    .breathing-text .counter {
        font-size: 2.5rem;
    }
    
    .ring-1 {
        width: 180px;
        height: 180px;
    }
    
    .ring-2 {
        width: 210px;
        height: 210px;
    }
    
    .ring-3 {
        width: 240px;
        height: 240px;
    }
    
    .technique-cards {
        grid-template-columns: 1fr;
    }
    
    .breathing-info {
        grid-template-columns: 1fr;
    }
    
    .breathing-visualizer {
        padding: 2rem 1rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
}

/* Music Section */
.music-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.music-player {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.player-container {
    margin-bottom: 2rem;
}

.player-info {
    text-align: center;
    margin-bottom: 2rem;
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.player-info p {
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
}

.play-pause {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-accent);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.volume-slider {
    width: 120px;
    height: 4px;
    background: var(--bg-accent);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

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

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

.track-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.track-item:hover {
    background: var(--bg-accent);
}

.track-item.active {
    background: var(--gradient-primary);
    color: white;
}

.track-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.track-info h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.track-info p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

/* About Page Styles */
.about-hero {
    padding: 60px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-hero-content .hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-content-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.about-text h2:first-of-type {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.benefits-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.125rem;
    line-height: 1.6;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .nav-brand {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

/* Breathing Exercise Styles */
.breathing-exercise {
    text-align: center;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.breathing-circle.inhale {
    transform: scale(1.3);
    border-color: var(--accent-color);
}

.breathing-circle.exhale {
    transform: scale(0.8);
    border-color: var(--secondary-color);
}

.breathing-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.breathing-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.breathing-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.breathing-settings label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
}

.breathing-settings input[type="range"] {
    width: 60%;
    margin-left: 1rem;
}

/* Meditation Timer Styles */
.meditation-timer {
    text-align: center;
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.timer-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.timer-settings label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timer-settings select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-sidebar {
        display: none;
    }

    .nav-container {
        justify-content: center;
        position: relative;
    }

    .nav-brand {
        margin: 0 auto;
        position: absolute;
        left: 20%;
        transform: translateX(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

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

    .about-content {
        padding: 0 1rem;
    }

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

    .about-hero-content .hero-subtitle {
        font-size: 1.125rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .breathing-circle {
        width: 150px;
        height: 150px;
    }

    .timer-display {
        font-size: 3rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .quote-card {
        padding: 2rem;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .music-player {
        padding: 1.5rem;
    }

    .player-controls {
        gap: 0.75rem;
    }

    .control-btn {
        width: 45px;
        height: 45px;
    }

    .play-pause {
        width: 55px;
        height: 55px;
    }

    .breathing-circle {
        width: 120px;
        height: 120px;
    }

    .breathing-text {
        font-size: 1.25rem;
    }

    .timer-display {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* YouTube Music Player Section */
.youtube-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.api-key-setup {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.api-key-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.api-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.api-status.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.api-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.api-key-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.api-key-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.api-key-help {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.api-key-help a {
    color: var(--primary-color);
    text-decoration: none;
}

.api-key-help a:hover {
    text-decoration: underline;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.quick-search-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quick-search-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.loading-spinner i {
    margin-right: 0.5rem;
}

.youtube-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.youtube-result-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.youtube-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.result-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.result-info {
    padding: 1rem;
}

.result-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-channel {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.9);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-result-card:hover .btn-play-video {
    opacity: 1;
}

.btn-play-video:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.youtube-player-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.youtube-player-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.youtube-player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 10px;
}

.now-playing-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.now-playing-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.now-playing-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.youtube-player-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#youtube-player-container {
    display: none;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-info {
    border-left: 4px solid #2196f3;
}

.notification i {
    font-size: 1.2rem;
}

/* Breathing Tool Section */
.breathing-tool-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.breathing-tool-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.breathing-tool-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.breathing-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.breathing-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.breathing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.breathing-circle.expand {
    animation: breatheIn 4s ease-in-out forwards;
}

.breathing-circle.contract {
    animation: breatheOut 4s ease-in-out forwards;
}

.breathing-circle.hold-full {
    width: 250px;
    height: 250px;
}

.breathing-circle.hold-empty {
    width: 150px;
    height: 150px;
}

@keyframes breatheIn {
    0% {
        width: 150px;
        height: 150px;
    }
    100% {
        width: 250px;
        height: 250px;
    }
}

@keyframes breatheOut {
    0% {
        width: 250px;
        height: 250px;
    }
    100% {
        width: 150px;
        height: 150px;
    }
}

.breathing-instruction {
    color: white;
    text-align: center;
}

.instruction-text {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.instruction-count {
    display: block;
    font-size: 3rem;
    font-weight: 700;
}

.breathing-music-selector {
    margin-bottom: 1.5rem;
    text-align: center;
}

.breathing-music-selector label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.breathing-music-selector label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.music-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.music-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.breathing-audio-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.breathing-audio-selector label {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-track-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.audio-track-select:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
}

.audio-track-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.breathing-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-breathing {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.btn-breathing:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.breathing-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: #4CAF50;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Responsive Design for Breathing Tool */
@media (max-width: 768px) {
    .breathing-tool-section {
        padding: 60px 0;
        background: #f8f9fa;
    }

    .breathing-tool-container {
        max-width: 500px;
    }

    .breathing-tool-container h2 {
        font-size: 1.75rem;
        color: #333;
    }

    .breathing-subtitle {
        font-size: 0.95rem;
        color: #666;
    }

    .breathing-visual {
        width: 300px;
        height: 300px;
    }

    .breathing-circle {
        width: 150px;
        height: 150px;
        background: #4CAF50;
    }

    .breathing-circle.hold-full {
        width: 250px;
        height: 250px;
        background: #4CAF50;
    }

    .breathing-circle.hold-empty {
        width: 150px;
        height: 150px;
        background: #4CAF50;
    }

    @keyframes breatheIn {
        0% {
            width: 150px;
            height: 150px;
        }
        100% {
            width: 250px;
            height: 250px;
        }
    }

    @keyframes breatheOut {
        0% {
            width: 250px;
            height: 250px;
        }
        100% {
            width: 150px;
            height: 150px;
        }
    }

    .breathing-instruction {
        color: white;
    }

    .instruction-text {
        font-size: 1rem;
        font-weight: 500;
        color: white;
    }

    .instruction-count {
        font-size: 2.5rem;
    }

    .breathing-stats {
        gap: 2rem;
    }

    .stat-item i {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .btn-breathing {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    .breathing-tool-section {
        padding: 60px 0;
    }

    .breathing-tool-container h2 {
        font-size: 1.75rem;
    }

    .breathing-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .breathing-visual {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }

    .breathing-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-breathing {
        width: 100%;
        max-width: 250px;
    }

    .breathing-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Tool Modal */
.tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-modal.show {
    opacity: 1;
}

.tool-modal-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tool-modal.show .tool-modal-content {
    transform: scale(1);
}

.tool-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tool-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tool-modal-content h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.tool-modal-content p {
    margin: 0 0 2rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.tool-modal-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #666666;
    }
}

/* Gratitude Journal Section */
.gratitude-tool-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.gratitude-tool-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.gratitude-tool-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gratitude-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.gratitude-input-area {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

#gratitudeInput {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

#gratitudeInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-gratitude {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.gratitude-entries {
    text-align: left;
}

.gratitude-entries h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.gratitude-entry {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

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

.gratitude-entry:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.entry-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-date i {
    color: var(--primary-color);
}

.entry-delete {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.entry-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.entry-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .gratitude-tool-section {
        padding: 60px 0;
    }

    .gratitude-tool-container {
        padding: 0 1rem;
    }

    .gratitude-tool-container h2 {
        font-size: 1.75rem;
    }

    .gratitude-input-area {
        padding: 1.5rem;
    }

    #gratitudeInput {
        min-height: 100px;
    }

    .gratitude-entry {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .gratitude-tool-container h2 {
        font-size: 1.5rem;
    }

    .btn-gratitude {
        width: 100%;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
