/* ============================================
   SEQACARE LANDING PAGE STYLES
   ============================================ */

/* Color Variables */
:root {
    --color-primary: #0F172A;
    --color-secondary: #1E293B;
    --color-accent: #3B82F6;
    --color-accent-2: #10B981;
    --color-accent-3: #8B5CF6;
    --color-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --color-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --color-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --hero-logo-x: 0px; 
    --hero-logo-y: 0px; 
    --technical-gradient: linear-gradient(145deg, #0f172a 0%, #172a44 50%, #0f172a 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: url('./assets/img1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

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

@keyframes slide-in-left {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Particle Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #3B82F6, #10B981);
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 40%; left: 60%; animation-delay: 2s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 80%; left: 20%; animation-delay: 3s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 10%; left: 90%; animation-delay: 4s; }

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-menu-close:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #E2E8F0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), transparent);
    transition: width 0.3s ease;
}

.mobile-menu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #3B82F6;
}

.mobile-menu-item:hover::before {
    width: 100%;
}

.mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mobile-menu-item:hover svg {
    opacity: 1;
}

/* Mobile Menu CTA Button */
.mobile-menu-cta {
    margin: 1rem 1rem 0.5rem;
    background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    color: white !important;
    border-radius: 12px;
    border-left: none !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.mobile-menu-cta::before {
    display: none;
}

.mobile-menu-cta:hover {
    background: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.mobile-menu-cta svg {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar-logo:hover .logo {
    background: linear-gradient(135deg, #60A5FA 0%, #34D399 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
}

.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #64B5F6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.home-icon:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.25), rgba(16, 185, 129, 0.25));
    transform: scale(1.1) rotate(5deg);
    color: #90CAF9;
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--color-gradient-3);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.tagline {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 400;
    margin-top: -0.25rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(51, 65, 85, 0.8) 100%),
                url('./assets/img1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 5rem;
}

.hero-logo-container {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
    transform: translate(var(--hero-logo-x), var(--hero-logo-y)); 
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 35px;
}

.hero-logo-img {
    height: 5rem;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gentle-float 6s ease-in-out infinite;
}

/* Particle Orbit */
.particle-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    animation: rotate-orbit 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.particle-orbit .particle {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: particle-pulse 2s ease-in-out infinite;
}

.particle-orbit .particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; background: #10B981; color: #10B981; }
.particle-orbit .particle:nth-child(2) { top: 15%; right: 15%; width: 6px; height: 6px; background: #3B82F6; color: #3B82F6; animation-delay: 0.25s; }
.particle-orbit .particle:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); width: 4px; height: 4px; background: #14B8A6; color: #14B8A6; animation-delay: 0.5s; }
.particle-orbit .particle:nth-child(4) { bottom: 15%; right: 15%; width: 5px; height: 5px; background: #06B6D4; color: #06B6D4; animation-delay: 0.75s; }
.particle-orbit .particle:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: #10B981; color: #10B981; animation-delay: 1s; }
.particle-orbit .particle:nth-child(6) { bottom: 15%; left: 15%; width: 4px; height: 4px; background: #3B82F6; color: #3B82F6; animation-delay: 1.25s; }
.particle-orbit .particle:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); width: 5px; height: 5px; background: #14B8A6; color: #14B8A6; animation-delay: 1.5s; }
.particle-orbit .particle:nth-child(8) { top: 15%; left: 15%; width: 4px; height: 4px; background: #06B6D4; color: #06B6D4; animation-delay: 1.75s; }

@keyframes rotate-orbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particle-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

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

.logo-wrapper:hover .particle-orbit {
    animation-duration: 10s;
}

.logo-wrapper:hover .particle {
    animation-duration: 1s;
}

.hero-logo-img:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 40%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

/* Navbar Brochure Button */
.btn-nav-brochure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.btn-nav-brochure.visible {
    opacity: 1;
    pointer-events: all;
}

.btn-nav-brochure:hover {
    background: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-title-sub {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding-left: 0;
}

/* Section Backgrounds */
.stats-section { background: rgba(30, 41, 59, 0.95); }
.demo-section { background: rgba(15, 23, 42, 0.95); }
#video { background: rgba(51, 65, 85, 0.95); }
#features { background: rgba(15, 23, 42, 0.95); }
#whyus { background: rgba(30, 41, 59, 0.95); }
.products-section { background: var(--technical-gradient); position: relative; overflow: hidden; }
.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
footer { background: rgba(15, 23, 42, 0.98); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }

.hero-content { animation: fade-in-up 1s ease-out; }

.hero-subtitle {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    animation: float 6s ease-in-out infinite, image-pulse 1.5s ease-in-out infinite;
}

.hero-image:hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* Buttons */
.btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 44px;
}

.btn::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.5s;
}

.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); animation: heartbeat-button 0.8s ease-in-out infinite; }
.btn:focus { outline: 2px solid rgba(59, 130, 246, 0.5); outline-offset: 2px; }

.btn-primary {
    background: var(--color-gradient-3);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover { box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4); }

.btn-secondary {
    background: var(--color-gradient-4);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover { box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4); }

@keyframes heartbeat-button {
    0%, 100% { transform: translateY(-2px) scale(1); }
    14% { transform: translateY(-2px) scale(1.05); }
    28% { transform: translateY(-2px) scale(1); }
    42% { transform: translateY(-2px) scale(1.02); }
    70% { transform: translateY(-2px) scale(1); }
}

/* Feature Cards */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-gradient-3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before { opacity: 0.1; }

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--color-gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.video-card { text-align: center; }
.video-title { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.video-subtitle { font-size: 1rem; color: #94A3B8; margin-bottom: 1.5rem; }

.video-container-small {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    width: 100%;
    margin: 0 auto;
}

.video-container-small::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--color-gradient-3);
    border-radius: 1.5rem;
    z-index: -1;
    animation: gradient-shift 3s ease infinite;
    opacity: 0.5;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    transition: opacity 0.3s ease;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--color-gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.modal-content {
    background: var(--color-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fade-in-up 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.form-input {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
}

.form-input::placeholder { color: #94A3B8; }

/* iPhone Health Monitor Card */
.health-monitor-card {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000000;
    border-radius: 35px;
    padding: 8px;
    width: 220px;
    height: 400px;
    border: 4px solid #1d1d1f;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: card-float 3s ease-in-out infinite;
    z-index: 10;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.health-monitor-card:hover {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.patient-info {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.patient-name { color: #ffffff; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.patient-details { color: #8e8e93; font-size: 10px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.patient-age, .patient-id { color: #8e8e93; }
.patient-id { font-size: 9px; }

.iphone-screen {
    background: linear-gradient(135deg, #000000 0%, #1c1c1e 100%);
    border-radius: 30px;
    padding: 20px 16px 16px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.iphone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #000000;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.iphone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    margin-top: 8px;
}

.status-time { font-weight: 700; }
.status-indicators { display: flex; gap: 3px; align-items: center; font-size: 10px; }

.app-header { text-align: center; margin-bottom: 16px; }
.app-title { color: #ffffff; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.app-subtitle { color: #8e8e93; font-size: 11px; font-weight: 500; }

.fall-risk-alert {
    background: rgba(255, 59, 48, 0.15);
    border: 1.5px solid rgba(255, 59, 48, 0.4);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    animation: alert-pulse 2s ease-in-out infinite;
}

.fall-risk-label {
    color: #ff9f0a;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fall-risk-value {
    color: #ff3b30;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@keyframes alert-pulse {
    0%, 100% { border-color: rgba(255, 59, 48, 0.4); background: rgba(255, 59, 48, 0.15); }
    50% { border-color: rgba(255, 59, 48, 0.6); background: rgba(255, 59, 48, 0.2); }
}

.main-vital {
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.main-vital-label {
    color: #8e8e93;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.main-vital-value {
    color: #007aff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.heart-icon-main {
    color: #ff3b30;
    font-size: 16px;
    animation: heartbeat-simple 1.2s ease-in-out infinite;
}

.vitals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
}

.vital-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.vital-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.vital-card-icon { font-size: 14px; margin-bottom: 4px; display: block; }
.vital-card-label { color: #8e8e93; font-size: 8px; font-weight: 600; text-transform: uppercase; margin-bottom: 3px; letter-spacing: 0.3px; }
.vital-card-value { color: #34c759; font-size: 11px; font-weight: 700; }
.glucose-value { color: #ff9f0a; }
.bp-value { color: #007aff; }
.oxygen-value { color: #5ac8fa; }

.fall-detection-card {
    grid-column: 1 / -1;
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.fall-detection-card .vital-card-value { color: #34c759; font-size: 10px; font-weight: 700; }

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

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

@keyframes heartbeat-simple {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes image-pulse {
    0%, 100% { filter: brightness(1.1) contrast(1.05); }
    50% { filter: brightness(1.15) contrast(1.1) saturate(1.1); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   IMPROVED PRODUCT SECTION
   ============================================ */

.products-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px;
    padding: 1.75rem;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.product-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
                0 8px 16px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(59, 130, 246, 0.2);
}

.product-featured {
    grid-row: span 2;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 2px solid rgba(59, 130, 246, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 4px 16px rgba(59, 130, 246, 0.08);
    min-height: 100%;
    padding: 2.25rem;
}

.product-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 50%);
    pointer-events: none;
}

.product-featured:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 8px 24px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-10px) scale(1.02);
}

.product-wide {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
}

.product-wide:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
                0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.product-logo-container {
    margin-bottom: 1.25rem;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.product-logo {
    width: auto;
    max-width: 100%;
    height: 45px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(1) contrast(1.1);
    transition: all 0.3s ease;
}

.product-featured .product-logo {
    height: 65px;
}

.product-card:hover .product-logo {
    filter: brightness(1.05) contrast(1.15) drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
    transform: translateX(4px) scale(1.05);
}

.product-logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
}

.logo-text { 
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-highlight { 
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900; 
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-featured .product-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.product-description {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-featured .product-description { 
    font-size: 1rem;
    color: #64748b;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-card:hover .feature-badge {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-cta {
    color: #2563eb;
    gap: 0.75rem;
}

.product-card:hover .cta-arrow { 
    transform: translateX(5px);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .products-bento-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-featured { grid-row: span 1; }
    .product-wide { grid-column: span 1; }
    .product-card { min-height: 280px; }
}

@media (max-width: 768px) {
    /* Show mobile menu button, hide desktop nav */
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-links {
        display: none !important;
    }
    
    /* Adjust mobile menu drawer width */
    .mobile-menu-drawer {
        width: 80%;
        max-width: 300px;
    }
    
    .hero-logo-container { 
        padding-left: 1rem; 
        align-items: center; 
        text-align: center; 
    }
    
    .hero-logo-img { height: 3rem; }
    .hero-title-sub { font-size: 2rem; text-align: center; }
    
    .videos-grid { grid-template-columns: 1fr; gap: 2rem; }
    .video-card { max-width: 500px; margin: 0 auto; }
    
    .health-monitor-card { 
        right: 10px; 
        top: 10px; 
        width: 140px; 
        height: 280px; 
        border-radius: 25px; 
        padding: 6px; 
        border: 2px solid #1d1d1f; 
    }
    
    .iphone-screen { padding: 12px 8px 8px 8px; border-radius: 20px; }
    .iphone-screen::before { width: 40px; height: 15px; border-radius: 0 0 8px 8px; }
    
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-content { text-align: center; }
    .btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
    .feature-card, .stat-card { padding: 1.25rem; }
    .logo { font-size: 1.5rem; }
    .tagline { font-size: 0.65rem; }
    h2 { font-size: 1.75rem; }
    .hero { padding: 2rem 0; }
    .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
    .hero-image img { max-width: 280px; }
    .product-card { padding: 2rem; min-height: 260px; }
    .product-name { font-size: 1.25rem; }
    .product-featured .product-name { font-size: 1.4rem; }
    .product-description { font-size: 0.95rem; }
    .product-logo { max-width: 220px; max-height: 50px; }
    .product-logo-container { height: 50px; margin-bottom: 1.25rem; }
}

@media (max-width: 480px) {
    .mobile-menu-drawer {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-menu-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-logo-img { height: 2.5rem; }
    .hero-title-sub { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .health-monitor-card { width: 120px; height: 240px; right: 5px; top: 5px; }
    .hero-image img { max-width: 250px; }
    .btn { padding: 0.65rem 1rem; font-size: 0.8rem; }
    h2 { font-size: 1.5rem; }
    .logo { font-size: 1.3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1rem; }
    .stat-number { font-size: 2rem; }
    .products-bento-grid { gap: 1.25rem; }
    .product-card { padding: 1.5rem; min-height: 240px; }
    .product-name { font-size: 1.1rem; margin-bottom: 0.75rem; }
    .product-description { font-size: 0.9rem; margin-bottom: 1rem; }
    .product-logo { max-width: 180px; max-height: 45px; }
    .product-features { gap: 0.4rem; margin-bottom: 1rem; }
    .feature-badge { padding: 0.3rem 0.7rem; font-size: 0.7rem; }
}