/* ================================================
   ZENTINEL - Advanced Health Management System
   Modern CSS with Animations & Effects
   ================================================ */

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

:root {
    /* Zentinel Brand Colors */
    --primary-color: #2e73e8;
    --primary-dark: #1f57c7;
    --primary-light: #4a85eb;
    --primary-lighter: #7ba3f0;
    --secondary-color: #2b2b2b;
    --secondary-light: #404040;
    --secondary-lighter: #555555;
    --accent-color: #fbfdfe;
    --accent-dark: #e8f4f8;
    --accent-darker: #d5eaf1;
    
    /* Health Colors (Zentinel palette variations) */
    --health-red: #e74c3c;
    --health-green: #27ae60;
    --health-blue: #2e73e8;
    --health-purple: #9b59b6;
    --health-orange: #f39c12;
    --accent-green: #4FA65A;
    
    /* Neutral Colors (based on Zentinel palette) */
    --white: #fbfdfe;
    --gray-50: #f8fafb;
    --gray-100: #f1f5f7;
    --gray-200: #e3eaed;
    --gray-300: #d0dce1;
    --gray-400: #9eaeb5;
    --gray-500: #6b7c85;
    --gray-600: #4a5a63;
    --gray-700: #3a474f;
    --gray-800: #2f3a41;
    --gray-900: #2b2b2b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-health: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(46,115,232,0.1) 0%, rgba(46,115,232,0.05) 100%);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(79, 166, 90, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(79, 166, 90, 0.2), 0 2px 4px -1px rgba(79, 166, 90, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(79, 166, 90, 0.2), 0 4px 6px -2px rgba(79, 166, 90, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(79, 166, 90, 0.2), 0 10px 10px -5px rgba(79, 166, 90, 0.15);
    --shadow-glow: 0 0 40px rgba(79, 166, 90, 0.3);
    
    /* Animations */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #ffffff;
        --gray-50: rgba(168, 203, 174, 0.1);
        --gray-100: rgba(168, 203, 174, 0.2);
    }
}

/* Header-only: move Zentinel logo 100px to the right without affecting other layouts */
.navbar .nav-logo {
    /* nudge slightly more to the right from -85px to -80px */
    transform: translateX(-55px);
    -webkit-transform: translateX(-55px);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--secondary-color);
    background: rgba(168, 203, 174, 0.6);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.section-subtitle {
    font-size: 1.300rem;
    color: var(--secondary-color);
    text-align: center;
    max-width: 600px;
    margin: 0px auto 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
}

/* (In-page legal section styles removed — reverted) */

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: rgba(251, 253, 254, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 115, 232, 0.2);
    transition: var(--transition-smooth);
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

.navbar.scrolled {
    background: rgba(251, 253, 254, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.125rem 24px 0.125rem 40px; /* Increased left padding to accommodate logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 4rem;
    font-weight: 1000;
    color: var(--primary-color);
    text-decoration: none;
    margin-left: -40px; /* Reduced from -80px to prevent logo cutoff */
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.logo-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 0.5rem;
    margin-left:40px;
}

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

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

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(168, 203, 174, 0.6);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
    padding-top: 100px;
}

.hero-badge {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: rgba(46, 115, 232, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(46, 115, 232, 0.3);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    padding-bottom: 0;
    color: var(--primary-color);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease 0.4s both;
    
}

.title-highlight {
    display: block;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-description {
    font-size: 1.300rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.4;
    animation: fadeInUp 0.8s ease 0.8s both;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 1s both;
    line-height: normal;
    font-size:larger;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--secondary-light);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    font-family: inherit;
    margin-bottom: 40px;
}

.cta-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cta-secondary {
    background: rgba(46, 115, 232, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 115, 232, 0.3);
    color: var(--secondary-color);
}

.cta-secondary:hover {
    background: rgba(46, 115, 232, 0.3);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 1.4s both;
}

.visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.health-monitor {
    width: 300px;
    height: 200px;
    background: rgba(46, 115, 232, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(46, 115, 232, 0.2);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.monitor-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vitals-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.vital-reading {
    text-align: center;
    color: var(--secondary-color);
}

.vital-reading i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.reading {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.unit {
    font-size: 0.75rem;
    opacity: 0.7;
}

.heart-rate i { color: var(--health-red); }
.temperature i { color: var(--health-orange); }
.stress i { color: var(--health-green); }

.pulse-wave {
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q50,0 100,20 T200,20' stroke='%232c6cc4' stroke-width='2' fill='none' opacity='0.6'/%3E%3C/svg%3E") repeat-x;
    animation: wave 2s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 200px; }
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(46, 115, 232, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 1px solid rgba(46, 115, 232, 0.2);
    animation: float var(--duration, 3s) ease-in-out infinite var(--delay, 0s);
}

.floating-element:nth-child(1) { top: 20%; right: -10%; }
.floating-element:nth-child(2) { top: 60%; left: -10%; }
.floating-element:nth-child(3) { bottom: 20%; right: 20%; }

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--secondary-light);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 0.5rem;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 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); }
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 60px 0 60px 0;
    background: linear-gradient(135deg, var(--white) 0%, rgba(79, 166, 90, 0.15) 50%, var(--white) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 0;
    margin-top: -2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Advanced Country Selector Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

/* Country selector styles commented out to disable the feature */

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

.feature-card {
    background: rgba(251, 253, 254, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 115, 232, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 166, 90, 0.7);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--secondary-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-metrics {
    display: flex;
    gap: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: var(--accent-dark);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 166, 90, 0.2);
    border-radius: 20px;
    color: var(--accent-green);
    font-weight: 600;
}

.feature-devices {
    display: flex;
    gap: 1rem;
}

.device-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.device-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.ai-visualization {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.neural-node {
    width: 12px;
    height: 12px;
    background: var(--accent-dark);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.neural-node.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(46, 115, 232, 0.5);
    animation: neural-pulse 2s infinite;
}

@keyframes neural-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.neural-connection {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent, var(--primary-color));
    animation: neural-flow 3s infinite;
    transform: translateY(-50%);
}

@keyframes neural-flow {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

.security-indicators {
    margin-top: 1rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(46, 115, 232, 0.1);
    border-radius: 20px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Technology Section */
.technology {
    padding: 60px 0 0 0; /* Removed bottom padding to eliminate gap */
    background: linear-gradient(45deg, var(--white) 0%, rgba(79, 166, 90, 0.2) 25%, var(--white) 50%, rgba(79, 166, 90, 0.15) 75%, var(--white) 100%);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(46, 115, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 253, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(46, 115, 232, 0.15) 0%, transparent 50%);
}

.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: -2rem; /* Further reduced for full visibility */
    margin-bottom: -1rem; /* Further reduced for full visibility */
    padding: 2rem 0; /* Add padding to ensure content isn't clipped */
}

.tech-visual {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: -500px; /* Adjusted animation upward to a safer -100px */
}

.tech-circle {
    width: 400px;
    height: 400px;
    position: relative;
    overflow: visible; /* Ensure center element is not clipped */
}

.tech-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    z-index: 15; /* Increased from 5 to ensure visibility */
    animation: rotate 20s linear infinite;
    box-shadow: 0 4px 20px rgba(46, 115, 232, 0.4);
}

.tech-orbit {
    position: absolute;
    border: 2px solid rgba(46, 115, 232, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 150px;
    height: 150px;
    animation: rotate 15s linear infinite reverse;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    animation: rotate 25s linear infinite;
}

.orbit-3 {
    width: 290px;
    height: 290px;
    animation: rotate 35s linear infinite reverse;
}

.orbit-4 {
    width: 360px;
    height: 360px;
    animation: rotate 45s linear infinite;
}

.tech-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(46, 115, 232, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 115, 232, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    top: -30px;
    left: calc(50% - 30px);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tech-node:hover {
    background: var(--gradient-primary);
    transform: scale(1.2);
    box-shadow: var(--shadow-glow);
}

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

.tech-details {
    color: var(--white);
}

.tech-stack {
    display: grid;
    gap: 2rem;
    margin-top: 6rem;
    transform: translateY(-70px); /* Moved tech stack down 40px (from -130px to -90px) */
}

.stack-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(46, 115, 232, 0.2);
}

.stack-item:last-child {
    border-bottom: none;
}

.stack-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cutting_edge_tech {
    color: var(--secondary-color) !important;
}

.stack-item p {
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(46, 115, 232, 0.2);
    border: 1px solid rgba(46, 115, 232, 0.4);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 100px 0 30px 0;
    background: linear-gradient(135deg, var(--white) 0%, rgba(79, 166, 90, 0.15) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.about .section-title {
    margin-left: -8rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: -6rem auto 0 auto;
    padding: 0 24px;
}

.about-description {
    font-size: 1.300rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.about-highlights {
    display: grid;
    gap: 1.5rem;
    margin-top: -2rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
    overflow: visible;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    text-align: left;
}

.highlight-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow-wrap: break-word;
    display: block;
    padding-right: 20px;
}

.highlight-content p {
    color: var(--secondary-light);
    text-align: left;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    margin: 0;
    padding: 0 0 8px 0;
    display: block;
    overflow: visible;
}

.about-visual {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 40px;
}

.health-ecosystem {
    width: 300px;
    height: 300px;
    position: relative;
}

.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    animation: pulse 3s infinite;
}

.ecosystem-ring {
    position: absolute;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 160px;
    height: 160px;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 240px;
    height: 240px;
    animation: rotate 30s linear infinite reverse;
}

.ecosystem-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.ring-1 .ecosystem-item:nth-child(1) { top: -25px; left: calc(50% - 25px); }
.ring-1 .ecosystem-item:nth-child(2) { bottom: -25px; left: calc(50% - 25px); }
.ring-1 .ecosystem-item:nth-child(3) { top: calc(50% - 25px); right: -25px; }

.ring-2 .ecosystem-item:nth-child(1) { top: -25px; left: calc(50% - 25px); }
.ring-2 .ecosystem-item:nth-child(2) { bottom: -25px; right: calc(25% - 25px); }
.ring-2 .ecosystem-item:nth-child(3) { top: calc(25% - 25px); right: -25px; }

.ecosystem-item:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

/* Pricing Section */
.pricing {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--white) 0%, rgba(79, 166, 90, 0.15) 50%, var(--white) 100%);
    position: relative;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    margin-bottom: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.pricing-card {
    background: rgba(251, 253, 254, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(46, 115, 232, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition-smooth);
    text-align: center;
    flex: 1;
    max-width: 400px;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(46, 115, 232, 0.4);
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--health-purple) 0%, var(--health-red) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.advanced .plan-badge {
    background: var(--gradient-primary);
}

.wellness .plan-badge {
    background: linear-gradient(135deg, #6bb976 0%, #4FA65A 100%);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.period {
    font-size: 1rem;
    color: var(--gray-600);
    margin-left: 0.25rem;
}

.plan-description {
    color: var(--secondary-light);
    font-size: 1rem;
    margin: 0;
}

.plan-features {
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.plan-features i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.plan-features strong {
    color: var(--primary-color);
    font-weight: 700;
}

.plan-cta {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

.plan-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--health-purple) 0%, var(--health-red) 100%);
    color: var(--white);
}

.advanced-btn {
    background: var(--gradient-primary);
    color: var(--white);
}

.wellness-btn {
    background: linear-gradient(135deg, #2e73e8 0%, #1f57c7 100%);
    color: var(--white);
}

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

.plan-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Pricing Comparison */
.pricing-comparison {
    margin: 4rem 0;
    text-align: center;
}

.pricing-comparison h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.comparison-table {
    background: var(--white);
    align-items: center;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(46, 115, 232, 0.2);
    width: 800px;
    margin: 0 auto;
    
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(46, 115, 232, 0.1);
}

.comparison-row.header {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
}

.comparison-row > div {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-name {
    text-align: left !important;
    justify-content: flex-start !important;
    font-weight: 500;
}

.comparison-row:nth-child(even):not(.header) {
    background: rgba(46, 115, 232, 0.05);
}

/* Pricing FAQ */
.pricing-faq {
    margin-top: 4rem;
    text-align: center;
}

.pricing-faq h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

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

.faq-item {
    background: rgba(46, 115, 232, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--secondary-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--secondary-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design for Pricing */
@media (max-width: 1024px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .pricing-card {
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .pricing-card {
        max-width: 400px;
        min-height: auto;
        padding: 2rem;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comparison-row > div {
        border-bottom: 1px solid rgba(46, 115, 232, 0.1);
    }
    
    .feature-name {
        background: rgba(46, 115, 232, 0.1);
        font-weight: 600;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-price {
        margin: 1rem 0;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .pricing-comparison h3,
    .pricing-faq h3 {
        font-size: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 60px 0 40px 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, rgba(79, 166, 90, 0.12) 50%, var(--accent-dark) 100%);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: -3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
    margin-left: 8rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.info-content p {
    color: var(--secondary-light);
}

.contact-form {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    width: 100%;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 115, 232, 0.2);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
    color: var(--secondary-light);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0 0.25rem;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Footer */
.footer {
    background: var(--white);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    /* reduce bottom gap so footer-bottom sits a bit higher (precise pixel value) */
    margin-bottom: -5px; /* was 0.5rem (~8px) */
}

.footer-brand {
    display: grid;
    gap: 1rem;
   
}

.footer-brand .nav-logo {
    padding-right: 2rem;
    /* Nudge the footer logo/text slightly upward for better visual alignment */
    margin-top: -18px; /* moved a little bit further up as requested */
    margin-bottom: 0.5rem;
    margin-left: -40px; /* Move footer logo and text 5px more to the left */
    font-size: 3rem; /* Increased from 2.8rem for larger footer logo text */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
}

.footer-logo .logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: .5rem;
}

/* Nudge footer tagline slightly up and to the left per request */
.footer-tagline {
    display: inline-block;
    transform: translate(18px, -6px); /* moved a little more to the right as requested */
    will-change: transform;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(46, 115, 232, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

 .footer-links {
     display: grid;
     /* Place Company, Legal, Contact and Visit Us horizontally on wide screens */
    grid-template-columns: repeat(4, minmax(0, 1fr));
     gap: 2rem;
     align-items: start;
     justify-content: space-around;
 }

/* Make each footer column use consistent internal spacing */
.footer-links .link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* slightly larger gap for consistent spacing */
    min-width: 0; /* prevent overflow in small containers */
}

/* Ensure address lines match other footer text */
.visit-address {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.45;
    font-style: normal;
}
.visit-address p {
    margin: 0;
}

.link-group h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0; /* rely on .link-group gap for spacing */
}

.link-group a {
    display: block;
    color: var(--gray-600);
    text-decoration: none;
    margin: 0; /* remove per-item margins; use gap on the container */
    transition: var(--transition-smooth);
}

.link-group a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    /* pull the horizontal rule and copyright slightly up */
    padding-top: 0px; /* removed top padding to move up ~5px total */
    border-top: 1px solid var(--secondary-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: var(--accent-dark);
    margin-left: 18px;
}

.footer-bottom i {
    color: var(--health-red);
}

/* Back to Top *//* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container,
    .tech-showcase,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* Fix hero-visual overlap on smaller screens */
    .hero-visual {
        margin-top: 0 !important;
        padding-top: 2rem;
    }
    
    /* Fix about-visual overlap */
    .about-visual {
        margin-top: 0;
        margin-bottom: 80px;
    }
    
    .about {
        padding-bottom: 150px !important;
    }
    
    .health-ecosystem {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0;
    }
    
    .navbar {
        height: auto;
    }
    
    .nav-container {
        padding: 0.75rem 16px 0.75rem 32px; /* Added left padding for mobile logo visibility */
    }
    
    .nav-logo {
        font-size: 1.25rem;
        margin-left: -20px; /* Reduced negative margin for mobile */
        margin-right: 0;
    }
    
    .logo-icon {
        width: 55px;
        height: 55px;
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        top: 60px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tech-circle {
        width: 300px;
        height: 300px;
        overflow: visible; /* Ensure center element is not clipped */
    }
    
    .orbit-1 { width: 120px; height: 120px; }
    .orbit-2 { width: 180px; height: 180px; }
    .orbit-3 { width: 240px; height: 240px; }
    .orbit-4 { width: 300px; height: 300px; }
    
    .tech-visual {
        margin-top: 0; /* Reset negative margin for full visibility */
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .tech-details {
        order: -1; /* Move text above animation on mobile */
    }
}

@media (max-width: 480px) {
    .hero-visual {
        display: none;
    }
    
    .tech-visual {
        margin-top: 0; /* Reset negative margin */
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .tech-circle {
        width: 200px;
        height: 200px;
        overflow: visible; /* Ensure center element is not clipped */
    }
    
    .orbit-1 { width: 80px; height: 80px; }
    .orbit-2 { width: 120px; height: 120px; }
    .orbit-3 { width: 160px; height: 160px; }
    .orbit-4 { width: 200px; height: 200px; }
    
    .tech-center {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        z-index: 15;
        top: 45%; /* Moved slightly up from center for mobile */
        left: 45%; /* Moved further left for mobile */
    }
    
    .tech-node {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .tech-showcase {
        margin-top: 0; /* Reset negative margins */
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .tech-circle {
        width: 220px;
        height: 220px;
        overflow: visible; /* Ensure center element is not clipped */
    }
    
    .orbit-1 { width: 90px; height: 90px; }
    .orbit-2 { width: 135px; height: 135px; }
    .orbit-3 { width: 180px; height: 180px; }
    .orbit-4 { width: 220px; height: 220px; }
    
    .tech-visual {
        margin-top: 0; /* Reset negative margin for full visibility */
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .tech-center {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        z-index: 15;
        top: 47%; /* Slightly adjusted position for 640px breakpoint */
        left: 46%; /* Moved further left for 640px breakpoint */
    }
    
    .tech-node {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .health-monitor {
        width: 100%;
        max-width: 280px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Styles */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--gray-900);
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .back-to-top,
    #particles-js {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #cc0066;
        --gray-600: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Page Header for Privacy/Terms */
.page-header {
    padding: 2rem 1rem;
    background: white;
    color: var(--primary-color);
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.page-header p {
    margin: 0.5rem 0 0;
    opacity: 0.95;
    color: var(--primary-color);
}

/* Page Content */
.page-content {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Apply features section background design to privacy/terms pages */
body:has(.privacy-header),
body:has(.terms-header) {
    background: linear-gradient(135deg, var(--white) 0%, rgba(79, 166, 90, 0.15) 50%, var(--white) 100%);
}

.page-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.page-content h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.page-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Override: force-remove bottom gap in Technology section (high specificity) */
section#technology.technology,
section#technology,
.technology {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.technology .tech-showcase,
.technology .tech-stack {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Small-screen safety: ensure visuals aren't pushed down on mobile */
@media (max-width: 640px) {
    section#technology .tech-visual {
        margin-top: 0 !important;
    }
}
