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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1F2A44;
    overflow-x: hidden;
    background: linear-gradient(180deg, 
        #FFFFFF 0%,
        #0f172a 15%,
        #1e293b 25%,
        #f7fafc 35%,
        #FFFFFF 45%,
        #f8fafc 55%,
        #F5F7FA 65%,
        #FFFFFF 75%,
        #f8fafc 85%,
        #1F2A44 95%,
        #1F2A44 100%
    );
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease, transform 0.3s ease-in-out;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
    height: 110px;
    border-radius: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.hidden {
    transform: translate(-50%, -100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 110px; /* Match navbar height */
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F4B400;
}

.nav-logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-logo .logo-image {
    height: 300px; /* Increased to 3x bigger (from 100px) */
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    max-width: 1050px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #1F2A44;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #F4B400;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F4B400;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1F2A44 !important;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section Particle Animation and Glass Effect */
.hero {
    position: relative;
    overflow: hidden;
    background: transparent;
}
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}
.hero-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-radius: 0;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 3;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: white;
}

.hero-background {
    display: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(0, 0, 255, 0.4) 0%, transparent 40%);
    z-index: -1;
    animation: ambulanceLights 2s ease-in-out infinite;
}



.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: -1;
    animation: glassEffect 3s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    color: #1F2A44;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, #F4B400, #E6A800);
    color: #1F2A44;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(244, 180, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 180, 0, 0.4);
    background: linear-gradient(45deg, #E6A800, #F4B400);
}



.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #1F2A44;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Section Styles - Single flowing section */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    margin: 0;
    border-radius: 0;
}

/* Remove all section separations and create single flow */
section:not(.hero):not(.footer) {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

section:not(.hero):not(.footer):last-of-type {
    border-radius: 0;
    margin-bottom: 0;
}

/* Remove gradient overlays */
section::before {
    display: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1F2A44;
    position: relative;
    z-index: 4;
}

.problem .section-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.solution .section-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 3.2rem;
}

/* Problem Section - Part of single flow */
.problem {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1.0) 0%,
        rgba(255, 255, 255, 0.7) 20%,
        rgba(255, 255, 255, 0.3) 40%,
        transparent 60%
    );
    padding: 120px 0 140px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    z-index: 5;
}

.problem::after {
    display: none;
}

.problem-showcase {
    position: relative;
    z-index: 2;
}

.problem-showcase-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.problem-central-image {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.problem-central-image.animate-in {
    opacity: 1;
    transform: scale(1);
}

.problem-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.2));
}

.problem-item {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 280px;
    z-index: 3;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: floatCard 8s ease-in-out infinite;
}

.problem-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: slideInCard 0.8s ease-out forwards, floatCard 8s ease-in-out infinite 0.8s;
}

.problem-top-left {
    animation-delay: 0s;
    --slide-delay: 0s;
}

.problem-top-right {
    animation-delay: 2s;
    --slide-delay: 0.2s;
}

.problem-bottom-left {
    animation-delay: 4s;
    --slide-delay: 0.4s;
}

.problem-bottom-right {
    animation-delay: 6s;
    --slide-delay: 0.6s;
}

.problem-top-left {
    top: 5%;
    left: 2%;
    --rotation: -2deg;
}

.problem-top-right {
    top: 8%;
    right: 2%;
    --rotation: 3deg;
}

.problem-bottom-left {
    bottom: 5%;
    left: 2%;
    --rotation: -1deg;
}

.problem-bottom-right {
    bottom: 8%;
    right: 2%;
    --rotation: 2deg;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.problem-item:hover::before {
    left: 100%;
}

.problem-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.problem-indicator {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.problem-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.problem-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    height: 2px;
    border-radius: 1px;
    z-index: 1;
    animation: squiggle 3s ease-in-out infinite;
}

.line-top-left {
    top: 45%;
    right: -120px;
    width: 140px;
    transform: rotate(-20deg);
}

.line-top-right {
    top: 55%;
    left: -115px;
    width: 135px;
    transform: rotate(18deg);
}

.line-bottom-left {
    bottom: 45%;
    right: -125px;
    width: 145px;
    transform: rotate(15deg);
}

.line-bottom-right {
    bottom: 55%;
    left: -120px;
    width: 140px;
    transform: rotate(-18deg);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes squiggle {
    0%, 100% { 
        transform: rotate(var(--rotation)) scaleY(1);
        opacity: 0.7;
    }
    50% { 
        transform: rotate(calc(var(--rotation) + 5deg)) scaleY(1.2);
        opacity: 1;
    }
}

@keyframes slideInCard {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotate(var(--rotation, 0deg));
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(var(--rotation, 0deg));
    }
}

@keyframes floatCard {
    0%, 100% { 
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    25% { 
        transform: translateY(-8px) rotate(calc(var(--rotation, 0deg) + 1deg));
    }
    50% { 
        transform: translateY(-4px) rotate(var(--rotation, 0deg));
    }
    75% { 
        transform: translateY(-12px) rotate(calc(var(--rotation, 0deg) - 1deg));
    }
}

/* Solution Section - Part of single flow */
.solution {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 80px 0;
    position: relative;
    z-index: 3;
}

.solution::before {
    display: none;
}

.solution-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.solution-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(31, 42, 68, 0.2);
    transition: transform 0.3s ease;
}

.phone-image:hover {
    transform: translateY(-10px);
}

.solution-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #F5F7FA;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.solution-item:hover {
    background: #FFFFFF;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #F4B400, #E6A800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F2A44;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.solution-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F2A44;
}

.solution-content p {
    color: #5A6E8C;
}

/* Features Section - Part of single flow */
.features {
    background: transparent;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    z-index: 3;
}

.features::after {
    display: none;
}

/* Binary Tree Structure */
.binary-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 0;
}

.tree-level {
    display: flex;
    justify-content: center;
    gap: 8rem;
    width: 100%;
    position: relative;
    margin-bottom: 0.5rem;
}

.tree-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
}

.branch-line {
    position: absolute;
    top: -2.5rem;
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    opacity: 0.5;
    z-index: -5;
}

.tree-branch.left-branch .branch-line {
    transform: rotate(-35deg);
    transform-origin: top center;
}

.tree-branch.right-branch .branch-line {
    transform: rotate(35deg);
    transform-origin: top center;
}

.tree-node {
    perspective: 1000px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: transparent;
}

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

.root-node {
    width: 300px;
    height: 250px;
    margin-bottom: 0.5rem;
}

.root-node .flip-card-front {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.tree-node:not(.root-node) {
    width: 200px;
    height: 180px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.tree-node.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    z-index: 2;
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.flip-card-front:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.flip-card-back {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    position: relative;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.root-node .feature-icon-large {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

.flip-card-front i {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.flip-card-front span {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.root-node .flip-card-front h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.root-node .flip-card-front p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #64748b;
}

.flip-card-back h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
}

.flip-card-back p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
}

.flip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.flip-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.flip-close i {
    font-size: 0.7rem;
    color: white;
}

.features-hint {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.features-hint:hover {
    opacity: 1;
}

.features-hint p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.features-hint i {
    font-size: 0.8rem;
    color: #3b82f6;
    animation: pulse 2s infinite;
}

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

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

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

.binary-tree {
    animation: treeGrow 1s ease-out;
}

.tree-level {
    animation: treeGrow 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.tree-level.level-2 {
    animation-delay: 0.6s;
}

.tree-level.level-3 {
    animation-delay: 0.9s;
}

.branch-line {
    animation: branchPulse 3s ease-in-out infinite;
}

/* EMR System Section - Part of single flow */
.emr-system {
    background: transparent;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    z-index: 2;
}

.emr-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.emr-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.emr-illustration svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(31, 42, 68, 0.1));
    transition: transform 0.3s ease;
}

.emr-illustration svg:hover {
    transform: scale(1.05);
}

.emr-content {
    padding: 20px;
}

.emr-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2A44;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.emr-description {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.emr-toggle-btn {
    background: linear-gradient(45deg, #F4B400, #E6A800);
    color: #1F2A44;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
    margin-bottom: 1.5rem;
}

.emr-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 180, 0, 0.4);
    background: linear-gradient(45deg, #E6A800, #F4B400);
}

.emr-toggle-btn i {
    font-size: 0.9rem;
}

.sample-records {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
    border: 1px solid rgba(31, 42, 68, 0.05);
    animation: slideDown 0.4s ease-out;
    margin-top: 1rem;
}

.records-table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.records-table th {
    background: #F4B400;
    color: #1F2A44;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #E6A800;
}

.records-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E1E5EA;
    color: #4A5568;
    font-size: 0.9rem;
}

.records-table tr:last-child td {
    border-bottom: none;
}

.records-table tr:hover {
    background-color: #F8F9FA;
    transition: background-color 0.2s ease;
}

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

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

/* Admin Dashboard Section - Part of single flow */
.admin-dashboard {
    background: transparent;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    z-index: 2;
}

.admin-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.admin-content {
    padding: 20px;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2A44;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.admin-description {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.admin-toggle-btn {
    background: linear-gradient(45deg, #F4B400, #E6A800);
    color: #1F2A44;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
    margin-bottom: 1.5rem;
}

.admin-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 180, 0, 0.4);
    background: linear-gradient(45deg, #E6A800, #F4B400);
}

.admin-toggle-btn i {
    font-size: 0.9rem;
}

.dashboard-features {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
    border: 1px solid rgba(31, 42, 68, 0.05);
    animation: slideDown 0.4s ease-out;
    margin-top: 1rem;
}

.features-grid-admin {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item-admin {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 42, 68, 0.05);
}

.feature-item-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 42, 68, 0.1);
    background: white;
}

.feature-icon-admin {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #F4B400, #E6A800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #1F2A44;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
}

.feature-item-admin h4 {
    color: #1F2A44;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item-admin p {
    color: #4A5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.admin-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.admin-illustration svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(31, 42, 68, 0.1));
    transition: transform 0.3s ease;
}

.admin-illustration svg:hover {
    transform: scale(1.05);
}

/* Animated Graph Styles */
.animated-graph-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 1rem;
    border: 1px solid rgba(31, 42, 68, 0.05);
}

.graph-title {
    color: #1F2A44;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.graph-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.animated-graph {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(31, 42, 68, 0.1));
}

/* Grid Lines Animation */
.grid-line {
    opacity: 0;
    animation: fadeInGrid 0.5s ease-out forwards;
}

.grid-line:nth-child(1) { animation-delay: 0.1s; }
.grid-line:nth-child(2) { animation-delay: 0.2s; }
.grid-line:nth-child(3) { animation-delay: 0.3s; }
.grid-line:nth-child(4) { animation-delay: 0.4s; }
.grid-line:nth-child(5) { animation-delay: 0.5s; }

/* Bar Chart Animation */
.bar {
    transform-origin: bottom;
    animation: growBar 1s ease-out forwards;
    height: 0 !important;
}

.bar-1 { animation-delay: 0.6s; }
.bar-2 { animation-delay: 0.7s; }
.bar-3 { animation-delay: 0.8s; }
.bar-4 { animation-delay: 0.9s; }
.bar-5 { animation-delay: 1.0s; }
.bar-6 { animation-delay: 1.1s; }

/* Line Graph Animation */
.line-graph {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.5s ease-out forwards;
    animation-delay: 1.2s;
}

/* Data Points Animation */
.data-point {
    opacity: 0;
    animation: fadeInPoint 0.3s ease-out forwards;
}

.point-1 { animation-delay: 1.4s; }
.point-2 { animation-delay: 1.5s; }
.point-3 { animation-delay: 1.6s; }
.point-4 { animation-delay: 1.7s; }
.point-5 { animation-delay: 1.8s; }
.point-6 { animation-delay: 1.9s; }

/* Graph Animations */
@keyframes fadeInGrid {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes growBar {
    from {
        height: 0;
    }
    to {
        height: var(--bar-height);
    }
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInPoint {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Update line graph path with actual data points */
.animated-graph .line-graph {
    d: path("M 85 110 L 135 90 L 185 125 L 235 55 L 285 100 L 335 85");
}

/* Use Cases Section - Part of single flow */
.use-cases {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 80px 0;
    z-index: 2;
}

.use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/Nature_Image.png') center center/cover;
    filter: blur(6px);
    opacity: 0.25;
    z-index: -1;
}

.use-cases::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    z-index: 3;
}

.use-cases .container {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.use-cases-content-wrapper {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-top: 2rem;
}

.use-cases-testimonials {
    flex: 1;
    max-width: 550px;
}

.use-cases-image {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}



.app-interface-image {
    max-width: 130%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    border-radius: 28px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.12));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 3rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-interface-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

.app-interface-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 80%, 
        rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

.app-interface-image:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
}

.iphone-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.iphone-image:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
}

.slideshow-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.slideshow-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, 
        rgba(31, 42, 68, 0.95) 0%, 
        rgba(90, 110, 140, 0.9) 100%);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slideshow-wrapper:active {
    cursor: grabbing;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #1F2A44 0%, #5A6E8C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    min-width: 0;
}

.slide.active {
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide.next {
    transform: translateX(100%);
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.slide-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, 
        rgba(244, 180, 0, 0.25) 0%, 
        rgba(244, 180, 0, 0.35) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    border: 1px solid rgba(244, 180, 0, 0.2);
    box-shadow: 
        0 8px 25px rgba(244, 180, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slide-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.dot.active {
    background: linear-gradient(135deg, #F4B400 0%, #FFD700 100%);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.4);
    border: 1px solid rgba(244, 180, 0, 0.3);
}

/* Market Section - Part of single flow */
.market {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

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

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 0.3;
}

.stat-card > * {
    position: relative;
    z-index: 2;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card-telehealth::before {
    background-image: url('images/Stocks.jpg');
}

.stat-card-insurance::before {
    background-image: url('images/Insurance.png');
}

.stat-card-ai::before {
    background-image: url('images/AI.png');
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #F4B400, #E6A800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1F2A44;
    font-size: 2rem;
}

.stat-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2A44;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2A44;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: #5A6E8C;
    font-size: 1rem;
}

/* Comparison Section - Part of single flow */
.comparison {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.table-container {
    overflow-x: auto;
    margin-top: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #F5F7FA;
    font-weight: 600;
    color: #1F2A44;
    font-size: 1.1rem;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #1F2A44;
}

.comparison-table i.fa-check {
    color: #F4B400;
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: #5A6E8C;
    font-size: 1.2rem;
}

.comparison-table i.fa-minus {
    color: #5A6E8C;
    font-size: 1.2rem;
}

/* Business Section - Part of single flow */
.business {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

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

.business-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.business-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #F4B400, #E6A800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1F2A44;
    font-size: 2rem;
}

.business-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2A44;
}

.business-card p {
    color: #5A6E8C;
    line-height: 1.6;
}

/* CTA Section - Part of single flow */
.cta-section {
    background: transparent;
    color: white;
    text-align: center;
    border-radius: 0;
    margin: 0;
    padding: 180px 0 120px 0;
    position: relative;
    z-index: 10;
    box-shadow: none;
}

/* Footer - Part of single flow */
.footer {
    background: transparent;
    color: white;
    padding: 40px 0 2rem;
    position: relative;
    z-index: 10;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 8px;
    color: #F4B400;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #F4B400;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #5A6E8C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #F4B400;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #5A6E8C;
    color: #bdc3c7;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes ambulanceLights {
    0%, 100% {
        background: 
            radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.6) 0%, transparent 40%),
            radial-gradient(circle at 70% 50%, rgba(0, 0, 255, 0.2) 0%, transparent 40%);
    }
    25% {
        background: 
            radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 70% 50%, rgba(0, 0, 255, 0.6) 0%, transparent 40%);
    }
    50% {
        background: 
            radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.4) 0%, transparent 40%),
            radial-gradient(circle at 70% 50%, rgba(0, 0, 255, 0.4) 0%, transparent 40%);
    }
    75% {
        background: 
            radial-gradient(circle at 30% 50%, rgba(255, 0, 0, 0.8) 0%, transparent 40%),
            radial-gradient(circle at 70% 50%, rgba(0, 0, 255, 0.1) 0%, transparent 40%);
    }
}

@keyframes glassEffect {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0px) translateY(0px);
    }
    25% {
        opacity: 0.5;
        transform: translateX(-2px) translateY(-1px);
    }
    50% {
        opacity: 0.4;
        transform: translateX(1px) translateY(-2px);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-1px) translateY(1px);
    }
}

.features-showcase {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .hamburger span {
        background: #1F2A44 !important;
    }

    .nav-menu {
        position: absolute;
        top: 110px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 0;
        border-radius: 24px;
        max-height: 900px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
    }
    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        padding: 1.5rem 0 2rem 0;
    }
    .nav-menu a {
        color: #1F2A44 !important;
        padding: 1rem 0;
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }
    


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

    .solution-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solution-image {
        order: 2;
    }
    
    .solution-list {
        order: 1;
    }
    
    .solution-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .use-cases-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .use-cases-testimonials {
        max-width: 100%;
        padding: 0 10px;
        min-width: 280px;
        width: 100%;
    }

    .use-cases-image {
        order: -1;
    }

    .slide-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 auto 1.2rem;
    }

    .app-interface-image {
        max-width: 110%;
        max-height: 350px;
        margin-left: 1rem;
    }

    .iphone-image {
        max-height: 300px;
    }

    .slideshow-wrapper {
        height: 400px;
        margin: 0 10px;
        min-width: 280px;
        width: calc(100% - 20px);
    }

    .slide-content {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .slide-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .slide-content p {
        font-size: 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
        text-align: center;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .emr-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .emr-title {
        font-size: 2rem;
    }
    
    .emr-illustration svg {
        max-width: 300px;
    }
    
    .records-table {
        font-size: 0.8rem;
    }
    
    .records-table th,
    .records-table td {
        padding: 8px 12px;
    }

    .admin-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .admin-title {
        font-size: 2rem;
    }
    
    .admin-illustration svg {
        max-width: 300px;
    }
    
    .binary-tree {
        gap: 2rem;
    }

    .tree-level {
        gap: 3rem;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .tree-branch {
        margin-bottom: 1rem;
    }

    .branch-line {
        display: none;
    }

    .root-node {
        width: 250px;
        height: 200px;
    }

    .tree-node:not(.root-node) {
        width: 180px;
        height: 160px;
    }

    .root-node .feature-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .flip-card-front i {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .root-node .flip-card-front h3 {
        font-size: 1.2rem;
    }

    .root-node .flip-card-front p {
        font-size: 0.8rem;
    }

    .flip-card-back h4 {
        font-size: 1rem;
    }

    .flip-card-back p {
        font-size: 0.8rem;
    }

    .features-hint {
        margin-top: 1.5rem;
    }

    .features-hint p {
        font-size: 0.8rem;
    }
    
    .features-grid-admin {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .animated-graph {
        max-width: 350px;
    }
    
    .graph-title {
        font-size: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .problem-grid,
    .market-stats,
    .business-cards {
        grid-template-columns: 1fr;
    }

    .binary-tree {
        gap: 1.5rem;
    }

    .tree-level {
        gap: 2rem;
        margin-bottom: 0.5rem;
    }

    .root-node {
        width: 200px;
        height: 180px;
    }

    .tree-node:not(.root-node) {
        width: 160px;
        height: 140px;
    }

    .root-node .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .flip-card-front i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .root-node .flip-card-front h3 {
        font-size: 1rem;
    }

    .root-node .flip-card-front p {
        font-size: 0.7rem;
    }

    .flip-card-back h4 {
        font-size: 0.9rem;
    }

    .flip-card-back p {
        font-size: 0.7rem;
    }
    
    .problem-showcase-container {
        min-height: 800px;
        flex-direction: column;
        gap: 2rem;
    }
    
    .problem-central-image {
        order: 1;
        max-width: 300px;
    }
    
    .problem-item {
        position: relative;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .problem-top-left,
    .problem-top-right,
    .problem-bottom-left,
    .problem-bottom-right {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .connection-line {
        display: none;
    }

    .use-cases-content-wrapper {
        gap: 1.5rem;
    }

    .use-cases-testimonials {
        padding: 0 5px;
        min-width: 250px;
        width: 100%;
    }

    .slide-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin: 0 auto 1rem;
    }

    .app-interface-image {
        max-width: 105%;
        max-height: 280px;
        margin-left: 0.5rem;
    }

    .iphone-image {
        max-height: 250px;
    }

    .slideshow-wrapper {
        height: 350px;
        margin: 0 5px;
        border-radius: 16px;
        min-width: 250px;
        width: calc(100% - 10px);
    }

    .slide-content {
        padding: 0.8rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .slide-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .slide-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        word-break: normal;
        white-space: normal;
        text-align: center;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .emr-title {
        font-size: 1.6rem;
    }
    
    .emr-description {
        font-size: 1rem;
    }
    
    .emr-illustration svg {
        max-width: 250px;
    }
    
    .records-table {
        font-size: 0.75rem;
    }
    
    .records-table th,
    .records-table td {
        padding: 6px 8px;
    }
    
    .admin-title {
        font-size: 1.6rem;
    }
    
    .admin-description {
        font-size: 1rem;
    }
    
    .admin-illustration svg {
        max-width: 250px;
    }
    
    .feature-item-admin {
        padding: 1rem;
    }
    
    .feature-item-admin h4 {
        font-size: 0.9rem;
    }
    
    .feature-item-admin p {
        font-size: 0.8rem;
    }
    
    .animated-graph {
        max-width: 300px;
    }
    
    .graph-title {
        font-size: 0.9rem;
    }
    
    .animated-graph-container {
        padding: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #F4B400;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-background {
        background: #1F2A44;
    }
    
    .cta-button {
        background: #F4B400;
        border: 2px solid #1F2A44;
    }
} 

/* Chronic Conditions Section - Part of single flow */
.chronic-conditions {
    background: transparent;
    padding: 100px 0 80px 0;
    margin: 0;
    border-radius: 0;
    position: relative;
    z-index: 4;
}

.chronic-conditions::before {
    display: none;
}

.chronic-conditions .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.chronic-conditions .section-title {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 18px;
}
.chronic-desc {
    color: #4A5568;
    font-size: 1.1rem;
    margin-bottom: 22px;
}
.chronic-list {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}
.chronic-list li {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(31,42,68,0.07);
    padding: 12px 28px;
    font-weight: 500;
    color: #1F2A44;
    font-size: 1rem;
    transition: box-shadow 0.2s;
}
.chronic-list li:hover {
    box-shadow: 0 4px 16px rgba(244,180,0,0.18);
}
.chronic-cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #F4B400, #E6A800);
    color: #fff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(31,42,68,0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.chronic-cta-button i {
    margin-left: 8px;
}
.chronic-cta-button:hover {
    background: linear-gradient(45deg, #E6A800, #F4B400);
    box-shadow: 0 4px 16px rgba(244,180,0,0.18);
} 

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    opacity: 1;
    pointer-events: all;
}
.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #F4B400;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Footer - Part of single flow */
/* Remove all section shadows */
section:not(.hero) {
    box-shadow: none;
}

.footer-logo .logo-image {
    height: 240px !important;
    width: auto;
    border-radius: 12px;
    display: block;
}

.chronic-modern {
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31,42,68,0.18);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    padding: 48px 32px 56px 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    position: relative;
}
.chronic-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.chronic-card {
    background: rgba(255,255,255,0.85) !important;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(31,42,68,0.10);
    padding: 2.2rem 2rem 1.5rem 2rem;
    min-width: 220px;
    max-width: 270px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    border: 1.5px solid rgba(244,180,0,0.10);
    position: relative;
}
.chronic-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(244,180,0,0.18);
    background: rgba(255,255,255,0.32);
    border-color: #F4B400;
}
.chronic-icon {
    font-size: 2.3rem;
    color: #F4B400;
    margin-bottom: 1.1rem;
    background: rgba(244,180,0,0.10);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(244,180,0,0.10);
}
.chronic-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #1F2A44;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}
.chronic-card-desc {
    font-size: 1.05rem;
    color: #374151;
    text-align: center;
    margin-bottom: 0.2rem;
    font-weight: 500;
    opacity: 0.95;
}
.chronic-cta-button.modern-cta {
    font-size: 1.18rem;
    padding: 18px 44px;
    border-radius: 12px;
    background: linear-gradient(90deg, #F4B400 0%, #FFD700 100%);
    color: #1F2A44;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(244,180,0,0.18);
    border: none;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    margin-top: 18px;
}
.chronic-cta-button.modern-cta:hover {
    background: linear-gradient(90deg, #FFD700 0%, #F4B400 100%);
    color: #fff;
    box-shadow: 0 10px 32px rgba(244,180,0,0.22);
}
@media (max-width: 900px) {
    .chronic-card-grid {
        gap: 1.2rem;
    }
    .chronic-card {
        min-width: 170px;
        max-width: 220px;
        padding: 1.5rem 1rem 1.2rem 1rem;
    }
}
@media (max-width: 600px) {
    .chronic-modern {
        padding: 24px 6px 32px 6px;
    }
    .chronic-card-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .chronic-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* --- Enhanced Mobile Responsiveness for All Pages --- */
@media (max-width: 900px) {
    .container {
        padding: 0 2vw;
    }
    .chronic-main-modern {
        padding: 12px 2vw 18px 2vw;
    }
    .hero-easy-glass {
        max-width: 98vw;
        padding: 32px 8vw 32px 8vw;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .footer-logo img {
        height: 120px !important;
    }
    .nav-menu {
        gap: 1.2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .cta-button, .chronic-cta-button, .emr-toggle-btn, .admin-toggle-btn {
        font-size: 1rem;
        padding: 12px 18px;
        border-radius: 18px;
    }
    .features-showcase, .business-cards, .market-stats {
        padding: 0 2vw;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 1vw;
    }
    .hero-title {
        font-size: 1.35rem;
    }
    .hero-subtitle {
        font-size: 0.98rem;
    }
    .hero-easy-glass {
        padding: 18px 2vw 18px 2vw;
        border-radius: 18px;
    }
    .hero-easy-cta, .cta-button, .chronic-cta-button, .emr-toggle-btn, .admin-toggle-btn {
        font-size: 0.98rem;
        padding: 12px 10vw;
        border-radius: 22px;
    }
    .footer-logo img {
        height: 80px !important;
    }
    .footer-content {
        gap: 0.7rem;
    }
    .floating-cta {
        right: 6px;
        left: 6px;
        bottom: 10px;
        width: calc(100vw - 12px);
        max-width: 100vw;
        min-width: 0;
        font-size: 1rem;
        padding: 14px 0;
        border-radius: 18px;
        justify-content: center;
    }
    .nav-menu {
        gap: 0.7rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .features-showcase, .business-cards, .market-stats {
        padding: 0 1vw;
    }
    .problem-showcase-container, .solution-content-wrapper, .admin-content-wrapper, .emr-content-wrapper {
        flex-direction: column !important;
        gap: 1.2rem !important;
        min-width: 0;
    }
    .problem-central-image, .solution-image, .admin-illustration, .emr-illustration {
        max-width: 90vw;
        margin: 0 auto;
    }
    .slide-content h3 {
        font-size: 1.1rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }
    .records-table, .comparison-table {
        font-size: 0.75rem;
    }
    .records-table th, .records-table td, .comparison-table th, .comparison-table td {
        padding: 6px 4px;
    }
}
/* --- End Enhanced Mobile Responsiveness --- */

/* Tablet-specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-logo .logo-image {
        height: 200px;
        max-width: 700px;
    }
    
    .nav-container {
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .navbar {
        padding: 0 20px;
        width: 95vw;
    }
}