/* Global Styles and Variables */
:root {
    --primary-color: #2C7BE5;
    --secondary-color: #5C6AC4;
    --accent-color: #45B649;
    --text-dark: #1A2B3C;         /* Dark blue for main headings */
    --text-body: #334155;         /* Slate gray for body text */
    --text-muted: #64748B;        /* Muted text for secondary content */
    --text-light: #94A3B8;        /* Light text for tertiary content */
    --text-white: #FFFFFF;        /* White text for dark backgrounds */
    --text-accent: #2563EB;       /* Accent blue for links */
    --text-success: #059669;      /* Green for success messages */
    --text-warning: #D97706;      /* Orange for warnings */
    --text-error: #DC2626;        /* Red for errors */
    --background-light: #F7FAFC;        
    --background-white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #2C7BE5 0%, #45B649 100%);
    --success-color: #00d97e;
    --warning-color: #f6c343;
    --danger-color: #e63757;
    --light-bg: #f8f9fa;
    --dark-bg: #1e2e42;
    --transition: all 0.3s ease;
    --header-title: #FFFFFF;      /* Pure white for main text */
    --header-nav: #F8FAFC;        /* Slightly off-white for nav items */
    --header-nav-hover: #E2E8F0;  /* Light gray for hover states */
    --header-bg: #1E3A8A;         /* Deep blue background */
    --header-accent: #8B5CF6;     /* Purple accent for special elements */
    --medical-red: #ef4444;
    --medical-blue: #3B82F6;
    --medical-green: #10B981;
    --medical-purple: #8B5CF6;
    --medical-dark: #0f172a;
    --medical-light: #f8fafc;
    --primary-blue: #2563eb;
    --secondary-blue: #3B82F6;
    --accent-green: #10B981;
    --background-light: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

/* Global Background Fix */
body {
    background: linear-gradient(45deg, #0f172a, #1e293b) fixed;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    margin: 0;
    padding: 2rem;
}

/* Remove transition properties */
body, * {
    transition: none !important;
}

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

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background: #ffffff !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--background-light);
    opacity: 1 !important;
    display: block !important;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* Navbar Styles */
.navbar {
    background: rgba(223, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f63ba8;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.nav-links a {
    color: #94a3b8;
    margin-left: 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.466);
}

/* Updated Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at 50% 40%, #0f172a 0%, #0b0f1a 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    line-height: 1;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.hero-title:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

.title-main {
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.title-accent {
    color: #3B82F6;
    text-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 1.5rem;
    margin: 1rem 0;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-description {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 2rem auto 0;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.6s forwards;
}

.hero-description p {
    margin: 0;
    text-shadow: 0 0 10px rgba(203, 213, 225, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Medical Team Section */
.medical-team{
    padding: 6rem 0;
    background: #f8fafc;
}

.medical-team h2 {
font-size: 2.4rem;
color: #0f172a;
margin-bottom: 3rem;
text-align: center;
font-weight: 750;
position: relative;
}

.medical-team h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
animation: underlinePulse 2s ease infinite;
}

@keyframes underlinePulse {
0%, 100% { width: 60px; }
50% { width: 100px; }
}

.team-member {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.team-member::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.03) 0%,
        rgba(16, 185, 129, 0.03) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member img {
    border-radius: 1rem;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%);
}

.team-member:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.member-info {
    position: relative;
    z-index: 1;
    padding: 1.5rem 0 0;
    transition: transform 0.4s ease;
}

.team-member:hover .member-info {
    transform: translateY(-8px);
}

.member-info h4 {
    color: #0f172a;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.team-member:hover h4 {
    color: #3B82F6;
}

.member-info p {
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.team-member:hover p {
    color: #475569;
}

/* Hover Effect Enhancement */
.team-member::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.team-member:hover::after {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.service-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

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

.service-card h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-body);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
}

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

/* Section Animations */
section {
    transform: translateY(20px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cards */
.card {
    border: none;
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    transform: 
        scale(0.95) 
        rotateX(5deg) 
        rotateY(5deg);
    transform-style: preserve-3d;
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
}

.card:hover {
    transform: 
        scale(1) 
        rotateX(0deg) 
        rotateY(0deg)
        translateZ(20px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.3),
        0 0 100px var(--accent);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255,255,255,0.1),
        transparent 40%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2C7BE5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Media Queries */
@media (max-width: 768px) {
    .medical-team {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .team-member {
        max-width: 250px;
        margin: 0 auto 20px;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Patient Care Section */
.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    height: 300px;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.metric-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Form Elements */
.form-control {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background: var(--background-light);
}

textarea.form-control {
    min-height: 120px;
}

/* Section Headers */
section h2 {
    color: var(--dark-bg);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
}

.footer-title {
    color: var(--text-white);
}

.footer p {
    color: var(--text-light);
}

.footer-links a {
    color: var(--text-light);
}

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

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

.diagnostic-tool, .card, .metric-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.medical-visualization {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.visualization-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.medical-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.annotation-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
}

.marker-dot {
    display: block;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(255,71,87,0.3);
}

.marker-label {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.annotation-marker:hover .marker-label {
    opacity: 1;
    transform: translateY(25px);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.patient-care-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.medical-image-container {
    display: none;
}

.medical-image-container.active {
    display: block;
}

.nav-btn {
    padding: 5px 15px;
    margin: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.results-list {
    list-style: none;
    padding: 0;
}

.result-item {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.monitoring-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    contain: content;
}

.patient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.patient-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
    overflow: hidden;
    margin: 20px;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.patient-card:hover {
    transform: translateY(-5px) translateZ(0);
}

.patient-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    contain: strict;
}

.vital-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    background: #f8f9fa;
    contain: layout;
}

.vital-item {
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    animation: textGlow 2s ease-in-out infinite;
}

.vital-item:hover {
    transform: scale(1.05) rotateZ(1deg);
    background: rgba(59, 130, 246, 0.1) !important;
}

.patient-info {
    padding: 15px;
    text-align: center;
}

.patient-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.patient-info p {
    margin: 0;
    color: #666;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 50%);
    z-index: 1000;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Stats grid in modal */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
    contain: layout;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* Basic animations */
.modal-open {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Add content-visibility for better performance */
@media screen and (min-width: 768px) {
    .patient-grid {
        content-visibility: auto;
        contain-intrinsic-size: 400px;
    }
}

/* Optimized icons using CSS instead of web fonts */
.vital-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.vital-icon.heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232ecc71' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.vital-icon.temp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232ecc71' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
}

.vital-icon.bp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232ecc71' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm7 13H5v-.23c0-.62.28-1.2.76-1.58C7.47 15.82 9.64 15 12 15s4.53.82 6.24 2.19c.48.38.76.97.76 1.58V19z'/%3E%3C/svg%3E");
}

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

    .hero-section {
        min-height: 70vh;
    }

    .team-member {
        margin-bottom: 30px;
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .service-card {
        margin-bottom: 25px;
    }

    .navbar-nav {
        padding: 15px 0;
    }

    .nav-link {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .team-member {
        max-width: 300px;
        margin: 0 auto 30px;
    }

    .service-card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .card {
        margin-bottom: 20px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 10px;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .nav-link::after {
        display: none;
    }
}

/* Responsive Images */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .team-member:hover,
    .card:hover,
    .btn:hover {
        transform: none;
    }

    .nav-link:hover::after {
        width: 0;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }

    .team-member {
        margin-bottom: 20px;
    }

    .section-padding {
        padding: 40px 0;
    }
}

/* High-DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-size: cover;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    .hero-section,
    .section-padding {
        padding: 20px 0;
    }

    .card,
    .team-member {
        break-inside: avoid;
    }
}

/* Ensure all main containers are visible */
.container {
    display: block;
    opacity: 1;
}

/* Reset any problematic animations that might cause initial hiding */
.fadeInUp {
    opacity: 1 !important;
}

/* Testimonial Section */
.testimonial-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Statistics Section */
.stats-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 16px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Links */
a {
    color: var(--text-accent);
    transition: color 0.3s ease;
}

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

/* Helper Text Classes */
.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--text-success) !important;
}

.text-warning {
    color: var(--text-warning) !important;
}

.text-error {
    color: var(--text-error) !important;
}

/* Small/Meta Text */
.small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Price Text */
.price {
    color: var(--text-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* List Items */
li {
    color: var(--text-body);
}

/* Breadcrumb */
.breadcrumb {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* Optional: Add a subtle gradient overlay */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0));
    pointer-events: none;
}

/* Enhanced Login Styles */
.login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
}

.medical-icon {
    margin-bottom: 1.5rem;
}

.login-title {
    color: #0f172a;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin: 1.5rem 0;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #3B82F6;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -10px;
    left: 0.8rem;
    font-size: 0.8rem;
    background: white;
    padding: 0 0.3rem;
    color: #3B82F6;
}

.login-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.security-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    justify-content: center;
}

/* Navbar Login Button */
.navbar .login-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .login-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.navbar .login-btn svg {
    width: 18px;
    height: 18px;
}

/* Shared Hover Effects */
.navbar .login-btn:hover,
.login-btn:hover {
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Animated Footer Styles */
.team-footer {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 3rem 1rem;
    overflow: hidden;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Increased footer height */
}

.footer-glows {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.1),
        rgba(16, 185, 129, 0.1),
        rgba(239, 68, 68, 0.1)
    );
    animation: gradientShift 8s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-content { 
    display: flex;
    
    align-items: center;
    text-align : center;
}

.team-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

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

.team-text {
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center ;
    justify-content: center;
}

.maverick-text {
    color: #3B82F6;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    position: relative;
    transition: all 0.3s ease;
}



.maverick-text:hover {
    color: #8B5CF6;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.maverick-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: all 0.3s ease;
}

.maverick-text:hover::after {
    width: 100%;
    left: 0;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.github-link:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    color: #3B82F6;
}

.github-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.github-link:hover .github-icon {
    transform: rotate(360deg);
}

.github-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 135deg,
        #3B82F6 180deg,
        transparent 225deg
    );
    animation: borderSpin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes borderSpin {
    100% { transform: rotate(360deg); }
}

.github-link:hover::before {
    opacity: 0.3;
}

.github-link::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 6px;
    z-index: -1;
}

/* Background Particles Animation */
.footer-glows::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(59, 130, 246, 0.1) 0%,
        transparent 70%);
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translate(-25%, -25%); }
    25% { transform: translate(25%, -25%); }
    50% { transform: translate(25%, 25%); }
    75% { transform: translate(-25%, 25%); }
    100% { transform: translate(-25%, -25%); }
}

/* Center Alignment Only */
.team-footer {
    display: grid;
    place-items: center;
    min-height: 200px;
}

.footer-content {
    text-align: center;
}
.github-link {
    margin: 0 auto;
}

.navbar .signup-btn {
    /* Size matching */
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    
    /* Positioning */
    margin-left: 1.5rem;
    order: 1; /* Ensures position after Analytics */
    
    /* Existing styles */
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .navbar .signup-btn {
        margin-left: 0.5rem;
        padding: 0.3rem 0.8rem;
    }
}

.navbar .logo {
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

.navbar .logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3B82F6;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.navbar .logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.navbar .logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.navbar .logo {
    animation: logoPulse 5s ease-in-out infinite;
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Remove specific column spans */
}

/* Remove ECG/vital specific styles */
.vital-signs,
.ecg-graph {
    display: none;
}

/* AI Analytics Styles */
.analytics-section {
    position: relative;
    z-index: 2; /* Brings section above potential overlapping elements */
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.section-title {
    color: #0f172a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3B82F6;
    padding-left: 1rem;
}

.analytics-description {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-title {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

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

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.1);
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-text p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.analytics-impact {
    margin-top: 2rem;
    padding: 2rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.impact-title {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.impact-text {
    color: #475569;
    line-height: 1.7;
}

/* Enhanced Analytics Styles */
.data-sources {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 2rem 0;
}

.source-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3B82F6;
}

.source-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.process-steps {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #3B82F6;
    color: white;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.use-cases {
    margin: 3rem 0;
}

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

.case-item {
    padding: 1.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.case-item:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

.security-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fee2e2;
    transition: all 0.2s ease;
}

.security-note:hover {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
    transform: translateX(5px);
}

/* If using in dashboard */
.monitoring-dashboard {
    overflow: visible; /* Instead of hidden */
}

.analytics-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

.analytics-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent);
    transition: left 0.6s;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-arrow {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.arrow-line {
    width: 20px;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.arrow-head {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: rotate(45deg);
    margin-left: -4px;
}

/* Hover effects */
.analytics-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
}

.analytics-button:hover::before {
    left: 100%;
}

.analytics-button:hover .arrow-line {
    width: 30px;
}

/* Active state */
.analytics-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Remove arrow-related styles for treatment button */
.treatment-button .arrow-icon {
    display: none; /* Hide the arrow */
}

/* If using a separate class */
.treatment-button-arrow {
    display: none !important;
}

/* Unified Page Header */
.main-header {
    padding: 1rem 1rem;
    background: rgba(18, 28, 51, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 30px rgba(30, 58, 138, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 40px;
}

/* Updated Minimalist Logo Styles */
/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    position: relative;
    z-index: 1000;
}

/* SVG Icon Container */
.logo-icon {
    width: 50px;
    height: 50px;
    overflow: visible;
}

/* Shield Element */
.logo-shield {
    transform-origin: center;
    animation: shieldFloat 3s ease-in-out infinite;
}

/* ECG Pulse Line */
.logo-pulse {
    transform-origin: left center;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: pulseFlow 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Text Element */
.logo-text {
    
    font-weight: 900;
    font-size: 2rem;
    color: #ffffff;
    transition: opacity 0.1s ease;
    letter-spacing: 0.001rem;
}

.glow-text {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    animation: text-glow 1.5s ease-in-out infinite alternate;
    text-shadow: 
        0 0 5px #3B82F6,
        0 0 10px #3B82F6,
        0 0 15px #3B82F6,
        0 0 20px #10B981;
}

@keyframes text-glow {
    from {
        text-shadow: 
            0 0 5px rgba(59,130,246,0.3),
            0 0 10px rgba(59,130,246,0.3),
            0 0 15px rgba(59,130,246,0.3);
    }
    to {
        text-shadow: 
            0 0 10px #3B82F6,
            0 0 20px #3B82F6,
            0 0 30px #3B82F6,
            0 0 40px #10B981;
    }
}

.logo:hover .logo-shield {
    animation: shieldFloat 1.2s ease-in-out infinite;
}
.logo:hover .logo-pulse {
    animation: pulseFlow 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.logo:hover .logo-text {
    color:hsla(187, 100%, 63%, 0.95)
}
@keyframes pulseDraw {
    0% { 
        stroke-dashoffset: 120; 
        stroke-width: 4px;
    }
    50% { 
        stroke-dashoffset: 0; 
        stroke-width: 5px;
    }
    100% { 
        stroke-dashoffset: -120; 
        stroke-width: 4px;
    }
}



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

.nav-link {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.7rem 1.3rem;
    border-radius: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid transparent;
}



.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.03);
    border-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-1.5px);
}

.nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

.nav-link svg {
    width: 19px;
    height: 19px;
    stroke-width: 2px;
}

/* Developers Page Styles */
.developers-main {
    padding: 4rem 2rem;
    background: linear-gradient(45deg, #f8fafc, #f0f9ff);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.image-shine {
    position: absolute;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(45deg) translateX(-200%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-200%); }
    100% { transform: rotate(45deg) translateX(300%); }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #3B82F6;
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-icon:hover::after {
    transform: scaleX(1);
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(59,130,246,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .card-glow {
    opacity: 1;
}

.expertise-list li {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.expertise-list li:hover {
    background: rgba(59,130,246,0.2);
    transform: translateX(10px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .title-word {
        font-size: 2rem;
        display: block;
        margin: 1rem 0;
    }
    
    .card-inner {
        height: 300px;
    }
}

/* Developers Page - Enhanced Styles */
.dev-hero {
    position: relative;
    min-height: 100vh;
    padding: 6rem 2rem;
    background: linear-gradient(45deg, #0f172a, #1e3a8a);
    overflow: hidden;
}

.dev-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="5" fill="%233B82F6" opacity="0.1"/></svg>');
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.dev-title {
    text-align: center;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.title-word {
    display: inline-block;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(59,130,246,0.4);
    transform-style: preserve-3d;
    animation: titleFloat 6s ease-in-out infinite;
    margin: 0 1rem;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-20px) rotateX(15deg); }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.image-shine {
    position: absolute;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(45deg) translateX(-200%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-200%); }
    100% { transform: rotate(45deg) translateX(300%); }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #3B82F6;
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-icon:hover::after {
    transform: scaleX(1);
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(59,130,246,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .card-glow {
    opacity: 1;
}

.expertise-list li {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.expertise-list li:hover {
    background: rgba(59,130,246,0.2);
    transform: translateX(10px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .title-word {
        font-size: 2rem;
        display: block;
        margin: 1rem 0;
    }
    
    .card-inner {
        height: 300px;
    }
}

/* Developer Roadmap */
.dev-roadmap {
    padding: 8rem 2rem;
    background: radial-gradient(circle at center, #0f172a, #1e293b);
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #3B82F6 30%, 
        #3B82F6 70%, 
        transparent 100%);
    transform: translateX(-50%);
}

.roadmap-item {
    position: relative;
    width: 50%;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-item:nth-child(even) {
    left: 50%;
}

.roadmap-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.node {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--accent);
}

.node-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
    100% { box-shadow: 0 0 0 20px rgba(255,107,107,0); }
}

.card {
    position: relative;
    background: var(--bg);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 0 4rem;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.card:hover {
    transform: 
        scale(1) 
        rotateX(0deg) 
        rotateY(0deg)
        translateZ(20px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.3),
        0 0 100px var(--accent);
}

.card-content {
    color: white;
    transform: translateZ(30px);
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 span {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tag {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tag:hover::after {
    transform: translateX(100%);
}

.stat-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 0.5rem 0;
    position: relative;
}

.stat-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width);
    background: var(--accent);
    border-radius: 4px;
    transition: 
        width 1s ease,
        background-color 0.3s ease;
}

.stat:hover .stat-bar::before {
    background-color: var(--accent);
    filter: brightness(1.2);
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Scroll Animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .roadmap-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
    }
    
    .node {
        left: 20px;
    }
    
    .card {
        margin: 0 0 0 2rem;
    }
}

.platform-heading {
    text-align: center;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.gradient-text {
    display: block;
    font-size: 4rem;
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(59,130,246,0.3);
    animation: floatHeading 4s ease-in-out infinite;
}

@keyframes floatHeading {
    0%, 100% { 
        transform: translateY(0) rotateX(0) scale(1);
    }
    50% { 
        transform: translateY(-20px) rotateX(15deg) scale(1.05);
        text-shadow: 0 0 50px rgba(59,130,246,0.5);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .platform-heading {
        margin-bottom: 2rem;
    }
}

/* Add fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.platform-heading {
    animation: fadeIn 1s ease-out forwards;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 2rem;
    background: linear-gradient(45deg, #f8fafc, #f0f9ff);
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

.status-bar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.real-time-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.alert-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.critical { background: linear-gradient(45deg, #ef4444, #f87171); }
.warning { background: linear-gradient(45deg, #f59e0b, #fbbf24); }

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

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.patient-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.patient-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.health-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress {
    stroke: #3B82F6;
    stroke-dasharray: 219.8;
    stroke-dashoffset: 219.8;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    from { stroke-dashoffset: 219.8; }
    to { stroke-dashoffset: calc(219.8 - (219.8 * var(--progress)) / 100); }
}

/* Interactive Elements */
.time-filter button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.time-filter button.active {
    background: #3B82F6;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .status-bar {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.auth-container {
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.2);
    transform: scale(0.8);
    opacity: 0;
    animation: modalIn 0.4s ease forwards;
}

@keyframes modalIn {
    to { transform: scale(1); opacity: 1; }
}

.input-group {
    position: relative;
    margin: 2rem 0;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid #94a3b8;
    background: transparent;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -1.2rem;
    left: 0;
    font-size: 0.8rem;
    color: #3B82F6;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: width 0.3s ease;
}

.input-group input:focus ~ .input-border {
    width: 100%;
}

/* Dashboard Hero */
.dashboard-hero {
    background: linear-gradient(45deg, #e0f2fe, #bae6fd);
    padding: 6rem 2rem 4rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 120%;
    height: 40%;
    background: rgba(255,255,255,0.1);
    transform: rotate(-3deg);
}

.hero-title {
    font-size: 3rem;
    color: #1e3a8a;
    text-align: center;
    animation: titleFloat 3s ease-in-out infinite;
}

/* Animations */
@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-submit {
    background: linear-gradient(45deg, #3B82F6, #2563eb);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
}

.submit-loader {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.auth-submit:active .submit-loader {
    left: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        width: 90%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* System Status Enhancements */
.health-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.metric {
    background: rgba(255,255,255,0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.metric-info {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.progress-ring span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #1e3a8a;
}

.system-status {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    background: rgba(255,255,255,0.9);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.status-item.maintenance .status-indicator {
    background: #f59e0b;
    animation: none;
}

/* Progress Animation */
@keyframes progress {
    0% { stroke-dashoffset: 219.8; }
    100% { stroke-dashoffset: calc(219.8 - (219.8 * var(--progress)) / 100); }
}

.progress {
    animation: progress 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* Mobile View */
@media (max-width: 768px) {
    .health-metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .system-status {
        flex-direction: column;
    }
}

/* 3D Animations */
.ai-visualization {
    position: relative;
    height: 400px;
    margin: 2rem 0;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.neuron-network {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #3B82F6 10%, transparent 40%);
    filter: blur(20px);
    animation: float3D 6s ease-in-out infinite;
    transform: translate3d(50%, 50%, 0);
}

@keyframes float3D {
    0%, 100% { transform: translate3d(50%, 50%, 0) rotate(0deg); }
    25% { transform: translate3d(60%, 40%, 50px) rotate(90deg); }
    50% { transform: translate3d(40%, 60%, -50px) rotate(180deg); }
    75% { transform: translate3d(60%, 60%, 50px) rotate(270deg); }
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(59,130,246,0.3);
    border-radius: 50%;
    animation: rotate3D 20s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotate3D {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Graph Fixes */
.graph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.graph-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    min-height: 300px;
}

.full-width {
    grid-column: 1 / -1;
}

canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Layout Fixes */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* AI System Redesign */
.system-overview {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
}

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

.metric-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.metric-visual {
    flex: 1;
    position: relative;
    min-height: 120px;
}

.activity-graph {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(59,130,246,0.1) 5px,
        rgba(59,130,246,0.1) 10px
    );
    animation: graphScroll 20s linear infinite;
}

@keyframes graphScroll {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.processing-cores {
    margin-top: 3rem;
    background: rgba(255,255,255,0.9);
    border-radius: 2rem;
    padding: 2rem;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.core-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.core-load {
    height: 4px;
    background: #3B82F6;
    position: relative;
}

.core-load::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 10px;
    height: 10px;
    background: #3B82F6;
    border-radius: 50%;
}

.network-layers {
    margin-top: 3rem;
    background: white;
    border-radius: 2rem;
    padding: 2rem;
}

.layer-visualization {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.layer {
    flex: 1;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.layer-connections {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #3B82F6;
    top: 50%;
    opacity: 0.2;
}

.activity-feed {
    margin-top: 3rem;
    background: white;
    border-radius: 2rem;
    padding: 2rem;
}

.feed-items {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.feed-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    transition: transform 0.2s ease;
}

.feed-item:hover {
    transform: translateX(10px);
}

/* Enhanced Diagnostics Dashboard */
.dashboard-container {
    padding: 2rem;
    background: linear-gradient(45deg, #f8fafc, #f0f9ff);
    min-height: 100vh;
}

.diagnostics-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
    margin-bottom: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B82F6;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #3B82F6;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

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

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

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

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
}

.stat-item.critical {
    background: linear-gradient(45deg, #ef4444, #f87171);
    color: white;
}

.demographics-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

.gender-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.anomaly-card {
    background: linear-gradient(45deg, #0f172a, #1e293b);
    color: white;
}

.anomaly-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.severity-indicator {
    width: 8px;
    border-radius: 4px;
}

.severity-indicator.high {
    background: #ef4444;
    animation: glowRed 1.5s infinite;
}

@keyframes glowRed {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.tools-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59,130,246,0.1), transparent);
}

.image-analysis {
    background: linear-gradient(45deg, #3B82F6, #2563eb);
    color: white;
}

.analysis-button {
    position: relative;
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.analysis-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59,130,246,0.3);
}

.scan-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 40%);
    animation: particlePulse 1.5s infinite;
}

@keyframes particlePulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0; }
}

.button-loader {
    position: absolute;
    display: none;
    gap: 0.5rem;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: loaderBounce 0.6s infinite alternate;
}

@keyframes loaderBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.analysis-button.scanning .button-text {
    visibility: hidden;
}

.analysis-button.scanning .button-loader {
    display: flex;
}

.analysis-button.scanning::after {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(#3B82F6 0% 25%, #8B5CF6 25% 100%);
    animation: scanProgress 3s linear forwards;
}

@keyframes scanProgress {
    from { --progress: 0%; }
    to { --progress: 100%; }
    from { mask: linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
          mask-composite: xor;
          -webkit-mask-composite: xor;
          padding: 3px; }
    to { mask: linear-gradient(#fff 0 0) content-box, 
              linear-gradient(#fff 0 0);
          mask-composite: xor;
          -webkit-mask-composite: xor;
          padding: 3px; }
}

/* Enhanced Sections */
.case-types {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.case-type {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.cardiology { background: #fee2e2; color: #dc2626; }
.neurology { background: #dbeafe; color: #1d4ed8; }
.oncology { background: #fce7f3; color: #be185d; }

.comparison-chart {
    margin-top: 2rem;
    height: 300px;
}

.live-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
}

.stat-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.scan-features {
    margin: 1.5rem 0;
    display: grid;
    gap: 0.8rem;
}

.scan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

/* Compact Sections */
.compact .analytics-card {
    padding: 1rem;
    border-radius: 1rem;
}

.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.mini-stat {
    text-align: center;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 0.8rem;
}

.mini-stat .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
}

.mini-stat .label {
    font-size: 0.8rem;
    color: #64748b;
}

.mini-chart {
    height: 150px !important;
    margin-top: 1rem;
}

/* Platform Overview */
.platform-overview {
    background: #f8fafc;
    padding: 3rem 2rem;
    margin-top: 2rem;
    border-radius: 2rem;
}

.platform-header {
    text-align: center;
    margin-bottom: 3rem;
}

.platform-tagline {
    color: #3B82F6;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.workflow-steps {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #3B82F6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-system {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 1024px) {
    .chatbot-system {
        grid-template-columns: 1fr 1fr;
    }
}

.chatbot-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
}

.chatbot-card.general {
    border-left: 5px solid #3B82F6;
}

.chatbot-card.mental {
    border-left: 5px solid #8b5cf6;
}

.chatbot-icon {
    font-size: 2.5rem;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.chatbot-card.general .chatbot-icon {
    background: #3B82F6;
}

.chatbot-card.mental .chatbot-icon {
    background: #8b5cf6;
}

.chatbot-features {
    margin: 1.5rem 0;
    display: grid;
    gap: 0.8rem;
}

.chatbot-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 0.8rem;
}

.clinical-validation {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 0.8rem;
    color: #1e3a8a;
}

/* Workflow Steps */
.workflow-steps {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3B82F6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.benefit {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
}

.tech-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
}

.tech-icon {
    font-size: 1.5rem;
}

/* Enhanced Medical Imaging Section */
.image-analysis {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #1e3a8a, #3B82F6);
    padding: 2rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.scan-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.05) 50%),
        linear-gradient(transparent 50%, rgba(255,255,255,0.05) 50%);
    background-size: 20px 20px;
    animation: scanGrid 40s linear infinite;
}

@keyframes scanGrid {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.scan-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.8), 
        transparent);
    animation: scanSweep 3s infinite linear;
}

@keyframes scanSweep {
    0% { transform: translateX(-50%) rotate(15deg); top: -10% }
    100% { transform: translateX(50%) rotate(15deg); top: 110% }
}

/* Enhanced Scan Button */
.analysis-button {
    position: relative;
    background: none;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1), 
        rgba(255,255,255,0.05));
    backdrop-filter: blur(5px);
    z-index: 1;
}

.scan-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(45deg, #60a5fa, #3B82F6);
    width: 0;
    transition: width 3s ease;
    z-index: 0;
}

.analysis-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59,130,246,0.4);
}

.analysis-button:hover .button-backdrop {
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.15), 
        rgba(255,255,255,0.1));
}

.analysis-button:active {
    transform: translateY(1px);
}

/* Scanning Animation */
.analysis-button.scanning {
    border-color: transparent;
}

.analysis-button.scanning .scan-progress {
    width: 100%;
}

.analysis-button.scanning .button-content {
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Scan Stats */
.scan-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 1rem;
    min-width: 100px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Unified Animation System */
.analytics-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.scan-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: 20px 20px;
    animation: scanGrid 40s linear infinite;
}

.clinical .scan-preview {
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(59,130,246,0.05) 50%),
        linear-gradient(transparent 50%, rgba(59,130,246,0.05) 50%);
}

.demographics .scan-preview {
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(16,185,129,0.05) 50%),
        linear-gradient(transparent 50%, rgba(16,185,129,0.05) 50%);
}

.anomaly .scan-preview {
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(239,68,68,0.05) 50%),
        linear-gradient(transparent 50%, rgba(239,68,68,0.05) 50%);
}

.scan-line {
    position: absolute;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--line-color), 
        transparent);
    animation: scanSweep 3s infinite linear;
    opacity: 0.3;
}

.clinical .scan-line { --line-color: rgba(59,130,246,0.8); }
.demographics .scan-line { --line-color: rgba(16,185,129,0.8); }
.anomaly .scan-line { --line-color: rgba(239,68,68,0.8); }

/* Section-Specific Enhancements */
.clinical {
    background: linear-gradient(45deg, #1e3a8a, #3B82F6);
    color: white;
}

.demographics {
    background: linear-gradient(45deg, #047857, #10b981);
    color: white;
}

.anomaly {
    background: linear-gradient(45deg, #7f1d1d, #ef4444);
    color: white;
}

/* Hover Effects */
.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats Animation */
.stat-value {
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.analytics-card:hover .stat-value::after {
    transform: scaleX(1);
}

/* Anomaly Alert Animation */
.anomaly-item {
    position: relative;
    overflow: hidden;
}

.anomaly-item::before {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent);
    animation: anomalyGlow 2s infinite;
}

@keyframes anomalyGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Demographics Chart Animation */
.demographics-chart {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

#demographicsChart {
    opacity: 0;
    transform: translateY(20px);
}

.chart-loaded #demographicsChart {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.legend-item {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.chart-loaded .legend-item {
    opacity: 1;
    transform: translateY(0);
}

.age-0-18 { background: #3B82F6; }
.age-19-35 { background: #10B981; }
.age-36-50 { background: #F59E0B; }
.age-51 { background: #8B5CF6; }

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Simple Animated Chart */
.simple-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 250px;
    margin: 2rem 0;
    padding: 0 1rem;
}

.chart-bar {
    width: 22%;
    background: rgba(255,255,255,0.2);
    border-radius: 8px 8px 0 0;
    position: relative;
    transform-origin: bottom;
    animation: barGrow 1s ease-out forwards;
    opacity: 0;
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.chart-bar::after {
    content: attr(data-percent) "%";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
}

.bar-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
}

/* Delay Animations */
.chart-bar:nth-child(1) { animation-delay: 0.2s; }
.chart-bar:nth-child(2) { animation-delay: 0.4s; }
.chart-bar:nth-child(3) { animation-delay: 0.6s; }
.chart-bar:nth-child(4) { animation-delay: 0.8s; }

/* Enhanced Background Animation */
.demographics .scan-preview {
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.05) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.05) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: scanMove 20s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    opacity: 0;
    animation: cardEnter 0.6s ease forwards;
}

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

.stat-icon {
    font-size: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 0.8rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Staggered Animation */
.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

/* Enhanced Header Hover Effects */
.nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: all 0.8s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

/* Active State Enhancement */
.nav-link.active {
    background: linear-gradient(135deg, #3B82F6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.nav-link.active:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Medical Professionals Section Hover Effects */
.doctor-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.2),
        0 4px 15px rgba(16, 185, 129, 0.15);
}

.doctor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.05) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}

.doctor-info {
    transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-info {
    transform: translateY(-10px);
}

.doctor-name {
    transition: letter-spacing 0.3s ease;
}

.doctor-card:hover .doctor-name {
    letter-spacing: 0.03em;
}

/* AI Diagnostic Tools Section */
#diagnostics {
    padding: 8rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

#diagnostics h2 {
    font-size: 2.8rem;
    color: #0f172a;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

#diagnostics h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3B82F6;
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

.diagnostic-tool {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.diagnostic-tool:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}

.diagnostic-tool::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%);
    transform: rotate(45deg);
    animation: toolShine 6s infinite linear;
}

@keyframes toolShine {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

.upload-section {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-section:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.03);
}

.custom-upload-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.custom-upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.custom-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.custom-upload-btn:hover::before {
    left: 100%;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 1.2rem;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.form-control:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Height Matching */
#symptomForm {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
    .diagnostic-tool {
        min-height: auto;
        padding: 2rem;
    }
}

/* Treatment Planning Section */
.treatment-section {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ai-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

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

.therapy-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.therapy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
}

.card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.therapy-card:hover .card-icon {
    transform: scale(1.1);
}

.time-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--background-light);
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.time-pill.morning {
    color: #d97706;
    background: rgba(249, 115, 22, 0.1);
}

.time-pill.evening {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
}

/* AI Analytics Section */
.analytics-section {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

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

.analytics-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-trend {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.metric-trend.up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.metric-trend.down {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.1);
}

.sparkline-chart {
    height: 100px;
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, rgba(59,130,246,0.05) 100%);
    border-radius: 0.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Hover Effects */
.therapy-card:hover .time-pill {
    transform: translateY(-2px);
}

.analytics-card:hover .sparkline-chart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, transparent 100%);
    animation: chartHover 1.5s infinite;
}

@keyframes chartHover {
    0% { opacity: 0; }
    50% { opacity: 0.2; }
    100% { opacity: 0; }
}

