/* HealthDock - Main Stylesheet */
/* ============================= */

:root {
    /* Brand Colors */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e7f3ff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', monospace;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-base: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

.display-4 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.display-5 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
}

.text-light-50:hover {
    color: rgba(255, 255, 255, 1);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-base);
}

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

.navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.svg') no-repeat center;
    opacity: 0.05;
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

.floating-stat {
    position: absolute;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-card {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.trust-badge i {
    font-size: 1.25rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.product-card.active {
    border: 2px solid var(--primary);
}

.product-card.coming-soon {
    opacity: 0.9;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card .subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

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

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Metrics Section */
.metric-card {
    padding: 1rem;
}

.metric-card h2 {
    color: white;
}

.metric-card p {
    font-size: 1.25rem;
    font-weight: 600;
}

.metric-card small {
    opacity: 0.9;
}

/* Tech Features */
.tech-features {
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    align-items: start;
}

/* Team Cards */
.team-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.team-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

/* Footer */
footer {
    padding-top: 3rem;
}

footer h5, footer h6 {
    color: white;
    margin-bottom: 1rem;
}

footer ul {
    padding: 0;
    margin: 0;
}

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

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.social-links a:hover {
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .product-card {
        margin-bottom: 2rem;
    }

    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .metric-card h2 {
        font-size: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}