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

:root {
    /* Traditional Chinese Medicine Color Palette */
    --tcm-red: #C8102E;
    --tcm-gold: #D4AF37;
    --tcm-jade: #00A86B;
    --tcm-ink: #1a1a1a;
    --tcm-paper: #F5F1E8;
    --tcm-bamboo: #4A7C59;
    
    /* Modern Accents */
    --primary: #8B4513;
    --primary-dark: #654321;
    --secondary: #D4AF37;
    --accent: #C8102E;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #fafafa;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-chinese: 'Noto Serif SC', serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-chinese);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.language-switch {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switch:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary) !important;
}

/* Sign In button in navigation */
.nav-links .btn-primary {
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.25);
}

.nav-links .btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.35);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('../images/tcm-pattern.svg'),
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(200, 16, 46, 0.1) 0%, transparent 50%);
    background-size: 200px 200px, 100% 100%, 100% 100%;
    opacity: 0.6;
}

/* Dynamic Light Effect */
.hero-light-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    animation: lightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes lightSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Water Ripple Effect */
.water-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 168, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(200, 16, 46, 0.1) 0%, transparent 60%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: waterWave 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes waterWave {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    25% {
        background-position: 50% 30%, 80% 70%, 30% 60%;
    }
    50% {
        background-position: 100% 50%, 50% 50%, 70% 40%;
    }
    75% {
        background-position: 50% 70%, 30% 30%, 40% 70%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.2;
}

.title-separator {
    margin: 0 0.5rem;
    color: var(--secondary);
    font-weight: 400;
}

.chinese-accent {
    font-family: var(--font-chinese);
    color: var(--tcm-red);
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* HIPAA Badge */
.hipaa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 168, 107, 0.1);
    border: 2px solid var(--tcm-jade);
    border-radius: 50px;
    color: var(--tcm-jade);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.hipaa-badge svg {
    width: 24px;
    height: 24px;
    stroke: var(--tcm-jade);
}

.hipaa-badge:hover {
    background: rgba(0, 168, 107, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.2);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary,
.btn-hero,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary,
.btn-hero {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover,
.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

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

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

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.feature-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Use Cases Section */
.use-cases {
    background: linear-gradient(to bottom, var(--bg-light), var(--white));
}

.use-cases-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.use-case {
    position: relative;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--secondary);
}

.use-case-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.use-case h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.use-case-content p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.use-case-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.use-case-content li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--text-light);
}

.use-case-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tcm-jade);
    font-weight: bold;
    font-size: 1.25rem;
}

.use-case-benefit {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(200, 16, 46, 0.1));
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}

.use-case-benefit strong {
    color: var(--primary);
}

/* Benefits Section */
.benefits {
    background: var(--primary);
    color: var(--white);
}

.benefits .section-title {
    color: var(--white);
}

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-stat {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--tcm-paper), var(--bg-light));
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Footer */
.footer {
    background: var(--tcm-ink);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

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

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

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hipaa-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .hipaa-badge svg {
        width: 20px;
        height: 20px;
    }

    .btn-primary,
    .btn-hero,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

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

    .use-case {
        padding: 2rem 1.5rem;
    }

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

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

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

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

    .section-title {
        font-size: 1.75rem;
    }

    .use-case-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

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

.hero-content,
.feature-card,
.use-case,
.benefit-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--secondary);
    color: var(--white);
}

::-moz-selection {
    background: var(--secondary);
    color: var(--white);
}

