/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.lang-select {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.lang-select:hover {
    border-color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

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

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

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

.btn-outline-white {
    color: var(--white);
    border-color: var(--white);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
}

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

.hero-description {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

.hero-stats {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
    margin-top: 16px;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 110px;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1a202c;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #4a5568;
    font-weight: 600;
    line-height: 1.3;
}

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

.hero-doctor-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    max-width: 400px;
    max-height: 500px;
    display: block;
}

.hero-image-placeholder {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
}

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

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.feature-link:hover {
    transform: translateX(4px);
}

/* Services Section */
.services {
    padding: 100px 0;
}

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

.service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 16px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-size: 48px;
    font-weight: 800;
    opacity: 0.3;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    margin-bottom: 24px;
    opacity: 0.95;
}

.service-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.service-link:hover {
    transform: translateX(8px);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.testimonial-rating {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.author-location {
    font-size: 14px;
    color: var(--text-light);
}

/* Download App Section */
.download {
    padding: 100px 0;
    background: var(--white);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.download-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

.download-icon {
    width: 24px;
    height: 24px;
    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: 14px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-large {
    font-size: 18px;
    font-weight: 700;
}

.download-note {
    font-size: 14px;
    color: var(--text-light);
}

.web-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.web-link:hover {
    text-decoration: underline;
}

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

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    animation: floatPhone 6s ease-in-out infinite;
}

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

.phone-frame {
    width: 100%;
    background: #1a202c;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px #2d3748,
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(102, 126, 234, 0.2);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #1a202c;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 32px;
    height: 640px;
    overflow: hidden;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #1a202c;
}

.status-time {
    margin-left: 60px;
}

.status-icons {
    display: flex;
    gap: 4px;
    font-size: 10px;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-icon {
    font-size: 20px;
}

/* Welcome Section */
.welcome-section {
    padding: 8px 20px 16px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.welcome-subtitle {
    font-size: 13px;
    color: #718096;
}

/* Search Bar */
.search-bar {
    margin: 0 20px 20px;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-icon {
    font-size: 16px;
}

.search-text {
    font-size: 13px;
    color: #a0aec0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 20px 20px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.action-label {
    font-size: 10px;
    font-weight: 600;
    color: #2d3748;
}

.action-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-primary .action-label {
    color: white;
}

.action-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.action-secondary .action-label {
    color: white;
}

.action-accent {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.action-accent .action-label {
    color: white;
}

.action-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.action-info .action-label {
    color: white;
}

/* Appointment Card */
.appointment-card {
    margin: 0 20px 20px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.appointment-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
}

.appointment-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.appointment-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2px;
}

.doctor-specialty {
    font-size: 11px;
    color: #718096;
}

.appointment-time {
    text-align: right;
}

.time {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 2px;
}

.date {
    font-size: 10px;
    color: #718096;
}

.appointment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-call,
.btn-video {
    padding: 8px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-call {
    background: #f7fafc;
    color: #2d3748;
}

.btn-video {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-call:active,
.btn-video:active {
    transform: scale(0.95);
}

/* Health Stats */
.health-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px 80px;
}

.stat-item {
    background: white;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 12px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 9px;
    color: #718096;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 12px 8px 20px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.nav-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 10px;
    color: #718096;
    font-weight: 500;
}

.nav-active .nav-label {
    color: #667eea;
    font-weight: 700;
}

/* Floating Features */
.floating-feature {
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.feature-1 {
    top: 10%;
    right: -120px;
    animation-delay: 0s;
}

.feature-2 {
    top: 40%;
    left: -120px;
    animation-delay: 1.3s;
}

.feature-3 {
    bottom: 15%;
    right: -120px;
    animation-delay: 2.6s;
}

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

.feature-badge {
    background: white;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.badge-icon {
    font-size: 18px;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #1a202c;
    color: #cbd5e0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    color: #a0aec0;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

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

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 10px var(--shadow);
        transition: left 0.3s ease;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .download-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .download-image {
        order: -1;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .floating-feature {
        display: none;
    }

    .download-buttons {
        flex-direction: column;
    }

    .store-button {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .nav-actions .btn-secondary {
        display: none;
    }
}

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

.hero-content,
.feature-card,
.service-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}
