/* ===== GLOBAL STYLES ===== */

/* Remove underlines from images and their containers */
img, a img, .img-container, .leadership-image-container, .leadership-image {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ===== ENHANCED DROPDOWN ITEM STYLING ===== */

/* Enhanced dropdown items with improved typography and subtle effects */
.dropdown-item {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    color: #ffffff !important;
}

/* Subtle background gradient on hover */
.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.08), rgba(76, 201, 240, 0.04));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 4px;
    z-index: -1;
}

/* Accent indicator and arrow */
.dropdown-item::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    opacity: 0;
    transition: all 0.25s ease;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Left accent bar */
.dropdown-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateY(-50%);
    transition: width 0.25s ease;
    border-radius: 2px;
    z-index: 1;
}

/* Hover effects */
.dropdown-item:hover {
    color: var(--accent) !important;
    font-weight: 700 !important;
    padding-left: 2rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.dropdown-item:hover:before {
    width: 20px;
}

/* Enhanced dropdown headers */
.dropdown-header {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
    margin: 0.2rem 0.5rem !important;
    padding: 0.4rem 0.8rem !important;
    border-left: 3px solid var(--accent) !important;
}

/* ===== DROPDOWN MENU SCROLLING ===== */

/* General dropdown menu styling */
.dropdown-menu {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.95), rgba(58, 12, 163, 0.9)) !important;
    border: 1px solid rgba(67, 97, 238, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
}

/* Products dropdown with scrollbar and compact size */
.dropdown-menu[aria-labelledby="productsDropdown"] {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 0.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(67, 97, 238, 0.1) !important;
    min-width: 18rem !important; /* slightly wider to fit long names like PracticeAutomation */
}

/* Prevent wrapping for long product names like "PracticeAutomation" */
.dropdown-menu[aria-labelledby="productsDropdown"] .dropdown-item {
    white-space: nowrap !important;
}

/* Custom scrollbar styling */
.dropdown-menu[aria-labelledby="productsDropdown"]::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu[aria-labelledby="productsDropdown"]::-webkit-scrollbar-track {
    background: rgba(67, 97, 238, 0.05);
    border-radius: 3px;
}

.dropdown-menu[aria-labelledby="productsDropdown"]::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: background 0.3s ease;
}

.dropdown-menu[aria-labelledby="productsDropdown"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Firefox scrollbar styling */
.dropdown-menu[aria-labelledby="productsDropdown"] {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(67, 97, 238, 0.05);
}

/* ===== CAIRIQ PLATFORM SECTION STYLES ===== */

/* Platform content styling */
.platform-content {
    padding: 2rem 0;
}

.platform-description p.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.platform-benefits h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent);
}

.benefit-item:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateX(5px);
}

.benefit-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* CairIQ visual styling */
.cairiq-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cairiq-image-container {
    position: relative;
    display: inline-block;
    padding: 2rem;
}

.cairiq-main-image {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 15px 35px rgba(67, 97, 238, 0.2));
    transition: all 0.3s ease;
    /* Remove white background */
    mix-blend-mode: multiply;
    background: transparent;
}

.cairiq-main-image:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 20px 40px rgba(67, 97, 238, 0.3));
}

/* Floating orbs animation */
.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.3), rgba(76, 201, 240, 0.3));
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(76, 201, 240, 0.2));
}

.orb-2 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.3), rgba(67, 97, 238, 0.2));
}

.orb-3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 5%;
    animation-delay: 4s;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(76, 201, 240, 0.25));
}

.orb-4 {
    width: 50px;
    height: 50px;
    bottom: 30%;
    right: 10%;
    animation-delay: 1s;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.25), rgba(67, 97, 238, 0.15));
}

/* Glow effect behind image */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, rgba(76, 201, 240, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    animation: pulse 4s ease-in-out infinite;
}

/* Keyframe animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cairiq-image-container {
        padding: 1rem;
    }
    
    .orb-1, .orb-3 {
        width: 40px;
        height: 40px;
    }
    
    .orb-2, .orb-4 {
        width: 30px;
        height: 30px;
    }
}

/* ===== AGENT CARDS STYLING ===== */

.agent-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
}

/* Hero buttons styling - override text-transform */
.hero-buttons .btn {
    text-transform: none !important;
}

.pulse-btn {
    text-transform: none !important;
}

/* Two-line button styling */
.two-line-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem 1rem !important;
    min-height: 120px !important;
    text-align: center !important;
}

.two-line-btn i {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
}

.btn-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    line-height: 1.2 !important;
}

.btn-line-1 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
}

.btn-line-2 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    display: block !important;
}

/* Responsive adjustments for two-line buttons */
@media (max-width: 992px) {
    .two-line-btn {
        min-height: 90px !important;
        padding: 1rem 0.75rem !important;
    }
    
    .two-line-btn i {
        font-size: 1.2rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .btn-line-1 {
        font-size: 0.8rem !important;
    }
    
    .btn-line-2 {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    .two-line-btn {
        min-height: 80px !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    .two-line-btn i {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .btn-line-1 {
        font-size: 0.75rem !important;
    }
    
    .btn-line-2 {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .hero-buttons .row {
        gap: 0.5rem !important;
    }
    
    .two-line-btn {
        min-height: 70px !important;
        padding: 0.6rem 0.4rem !important;
    }
    
    .two-line-btn i {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .btn-line-1 {
        font-size: 0.7rem !important;
    }
    
    .btn-line-2 {
        font-size: 0.75rem !important;
    }
}

/* ===== EVENT BANNER STYLING ===== */

.event-banner {
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.event-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 201, 240, 0.2);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.event-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.event-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.3;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.event-date i,
.event-location i {
    color: var(--accent);
}

.event-highlight {
    background: rgba(67, 97, 238, 0.2);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.event-cta {
    background: var(--accent) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.event-cta:hover {
    background: rgba(76, 201, 240, 0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3) !important;
    color: white !important;
}

/* Responsive adjustments for event banner */
@media (max-width: 768px) {
    .event-card {
        padding: 1.25rem;
    }
    
    .event-name {
        font-size: 1.25rem;
    }
    
    .event-details {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .event-highlight {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.agent-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.agent-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
}

.companion-icon {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.nurse-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.physician-icon {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.giver-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.agent-persona {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    font-style: italic;
}

.agent-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.agent-description p {
    margin-bottom: 1.5rem;
}

.agent-description .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.agent-description .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Platform summary styling */
.platform-summary {
    margin-top: 3rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.summary-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-card .lead {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .agent-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .agent-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .agent-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .platform-content {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .benefit-item i {
        margin-bottom: 0.5rem;
    }
}
:root {
    --primary: #4361ee;
    --primary-light: #e6eeff;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --dark: #1a2536;
    --light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #4361ee, #3a0ca3);
    --gradient-accent: linear-gradient(135deg, #4cc9f0, #4895ef);
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --border-radius-sm: 5px;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background: #fff;
    color: var(--text-dark);
    overflow-x: auto; /* avoid clipping content on the left; allow scroll if needed */
    line-height: 1.6;
}

html {
    overflow-x: auto; /* ensure root also allows horizontal scroll if content slightly exceeds viewport */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Accessibility utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* New class for hero section 'Us' text to improve visibility */
.hero-gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

.text-accent {
    color: var(--accent);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand .subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.95;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1.5rem 0;
}

.section-header .divider {
    margin: 1.5rem auto;
}

/* Owen-only responsive fallback: switch to 1 column a bit earlier to prevent overflow */
@media (max-width: 1200px) {
  #cairiq_products .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem; /* tighter spacing when single column */
  }
  #cairiq_products .feature-item {
    padding: 0.65rem;
  }
  #cairiq_products .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 0.85rem;
    min-width: 220px;
    margin: 0;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline-light {
    border: 2px solid #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.badge {
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 50px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

@keyframes buttonPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes iconSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes iconFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Feature Grid and Item Animation Styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(248, 249, 250, 0.8);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.animated-icon i {
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.feature-item:nth-child(1) .animated-icon i {
    animation: iconPulse 3s ease-in-out infinite;
    color: #4361ee;
}

.feature-item:nth-child(2) .animated-icon i {
    animation: iconRotate 3s ease-in-out infinite;
    color: #3a0ca3;
}

.feature-item:nth-child(3) .animated-icon i {
    animation: iconFloat 3s ease-in-out infinite;
    color: #4895ef;
}

.feature-item:nth-child(4) .animated-icon i {
    animation: iconPulse 3s ease-in-out infinite;
    color: #4cc9f0;
}

.feature-item:nth-child(5) .animated-icon i {
    animation: iconRotate 3s ease-in-out infinite;
    color: #3f37c9;
}

.feature-item:nth-child(6) .animated-icon i {
    animation: iconFloat 3s ease-in-out infinite;
    color: #4361ee;
}

/* Smart Scheduling icon - blue color to match theme */
.feature-item .feature-icon .fa-calendar-check.blue-icon {
    color: var(--primary) !important;
}

.feature-item:hover .animated-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-animated:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: var(--primary-color);
    color: white;
}

.btn-animated:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.btn-animated:hover i {
    animation: iconSlide 1s ease infinite;
}

.btn-hover-effect {
    animation: buttonPop 0.5s ease;
}

.btn-animated span {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-scrolled .navbar-nav .nav-link {
    color: var(--text-dark);
}

.navbar-brand {
    position: relative;
    padding: 8px 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 120px;
    width: auto;
    margin-bottom: 6px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 1.5rem;
    padding: 0.5rem 0;
    position: relative;
    color: #fff;
    white-space: nowrap;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1.5rem;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    display: flex;
    align-items: center;
}

.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 37, 54, 0.9) 0%, rgba(58, 12, 163, 0.6) 100%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 2;
    margin-top: 120px;
    padding-top: 60px;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 650px;
    margin: 30px auto 60px;
    padding: 0;
    overflow: visible;
    white-space: normal;
    line-height: 1.6;
}

.hero-buttons {
    margin: 0 0 80px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
}

/* Move hero buttons up slightly on desktop */
@media (min-width: 1200px) {
  .hero .hero-buttons {
    position: relative;
    top: -20px;
  }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.float-element.f1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.float-element.f2 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.float-element.f3 {
    bottom: 25%;
    left: 10%;
    animation-delay: 2s;
}

.float-element.f4 {
    bottom: 15%;
    right: 15%;
    animation-delay: 3s;
}

/* ===== JASMINE SECTION ===== */
.jasmine-section {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.jasmine-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTAgNTEuNzZjMzYuMjEtMi4yNSA3Ny41Ny0zLjU4IDEyNi40Mi0zLjU4IDMyMCAwIDMyMCA1NyA2NDAgNTcgMjcxLjE1IDAgMzEyLjU4LTQwLjkxIDUxMy41OC01Ny40VjBIMHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCA5MC43MmMxNzEtMTcuNTQgMzM3Ljc2LTMxLjc0IDUwMC0zMS43NCAyNzAuNDIgMCAzMjEuNTggNTYuOTQgNzgwIDU2Ljk0IDIyLjg2IDAgNDMuMTktLjg4IDYwLS4zOVYwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgNTcuNzRjMTk3LjE4LTIzLjU2IDM0OS4yLTQ3LjEgNTAwLTU3Ljc0IDMzOC4yOC0yMy4zIDQ2OS43IDU3Ljc0IDc4MCA1Ny43NCA2Ni4wMiAwIDEyNi40Mi0xNS4xMSAyMDAtMzIuMTZWMEgweiIvPjwvZz48L3N2Zz4=');
    background-size: 100% 100px;
    background-position: top;
    background-repeat: no-repeat;
    /* z-index: 1; */
    opacity: 0.5;
}

.content-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden; /* contain any accidental overflow */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

 /* Allow text column to shrink and wrap inside flex row */
 .feature-item .feature-text {
    min-width: 0;
    overflow-wrap: break-word; /* only break if necessary, avoid mid-word */
    word-break: normal;        /* normal word breaking */
    hyphens: none;             /* disable auto hyphenation */
 }

.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Support h6 headings used in compact feature lists */
.feature-text h6 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

 /* Ensure long words wrap gracefully inside feature text */
 .feature-text, .feature-text h5, .feature-text p {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
 }

/* ===== PracticeIQ fine-tuning ===== */
#practiceiq .content-card {
    padding: 2rem; /* was 2.5rem globally */
}

#practiceiq .feature-grid {
    gap: 1.25rem; /* tighten grid gap slightly */
}

#practiceiq .feature-item {
    gap: 0.75rem; /* reduce icon-to-text gap to gain text width */
}

/* Force specific feature items to first column in the 2-col grid */
#practiceiq .feature-grid .col-1-only {
    grid-column: 1;
}

/* Support 'feature-item-alt' structure used by copied block */
#practiceiq .feature-item-alt {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

#practiceiq .feature-icon-alt {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

#practiceiq .try-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--primary);
    font-weight: 600;
}

/* Subtle pulse beacon for "Try it" links */
#practiceiq .try-link.pulse-beacon {
    position: relative;
    padding: 2px 4px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  #practiceiq .try-link.pulse-beacon::after {
      content: "";
      position: absolute;
      inset: -6px;
      border-radius: 10px;
      border: 4px solid var(--primary);
      opacity: 0;
      pointer-events: none;
      animation: try-pulse-ring 3s ease-in-out infinite;
      animation-delay: var(--pulse-delay, 0s);
  }

  @keyframes try-pulse-ring {
      0%, 60% { transform: scale(1); opacity: 0; }
      70%     { transform: scale(1.04); opacity: .25; }
      100%    { transform: scale(1.08); opacity: 0; }
  }
}

/* ===== CairGiver fine-tuning ===== */
#cairgiver .content-card {
    padding: 2rem; /* tighten spacing to give text more room */
}

#cairgiver .feature-grid {
    gap: 1rem; /* reduce grid gap to reclaim width */
}

#cairgiver .feature-item {
    gap: 0.75rem; /* bring icon closer to text */
    padding: 0.75rem; /* lighter padding inside items */
}

#cairgiver .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem; /* slightly smaller icon to prevent wrapping */
}

#cairgiver .feature-text h5 {
    font-size: 0.95rem; /* shrink title a bit */
    margin-bottom: 0.35rem;
    line-height: 1.25; /* tighter line height */
}

#cairgiver .feature-text p {
    font-size: 0.82rem; /* shrink description slightly */
    line-height: 1.35;
}

/* ===== CairIQ Products (Owen) feature text wrapping hardening ===== */
#cairiq_products .feature-item {
    display: flex; /* match working layout from preview */
    align-items: flex-start; /* allow multi-line titles without vertical centering issues */
    gap: 0.75rem; /* reclaim width */
    min-width: 0; /* allow grid child to shrink */
    padding: 0.75rem; /* lighter padding like Clara */
}

#cairiq_products .feature-text {
    flex: 1 1 0; /* allow the text column to shrink in the flex row */
    min-width: 0; /* permit wrapping within flex */
    word-break: normal; /* avoid mid-word splitting */
    overflow-wrap: break-word; /* break only when necessary */
    hyphens: none;
}

 #cairiq_products .feature-text h5,
 #cairiq_products .feature-text p {
    min-width: 0;
    max-width: 100%;
    white-space: normal; /* explicitly allow wrapping */
    overflow-wrap: break-word; /* avoid mid-word unless necessary */
    word-break: normal;
    hyphens: none;
 }

#cairiq_products .feature-grid {
    gap: 1rem; /* reduce grid gap like Clara */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* prevent min-content overflow */
}

#cairiq_products .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex: 0 0 auto; /* keep icon from shrinking/growing */
}

#cairiq_products .feature-text h5 {
    font-size: 0.95rem;
}

/* ===== Jasmine feature text wrapping hardening ===== */
#jasmine .feature-item {
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0; /* allow grid child to shrink */
}

/* Position Jasmine value stream lower */
#jasmine .value-stream {
    margin-top: 150px;
}

#jasmine .feature-text {
    flex: 1 1 0;
    min-width: 0;
}

 #jasmine .feature-text h5,
 #jasmine .feature-text p {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
 }

#jasmine .feature-grid {
    gap: 1rem; /* reduce grid gap like Clara */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* prevent min-content overflow */
}

#jasmine .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

#jasmine .feature-text h5 {
    font-size: 0.95rem;
}

/* Mobile: make features single column to avoid overly narrow items */
@media (max-width: 576px) {
    /* Avoid left-edge clipping: let Bootstrap's default container/row gutters work naturally */
    .jasmine-section {
        overflow: visible; /* prevent clipping of shadows/edges */
    }
    /* Reduce gutter width so row negative margins don't push content beyond viewport */
    #jasmine .row {
        --bs-gutter-x: 1rem; /* default is 1.5rem; smaller to be safer on narrow screens */
    }
    #jasmine .feature-grid {
        grid-template-columns: 1fr; /* single column on small screens */
        gap: 0.75rem; /* tighter spacing */
    }
    #jasmine .feature-item {
        padding: 0.75rem; /* reduce padding to reclaim width */
        gap: 0.65rem;
    }
    #jasmine .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    #jasmine .feature-text h5 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    #jasmine .feature-text p {
        font-size: 0.85rem;
        line-height: 1.35;
    }
}

/* ===== CairAttendant (Clara) fine-tuning ===== */
#cairattendant .content-card {
    padding: 2rem; /* tighten spacing to give text more room */
}

#cairattendant .feature-grid {
    gap: 1rem; /* reduce grid gap to reclaim width */
}

#cairattendant .feature-item {
    gap: 0.75rem; /* bring icon closer to text */
    padding: 0.75rem; /* lighter padding inside items */
}

#cairattendant .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem; /* slightly smaller icon to prevent wrapping */
}

#cairattendant .feature-text h5 {
    font-size: 0.95rem; /* shrink title a bit */
    margin-bottom: 0.35rem;
    line-height: 1.25; /* tighter line height */
}

#cairattendant .feature-text p {
    font-size: 0.82rem; /* shrink description slightly */
    line-height: 1.35;
}

/* ===== Value Stream (rotating benefits) ===== */
.value-stream {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.value-stream .vs-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.value-stream .vs-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.value-stream .vs-text {
    font-weight: 600;
    font-size: 0.95rem;
    /* Allow long messages to wrap within the pill */
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
 }

/* Enter/Exit animations */
.vs-enter { animation: vs-fade-in 300ms ease forwards; }
.vs-exit  { animation: vs-fade-out 300ms ease forwards; }

@keyframes vs-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes vs-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vs-enter, .vs-exit { animation: none !important; }
}

/* Positioning for Clara avatar stack */
#cairattendant .jasmine-visual {
    flex-direction: column; /* stack avatar and value stream vertically */
    gap: 0.75rem;
}

/* Positioning for Jasmine avatar stack */
#jasmine .jasmine-visual {
    flex-direction: column; /* stack avatar and any value stream vertically */
    gap: 0.75rem;
}

#cairattendant .value-stream {
    position: relative;
    z-index: 4; /* above bubbles */
    margin-top: 150px; /* nudged an additional 50px lower */
    opacity: 0; /* hidden initially for delayed reveal */
    transform: translateX(40px); /* off to the right */
}

/* Delayed slide-in for Clara value stream */
#cairattendant .value-stream.vs-show {
    animation: vs-slide-in 400ms ease forwards;
}

@keyframes vs-slide-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  #cairattendant .value-stream { opacity: 1; transform: none; }
  #cairattendant .value-stream.vs-show { animation: none; }
}

/* Jasmine Visual */
.jasmine-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;            /* ensure children (avatar, value-stream, bubbles) stack */
    flex-direction: column;   /* vertical stack by default */
    align-items: center;      /* center avatar and value stream */
    gap: 0.75rem;             /* consistent spacing */
    justify-content: center;
}
/* Positioning for CairGiver avatar stack */
#cairgiver .jasmine-visual {
    flex-direction: column; /* stack avatar and value stream vertically */
    gap: 0.75rem;
}

#cairgiver .value-stream {
    position: relative;
    z-index: 4;
    margin-top: 150px; /* match Clara offset; adjust if needed */
    opacity: 0; /* hidden initially for delayed reveal */
    transform: translateX(40px); /* off to the right */
}

#cairgiver .value-stream.vs-show {
    animation: vs-slide-in 400ms ease forwards;
}

@media (max-width: 576px) {
  #cairgiver .value-stream { 
    margin-top: 100px; /* adjust for mobile */
  }
}

@media (prefers-reduced-motion: reduce) {
  #cairgiver .value-stream { opacity: 1; transform: none; }
  #cairgiver .value-stream.vs-show { animation: none; }
}

/* (moved caregiver mobile tech-circle overrides to mobile-fixes.css) */

/* Positioning for David avatar stack */
#david .jasmine-visual {
    flex-direction: column; /* stack avatar and value stream vertically */
    gap: 0.75rem;
}

#david .value-stream {
    position: relative;
    z-index: 4;
    margin-top: 150px; /* match Clara/Owen offset */
    opacity: 0; /* hidden initially for delayed reveal */
    transform: translateX(40px); /* off to the right */
}

#david .value-stream.vs-show {
    animation: vs-slide-in 400ms ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  #david .value-stream { opacity: 1; transform: none; }
  #david .value-stream.vs-show { animation: none; }
}

/* Positioning for Owen (CairIQ Products) avatar stack */
#cairiq_products .jasmine-visual {
    flex-direction: column; /* stack avatar and value stream vertically */
    gap: 0.75rem;
}

#cairiq_products .value-stream {
    position: relative;
    z-index: 4;
    margin-top: 150px; /* match Clara/David offset */
    opacity: 0; /* hidden initially for delayed reveal */
    transform: translateX(40px); /* off to the right */
}

#cairiq_products .value-stream.vs-show {
    animation: vs-slide-in 400ms ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  #cairiq_products .value-stream { opacity: 1; transform: none; }
  #cairiq_products .value-stream.vs-show { animation: none; }
}
/* PracticeIQ (PracticeDesk/Automation/Integrity) avatar stack */
#practiceiq .jasmine-visual {
    flex-direction: column; /* stack avatar and value stream vertically */
    gap: 0.75rem;
}

#practiceiq .value-stream {
    position: relative;
    z-index: 4;
    margin-top: 150px; /* lower the pill */
    opacity: 0; /* hidden initially for delayed reveal */
    transform: translateX(40px); /* off to the right */
}

#practiceiq .value-stream.vs-show {
    animation: vs-slide-in 400ms ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  #practiceiq .value-stream { opacity: 1; transform: none; }
  #practiceiq .value-stream.vs-show { animation: none; }
}

/* ResearchIQ (ResearchMonitor/ResearchCompanion) avatar stack */
#researchiq .jasmine-visual {
    flex-direction: column; /* stack avatar and value stream vertically */
    gap: 0.75rem;
}

#researchiq .value-stream {
    position: relative;
    z-index: 4;
    margin-top: 150px; /* lower the pill */
    opacity: 0; /* hidden initially for delayed reveal */
    transform: translateX(40px); /* off to the right */
}

#researchiq .value-stream.vs-show {
    animation: vs-slide-in 400ms ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  #researchiq .value-stream { opacity: 1; transform: none; }
  #researchiq .value-stream.vs-show { animation: none; }
}

/* Owen avatar framing tweaks */
#cairiq_products .jasmine-avatar img {
    object-position: center center; /* center Owen image in circle */
}

.jasmine-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid #fff;
    position: relative;
    z-index: 2;
    background: #ffdfbf;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jasmine-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.chat-bubble {
    position: absolute;
    background: #fff;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 220px;
    font-size: 0.875rem;
    z-index: 3;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.chat-1 {
    top: calc(20% - 20px);
    left: 0;
    animation: float 5s ease-in-out infinite;
}

.chat-2 {
    top: calc(50% - 20px);
    right: 0;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.chat-3 {
    bottom: calc(20% + 20px);
    left: 10%;
    animation: float 5s ease-in-out infinite;
    animation-delay: 2s;
}

.tech-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.tech-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
}

/* Icon sizing inside tech circles */
.tech-circle i {
    font-size: 1.25rem;
    line-height: 1;
}

.tc1 {
    top: 10%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

.tc2 {
    top: 70%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.tc3 {
    top: 20%;
    right: 15%;
    animation: float 5s ease-in-out infinite;
    animation-delay: 2s;
}

.tc4 {
    bottom: 15%;
    right: 20%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 3s;
}

/* Stats Container */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: var(--light);
    position: relative;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.form-floating > .form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid #e5e7eb;
    padding: 1rem 1rem;
}

.form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem;
}

.newsletter-form .form-control {
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding-left: 1.5rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn {
    border-radius: 50px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
}

.newsletter-form .btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2Y4ZjlmYSI+PHBhdGggZD0iTTAgNTEuNzZjMzYuMjEtMi4yNSA3Ny41Ny0zLjU4IDEyNi40Mi0zLjU4IDMyMCAwIDMyMCA1NyA2NDAgNTcgMjcxLjE1IDAgMzEyLjU4LTQwLjkxIDUxMy41OC01Ny40VjBIMHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCA5MC43MmMxNzEtMTcuNTQgMzM3Ljc2LTMxLjc0IDUwMC0zMS43NCAyNzAuNDIgMCAzMjEuNTggNTYuOTQgNzgwIDU2Ljk0IDIyLjg2IDAgNDMuMTktLjg4IDYwLS4zOVYwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgNTcuNzRjMTk3LjE4LTIzLjU2IDM0OS4yLTQ3LjEgNTAwLTU3Ljc0IDMzOC4yOC0yMy4zIDQ2OS43IDU3Ljc0IDc4MCA1Ny43NCA2Ni4wMiAwIDEyNi40Mi0xNS4xMSAyMDAtMzIuMTZWMEgweiIvPjwvZz48L3N2Zz4=');
    background-size: 100% 100px;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0.1;
}

/* Rotating helper avatar fade effects (index-david-preview.html) */
.avatar-rotator {
  display: inline-block;
  transition: opacity 0.3s ease;
  opacity: 1;
}
.avatar-rotator.fade-out {
  opacity: 0;
}
.avatar-rotator.fade-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .avatar-rotator { transition: none; }
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    text-decoration: none;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links li a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ===== RESPONSIVE STYLES ===== */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .feature-grid {
        gap: 1.25rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    /* Adjust section padding for tablet */
    section {
        padding: 70px 0;
    }
    
    /* Adjust card spacing */
    .content-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Leadership cards adjustments */
    .leadership-card {
        margin-bottom: 2rem;
    }
    
    /* Products page adjustments */
    .product-card {
        margin-bottom: 2rem;
    }
    
    /* Investors page adjustments */
    .investor-card {
        margin-bottom: 2rem;
    }
    
    /* About page adjustments */
    .about-image {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Header & Navigation */
    .navbar-brand {
        padding: 6px 10px;
    }
    
    .navbar-brand img {
        height: 80px;
    }
    
    .navbar-brand .subtitle {
        font-size: 0.9rem;
    }
    
    .hero-inner {
        margin-top: 80px;
        padding-top: 40px;
    }
    
    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .navbar-collapse {
        background-color: rgba(26, 37, 54, 0.95);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 100px 0 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
        margin: 20px auto 40px;
    }
    
    .hero-buttons {
        margin: 0 0 40px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Jasmine Section */
    .jasmine-section {
        padding: 60px 0;
    }
    
    .jasmine-visual {
        min-height: 300px;
        margin-top: 2rem;
    }
    
    .jasmine-avatar {
        width: 150px;
        height: 150px;
    }
    
    .chat-bubble {
        max-width: 180px;
        font-size: 0.8rem;
    }
    
    /* Tech Circles */
    .tech-circle {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    .tech-circle i {
        font-size: 1.1rem;
    }
    
    .tech-circles {
        margin-top: 2rem;
    }
    
    /* Stats Container */
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* About Page */
    .about-content h2 {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: 0;
    }
    
    /* Leadership Page */
    .leadership-card {
        height: auto;
    }
    
    .leadership-image {
        height: 250px;
    }
    
    /* Products Page */
    .product-card {
        height: auto;
    }
    
    /* Investors Page */
    .investor-card {
        height: auto;
    }
    
    /* Contact Page */
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    /* Remove custom container padding that could fight Bootstrap gutters and cause clipping */
    /* .container { padding-left: 20px; padding-right: 20px; } */
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin: 15px auto 30px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: unset;
        margin: 0;
    }
    
    /* Floating elements */
    .floating-elements {
        display: none;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header .lead {
        font-size: 1rem;
    }
    
    /* Stats Section */
    .stats-container {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Feature Grid */
    .feature-grid {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .feature-content h5 {
        font-size: 0.9rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }

    /* Jasmine tech circles above chat bubbles on small screens */
    #jasmine .jasmine-visual { position: relative; }
    #jasmine .tech-circles { z-index: 5; transform: translateY(-610px); }
    #jasmine .chat-bubble { z-index: 3; }

    /* Reposition circles to sit above the comment bubbles near the avatar */
    #jasmine .tc1 { top: 8%; left: 18%; }
    #jasmine .tc2 { top: 14%; left: 6%; }
    #jasmine .tc3 { top: 8%; right: 18%; }
    #jasmine .tc4 { top: 16%; right: 6%; }

    /* About Page */
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-item h4 {
        font-size: 1.1rem;
    }
    
    /* Leadership Page */
    .leadership-card {
        padding: 1rem;
    }
    
    .leadership-image {
        height: 200px;
    }
    
    .leadership-info h4 {
        font-size: 1.2rem;
    }
    
    /* Products Page */
    .product-card {
        padding: 1rem;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
    }
    
    /* Investors Page */
    .investor-card {
        padding: 1rem;
    }
    
    .investor-card h3 {
        font-size: 1.3rem;
    }
    
    /* Contact Page */
    .contact-info-card,
    .contact-form-card {
        padding: 1.2rem;
    }
    
    .contact-info-list li {
        font-size: 0.9rem;
    }
    
    /* Form elements */
    .form-floating > label {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-brand {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .footer-bottom p,
    .footer-bottom-links li a {
        font-size: 0.8rem;
    }
}

/* Additional Hero Section Styles */
.z-index-high {
    z-index: 100;
}

.hero-inner {
    padding: 60px 0;
}

.affiliate-text {
    margin-top: 80px;
    opacity: 0.8;
}

.affiliate-text a {
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.affiliate-text a:hover {
    border-bottom-color: #fff;
}

/* Additional responsive utilities */
@media (max-width: 767px) {
    .text-center-sm {
        text-align: center !important;
    }
    
    .mb-4-sm {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-inner {
        padding: 20px 0;
    }
    
    .affiliate-text {
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .d-none-xs {
        display: none !important;
    }
    
    .hero-inner {
        padding: 30px 0;
    }
}
