/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #4a5568;
    overflow-x: hidden;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 195, 74, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #8bc34a;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: #ffa726;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #8bc34a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f5e8 0%, #f3e5f5 50%, #fff3e0 100%);
    color: #4a5568;
    position: relative;
    overflow: hidden;
}

.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="petals" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(139,195,74,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23petals)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #8bc34a;
    border: 2px solid #8bc34a;
}

.btn-secondary:hover {
    background: #8bc34a;
    color: white;
}

/* Hero Visual - Meditation Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.meditation-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.breathing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(139, 195, 74, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breathe 4s ease-in-out infinite;
}

.inner-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.2), rgba(255, 167, 38, 0.2));
    border-radius: 50%;
    animation: innerBreathe 4s ease-in-out infinite;
}

.breath-text {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 500;
    color: #8bc34a;
    animation: breatheText 4s ease-in-out infinite;
}

.floating-thoughts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.thought {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(139, 195, 74, 0.6);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.thought:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.thought:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.thought:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.thought:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes innerBreathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(0.9); opacity: 1; }
}

@keyframes breatheText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-20px) scale(1.2); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-40px) scale(0.8); 
        opacity: 0.3; 
    }
    75% { 
        transform: translateY(-20px) scale(1.1); 
        opacity: 0.6; 
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #8bc34a;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.feature-card p {
    color: #718096;
    line-height: 1.7;
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0fff4, #f7fafc);
}

.download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.download > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 3rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.2);
}

.download-card i {
    font-size: 3.5rem;
    color: #8bc34a;
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.download-card p {
    color: #718096;
    margin-bottom: 2rem;
}

/* Documentation Section */
.docs {
    padding: 6rem 0;
    background: white;
}

.docs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.2);
}

.doc-card i {
    font-size: 2.5rem;
    color: #8bc34a;
    margin-bottom: 1.5rem;
}

.doc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.doc-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.doc-link {
    color: #8bc34a;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.doc-link:hover {
    color: #689f38;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0fff4, #f7fafc);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.contact-info p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #718096;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(139, 195, 74, 0.1);
}

.contact-method i {
    color: #8bc34a;
    width: 24px;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8bc34a;
    background: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: #ffa726;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8bc34a;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #cbd5e0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #8bc34a;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features h2,
    .download h2,
    .docs h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Interactive Tool Buttons */
.tool-btn {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: inherit;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

.interactive-tool {
    cursor: pointer;
}

/* Modal Styles - Mobile First */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    margin: 0;
    padding: 1rem;
    border-radius: 20px 20px 0 0;
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Desktop Modal */
@media (min-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 2rem;
        border-radius: 20px;
        width: 90%;
        max-width: 600px;
        height: auto;
        max-height: 80vh;
        transform: scale(0.8);
    }
    
    .modal.show .modal-content {
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: #8bc34a;
    background: rgba(139, 195, 74, 0.1);
}

/* Breathing Exercise Styles - Mobile First */
.breathing-exercise {
    text-align: center;
    padding: 1rem 0;
}

.breathing-circle-large {
    width: 150px;
    height: 150px;
    border: 3px solid #8bc34a;
    border-radius: 50%;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.breathing-circle-large.inhale {
    transform: scale(1.4);
    background: rgba(139, 195, 74, 0.15);
    border-width: 4px;
}

.breathing-circle-large.exhale {
    transform: scale(0.7);
    background: rgba(139, 195, 74, 0.05);
    border-width: 2px;
}

.breath-instruction {
    font-size: 1.2rem;
    font-weight: 500;
    color: #8bc34a;
    margin: 1rem 0;
    min-height: 2rem;
}

.breath-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Desktop Breathing */
@media (min-width: 768px) {
    .breathing-exercise {
        padding: 2rem 0;
    }
    
    .breathing-circle-large {
        width: 200px;
        height: 200px;
        margin: 2rem auto;
    }
    
    .breath-instruction {
        font-size: 1.5rem;
    }
    
    .breath-controls {
        gap: 1rem;
        margin-top: 2rem;
    }
}

/* Thought Release Styles - Mobile First */
.thought-release {
    text-align: center;
    padding: 1rem 0;
}

.thought-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    margin: 1rem 0;
    resize: vertical;
    min-height: 80px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.thought-input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.release-animation {
    height: 150px;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.floating-thought {
    position: absolute;
    background: rgba(139, 195, 74, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    animation: floatAway 3s ease-out forwards;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
    max-width: 80%;
    word-wrap: break-word;
}

/* Desktop Thought Release */
@media (min-width: 768px) {
    .thought-release {
        padding: 2rem 0;
    }
    
    .thought-input {
        min-height: 100px;
        font-size: 1.1rem;
    }
    
    .release-animation {
        height: 200px;
        margin: 2rem 0;
    }
    
    .floating-thought {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        max-width: 70%;
    }
}

@keyframes floatAway {
    0% {
        bottom: 10px;
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateX(30px) scale(1.1) rotate(5deg);
    }
    100% {
        bottom: 160px;
        opacity: 0;
        transform: translateX(60px) scale(0.3) rotate(15deg);
    }
}

/* Timer Styles - Mobile First */
.meditation-timer {
    text-align: center;
    padding: 1rem 0;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 300;
    color: #8bc34a;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid rgba(139, 195, 74, 0.2);
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.timer-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.preset-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    touch-action: manipulation;
}

.preset-btn:hover,
.preset-btn.active {
    background: #8bc34a;
    color: white;
    border-color: #8bc34a;
    transform: translateY(-1px);
}

/* Desktop Timer */
@media (min-width: 768px) {
    .meditation-timer {
        padding: 2rem 0;
    }
    
    .timer-display {
        font-size: 4rem;
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .timer-controls {
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .timer-presets {
        grid-template-columns: repeat(5, 1fr);
        max-width: 400px;
    }
    
    .preset-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Sleep Sounds Styles - Mobile First */
.sleep-sounds {
    text-align: center;
    padding: 1rem 0;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.sound-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    touch-action: manipulation;
    min-height: 80px;
}

.sound-btn:hover,
.sound-btn.playing {
    background: #8bc34a;
    color: white;
    border-color: #8bc34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}

.sound-btn i {
    font-size: 1.5rem;
}

.sound-btn span {
    font-size: 0.85rem;
    font-weight: 500;
}

.volume-control {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.volume-control label {
    font-weight: 500;
    color: #718096;
}

.volume-slider {
    width: 100%;
    max-width: 250px;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8bc34a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(139, 195, 74, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8bc34a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
}

#volumeDisplay {
    font-size: 0.9rem;
    color: #8bc34a;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Desktop Sleep Sounds */
@media (min-width: 768px) {
    .sleep-sounds {
        padding: 2rem 0;
    }
    
    .sound-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .sound-btn {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .sound-btn i {
        font-size: 2rem;
    }
    
    .sound-btn span {
        font-size: 1rem;
    }
    
    .volume-control {
        margin: 2rem 0;
    }
    
    .volume-slider {
        max-width: 300px;
    }
}

/* Body Scan Styles - Mobile First */
.body-scan {
    text-align: center;
    padding: 1rem 0;
}

.body-parts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.body-part {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    touch-action: manipulation;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.body-part:hover,
.body-part.active {
    background: #8bc34a;
    color: white;
    border-color: #8bc34a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 195, 74, 0.3);
}

.scan-instruction {
    font-size: 1rem;
    color: #718096;
    margin: 1rem 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.5;
}

/* Desktop Body Scan */
@media (min-width: 768px) {
    .body-scan {
        padding: 2rem 0;
    }
    
    .body-parts {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .body-part {
        padding: 1rem;
        font-size: 1rem;
        min-height: 60px;
    }
    
    .scan-instruction {
        font-size: 1.2rem;
        min-height: 100px;
        padding: 1.5rem;
    }
}

/* Loving Kindness Styles - Mobile First */
.loving-kindness {
    text-align: center;
    padding: 1rem 0;
}

.affirmation-display {
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.affirmation-text {
    font-size: 1.1rem;
    color: #2d3748;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

.heart-animation {
    font-size: 2.5rem;
    color: #f56565;
    margin: 1rem 0;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Desktop Loving Kindness */
@media (min-width: 768px) {
    .loving-kindness {
        padding: 2rem 0;
    }
    
    .affirmation-display {
        padding: 2rem;
        margin: 2rem 0;
        min-height: 140px;
    }
    
    .affirmation-text {
        font-size: 1.3rem;
    }
    
    .heart-animation {
        font-size: 3rem;
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* Mobile-First Button Optimizations */
.btn {
    min-height: 44px;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tool-btn {
    min-height: 44px;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for modal content */
.modal-content {
    scroll-behavior: smooth;
}

/* Prevent zoom on input focus (iOS) */
input, textarea, select {
    font-size: 16px;
}

/* Improved touch targets */
.preset-btn,
.sound-btn,
.body-part {
    min-height: 44px;
    min-width: 44px;
}

/* Performance optimizations */
.breathing-circle-large,
.floating-thought,
.heart-animation {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .breathing-circle-large,
    .floating-thought,
    .heart-animation,
    .modal-content {
        animation: none !important;
        transition: none !important;
    }
    
    .breathing-circle-large.inhale,
    .breathing-circle-large.exhale {
        transform: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .thought-input,
    .volume-slider {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .preset-btn,
    .sound-btn,
    .body-part {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .timer-display {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        color: #8bc34a;
    }
    
    .affirmation-display,
    .release-animation,
    .scan-instruction {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        color: #e2e8f0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .breathing-circle-large {
        border-width: 4px;
        border-color: #000;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus states for accessibility */
.btn:focus,
.tool-btn:focus,
.preset-btn:focus,
.sound-btn:focus,
.body-part:focus {
    outline: 2px solid #8bc34a;
    outline-offset: 2px;
}

/* Haptic feedback simulation */
.btn:active,
.tool-btn:active,
.preset-btn:active,
.sound-btn:active,
.body-part:active {
    transform: scale(0.98);
}
/* Guide Button Styles */
.guide-btn {
    background: none;
    border: none;
    color: #8bc34a;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.guide-btn:hover {
    color: #689f38;
}

.interactive-guide {
    cursor: pointer;
}

/* Guide Content Styles */
.guide-content {
    text-align: left;
    padding: 1rem 0;
    max-height: 70vh;
    overflow-y: auto;
}

.guide-content h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.guide-content h3 {
    color: #8bc34a;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.guide-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.guide-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #4a5568;
}

.guide-step {
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 4px solid #8bc34a;
}

.guide-step h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.wisdom-quote {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #8bc34a;
    font-style: italic;
    position: relative;
}

.wisdom-quote::before {
    content: '"';
    font-size: 3rem;
    color: #8bc34a;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
}

.wisdom-quote .author {
    text-align: right;
    margin-top: 1rem;
    font-weight: 500;
    color: #8bc34a;
    font-style: normal;
}

.practice-tip {
    background: rgba(139, 195, 74, 0.1);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.practice-tip .tip-icon {
    color: #8bc34a;
    margin-right: 0.5rem;
}

.back-to-guides {
    background: #8bc34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.back-to-guides:hover {
    background: #689f38;
    transform: translateY(-1px);
}
/* AdSense Ad Container Styles */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(139, 195, 74, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.hero-ad {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.features-ad {
    margin: 3rem auto;
    max-width: 1200px;
}

.sidebar-ad {
    margin: 2rem auto;
    max-width: 336px;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem 0;
        padding: 0.5rem;
    }
    
    .hero-ad {
        margin-top: 2rem;
    }
    
    .features-ad,
    .sidebar-ad {
        margin: 2rem auto;
    }
}

/* Ad placeholder styling (for development) */
.ad-placeholder {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px dashed #cbd5e0;
    color: #718096;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    font-style: italic;
}

/* Ensure ads don't interfere with user experience */
.adsbygoogle {
    display: block !important;
    text-align: center;
}

/* Content spacing adjustments for ads */
.features {
    position: relative;
}

.docs {
    position: relative;
}

/* Ad loading states */
.ad-container ins {
    background: transparent !important;
}

/* Ensure ads are visible but not intrusive */
.ad-container:empty {
    display: none;
}

/* AdSense responsive behavior */
@media (min-width: 1200px) {
    .sidebar-ad {
        margin: 3rem auto;
        max-width: 728px;
        width: 100%;
        position: static;
    }
    
    .docs {
        position: relative;
    }
}

/* Privacy-friendly ad styling */
.ad-container::before {
    content: "Advertisement";
    position: absolute;
    top: 0.25rem;
    left: 0.5rem;
    font-size: 0.7rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Accessibility improvements for ads */
.ad-container {
    role: "complementary";
    aria-label: "Advertisement";
}

/* Performance optimizations */
.adsbygoogle {
    will-change: auto;
}

/* Dark mode ad adjustments */
@media (prefers-color-scheme: dark) {
    .ad-container {
        background: rgba(45, 55, 72, 0.3);
        border-color: rgba(139, 195, 74, 0.2);
    }
    
    .hero-ad {
        background: rgba(45, 55, 72, 0.8);
    }
}
/* Additional Ad Placements */
.footer-ad {
    margin: 3rem auto 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(139, 195, 74, 0.2);
}

.benefits-ad {
    margin: 2rem auto;
    max-width: 728px;
}

.testimonials-ad {
    margin: 3rem auto;
    max-width: 1200px;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.benefits-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #8bc34a;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.benefit-card p {
    color: #718096;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: white;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
    font-family: 'Merriweather', serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 195, 74, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 2rem;
    color: #8bc34a;
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #8bc34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #2d3748;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    color: #8bc34a;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .benefits-section,
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .benefits-section h2,
    .testimonials-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .footer-ad,
    .benefits-ad,
    .testimonials-ad {
        margin: 1.5rem auto;
    }
}

/* Ad Spacing Improvements */
.ad-container + .ad-container {
    margin-top: 1rem;
}

/* Ensure proper spacing between content and ads */
.benefits-section .container,
.testimonials-section .container {
    position: relative;
}

/* Ad loading animation */
.ad-container ins {
    min-height: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Stop animation when ad loads */
.ad-container ins[data-ad-status="filled"] {
    animation: none;
    background: transparent;
}

/* Ad performance optimizations */
.ad-container {
    contain: layout style paint;
    will-change: auto;
}

/* Privacy-compliant ad labeling */
.ad-container::after {
    content: "";
    display: block;
    clear: both;
}

/* Ensure ads don't break layout */
.ad-container ins {
    max-width: 100%;
    overflow: hidden;
}

/* Dark mode ad adjustments */
@media (prefers-color-scheme: dark) {
    .footer-ad {
        background: rgba(45, 55, 72, 0.9);
        border-top-color: rgba(139, 195, 74, 0.3);
    }
    
    .benefits-ad,
    .testimonials-ad {
        background: rgba(45, 55, 72, 0.2);
    }
}
/* Community Links Styling */
.contact-method a {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.contact-method a:hover {
    color: #8bc34a !important;
    transform: translateX(5px);
}

.contact-method:hover {
    background: rgba(139, 195, 74, 0.05);
    border-radius: 8px;
    transform: translateY(-1px);
}

.contact-method {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Footer social links hover effects */
.footer-social a:hover {
    color: #8bc34a !important;
    transform: translateY(-2px) scale(1.1);
}

.footer-social a {
    transition: all 0.3s ease;
}

/* Add subtle external link indicator */
.contact-method a[target="_blank"]::after {
    content: "↗";
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.contact-method a[target="_blank"]:hover::after {
    opacity: 1;
}