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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.logo h1 {
    color: #4a90e2;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4a90e2;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

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

/* Meditation Container */
.meditation-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Falling Circles Background */
.falling-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 6;
}

.falling-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.6), rgba(255, 235, 59, 0.6));
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    animation: fallToTaiChi linear infinite;
}

.falling-circle:nth-child(1) {
    width: 9px;
    height: 9px;
    left: 48.4%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.falling-circle:nth-child(2) {
    width: 11px;
    height: 11px;
    left: 48.4%;
    animation-duration: 7s;
    animation-delay: -2s;
}

.falling-circle:nth-child(3) {
    width: 10px;
    height: 10px;
    left: 48.4%;
    animation-duration: 8s;
    animation-delay: -4s;
}

@keyframes fallToTaiChi {
    0% {
        top: -30px;
        opacity: 0;
        transform: translateX(0px) scale(1);
        box-shadow: 0 0 0 rgba(255, 193, 7, 0);
    }
    15% {
        opacity: 1;
    }
    60% {
        top: 235px;
        opacity: 1;
        transform: translateX(0px) scale(1);
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
    }
    65% {
        top: 235px;
        opacity: 1;
        transform: translateX(0px) scale(1.2);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
    70% {
        top: 235px;
        opacity: 1;
        transform: translateX(0px) scale(1.4);
        box-shadow: 0 0 30px rgba(255, 193, 7, 1);
    }
    85% {
        top: 235px;
        opacity: 0.8;
        transform: translateX(0px) scale(1.6);
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
    }
    100% {
        top: 235px;
        opacity: 0;
        transform: translateX(0px) scale(2);
        box-shadow: 0 0 50px rgba(255, 193, 7, 0);
    }
}

/* Breathing System */
.breathing-system {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ripple Circles */
.ripple-circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: ripple 4s ease-in-out infinite;
}

.ripple-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.ripple-2 {
    width: 250px;
    height: 250px;
    animation-delay: 0.5s;
}

.ripple-3 {
    width: 300px;
    height: 300px;
    animation-delay: 1s;
}

@keyframes ripple {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Main Breathing Circle */
.main-breathing-circle {
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, #4a90e2, #667eea);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    animation: mainBreathe 4s ease-in-out infinite;
    position: relative;
    z-index: 4;
}

@keyframes mainBreathe {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(74, 144, 226, 0.8);
    }
}

/* Tai Chi Icon */
.taichi-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.taichi-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
}

@keyframes taichiRotate {
    0% { 
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.05);
    }
    50% { 
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
    }
    100% { 
        transform: rotate(360deg) scale(1);
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float linear infinite;
}

.particle:nth-child(1) {
    left: 48%;
    top: 0%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 50%;
    top: 0%;
    animation-duration: 8s;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    left: 52%;
    top: 0%;
    animation-duration: 7s;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    left: 49%;
    top: 0%;
    animation-duration: 9s;
    animation-delay: -1s;
}

.particle:nth-child(5) {
    left: 51%;
    top: 0%;
    animation-duration: 5s;
    animation-delay: -3s;
}

@keyframes float {
    0% {
        transform: translateY(-30px) translateX(0px);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.8;
        transform: translateY(350px) translateX(0px);
    }
    100% {
        transform: translateY(400px) translateX(0px);
        opacity: 0;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.benefit-item {
    padding: 2rem;
    background: white;
    border-left: 4px solid #4a90e2;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

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

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4a90e2 0%, #667eea 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: block;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    height: 60px;
    width: auto;
}

.version-info {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

.footer-logo h3 {
    margin: 0;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a90e2;
}

.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* Legal Pages Styles */
.legal-page {
    padding: 6rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.legal-page section {
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1.8rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-page h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.legal-page h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.legal-page ul, .legal-page ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.legal-page a {
    color: #4a90e2;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

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

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

    .hero-content p {
        font-size: 1.1rem;
    }

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

    .meditation-container {
        width: 300px;
        height: 300px;
    }

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

    .taichi-icon {
        width: 35px;
        height: 35px;
        bottom: 20px;
    }
    
    .falling-circle {
        animation: fallToTaiChiMobile linear infinite;
    }
    
    @keyframes fallToTaiChiMobile {
        0% {
            top: -30px;
            opacity: 0;
            transform: translateX(0px) scale(1);
            box-shadow: 0 0 0 rgba(255, 193, 7, 0);
        }
        15% {
            opacity: 1;
        }
        60% {
            top: 175px;
            opacity: 1;
            transform: translateX(0px) scale(1);
            box-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
        }
        65% {
            top: 175px;
            opacity: 1;
            transform: translateX(0px) scale(1.2);
            box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
        }
        70% {
            top: 175px;
            opacity: 1;
            transform: translateX(0px) scale(1.4);
            box-shadow: 0 0 30px rgba(255, 193, 7, 1);
        }
        85% {
            top: 175px;
            opacity: 0.8;
            transform: translateX(0px) scale(1.6);
            box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
        }
        100% {
            top: 175px;
            opacity: 0;
            transform: translateX(0px) scale(2);
            box-shadow: 0 0 50px rgba(255, 193, 7, 0);
        }
    }

    .ripple-1 {
        width: 150px;
        height: 150px;
    }

    .ripple-2 {
        width: 180px;
        height: 180px;
    }

    .ripple-3 {
        width: 220px;
        height: 220px;
    }

    .features h2, .benefits h2, .download h2 {
        font-size: 2rem;
    }

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

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        display: none;
    }

    .legal-page {
        padding: 5rem 15px 3rem;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-page h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .feature-card, .benefit-item {
        padding: 1.5rem;
    }

    .meditation-container {
        width: 250px;
        height: 250px;
    }

    .main-breathing-circle {
        width: 100px;
        height: 100px;
    }

    .taichi-icon {
        width: 25px;
        height: 25px;
        bottom: 15px;
    }
    
    .falling-circle {
        animation: fallToTaiChiSmall linear infinite;
    }
    
    @keyframes fallToTaiChiSmall {
        0% {
            top: -30px;
            opacity: 0;
            transform: translateX(0px) scale(1);
            box-shadow: 0 0 0 rgba(255, 193, 7, 0);
        }
        15% {
            opacity: 1;
        }
        60% {
            top: 145px;
            opacity: 1;
            transform: translateX(0px) scale(1);
            box-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
        }
        65% {
            top: 145px;
            opacity: 1;
            transform: translateX(0px) scale(1.2);
            box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
        }
        70% {
            top: 145px;
            opacity: 1;
            transform: translateX(0px) scale(1.4);
            box-shadow: 0 0 30px rgba(255, 193, 7, 1);
        }
        85% {
            top: 145px;
            opacity: 0.8;
            transform: translateX(0px) scale(1.6);
            box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
        }
        100% {
            top: 145px;
            opacity: 0;
            transform: translateX(0px) scale(2);
            box-shadow: 0 0 50px rgba(255, 193, 7, 0);
        }
    }

    .ripple-1 {
        width: 120px;
        height: 120px;
    }

    .ripple-2 {
        width: 140px;
        height: 140px;
    }

    .ripple-3 {
        width: 160px;
        height: 160px;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}