/* Products Page Custom Styles */

/* Products Hero Section */
.products-hero {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    background: #4895ef; /* Changed from var(--dark) to a vibrant blue that matches the accent colors */
    display: flex;
    align-items: center;
}

.products-hero-content {
    position: relative;
    z-index: 10;
    padding: 120px 0 80px 0;
}

/* Products Section Styling */
.products-section {
    padding: 80px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

/* AI Platform Diagram Styling */
.ai-platform-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 20px;
}

.ai-platform-diagram {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.ai-platform-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 15px;
}

.ai-platform-center h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
}

.ai-platform-center h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f72585;
}

.ai-platform-item {
    position: absolute;
    width: 150px;
    transition: all 0.3s ease;
}

.ai-platform-item:hover {
    transform: scale(1.05);
}

.platform-bubble {
    padding: 12px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.platform-bubble h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.blue-bubble {
    background: #00b4d8;
}

.teal-bubble {
    background: #0d6e6e;
}

/* Positioning exactly as in the reference image */
.item-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.item-top-right {
    top: 15%;
    right: 0;
}

.item-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.item-bottom-right {
    bottom: 15%;
    right: 0;
}

.item-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.item-bottom-left {
    bottom: 15%;
    left: 0;
}

.item-left {
    top: 15%;
    left: 0;
    transform: translateY(0);
}

.platform-footer {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/* Add connecting lines */
.ai-platform-diagram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTAgNTEuNzZjMzYuMjEtMi4yNSA3Ny41Ny0zLjU4IDEyNi40Mi0zLjU4IDMyMCAwIDMyMCA1NyA2NDAgNTcgMjcxLjE1IDAgMzEyLjU4LTQwLjkxIDUxMy41OC01Ny40VjBIMHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCA5MC43MmMxNjkuMjUtMTYuMjQgMzI3LjU4LTMxLjU4IDUwMC0zMS41OCAyNjguNDIgMCAzMjEuNTggNTYuOTQgNzgwIDU2Ljk0IDIyLjg2IDAgNDMuMTktLjg4IDYwLS4zOVYwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgNTcuNzRjMTk3LjE4LTIzLjU2IDM0OS4yLTQ3LjEgNTAwLTU3Ljc0IDMzOC4yOC0yMy4zIDQ2OS43IDU3Ljc0IDc4MCA1Ny43NCA2Ni4wMiAwIDEyNi40Mi0xNS4xMSAyMDAtMzIuMTZWMEgweiIvPjwvZz48L3N2Zz4=');
    background-size: 100% 100px;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

/* Product Card Styling */
.product-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.product-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Feature Grid Styling */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: translateX(5px);
}

.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;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(360deg);
}

.feature-text h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Ensure long words wrap gracefully inside feature text on products page */
.feature-item .feature-text,
.feature-text,
.feature-text h5,
.feature-text p {
    min-width: 0;
    overflow-wrap: break-word; /* avoid mid-word unless necessary */
    word-break: normal;        /* normal breaking */
    hyphens: none;             /* disable auto hyphenation */
}

/* Feature List Alternative Style */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item-alt {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(67, 97, 238, 0.03);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-item-alt:hover {
    background: rgba(67, 97, 238, 0.08);
    border-left: 4px solid var(--primary);
}

.feature-icon-alt {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-item-alt:hover .feature-icon-alt {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.try-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.try-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.try-link:hover::after {
    margin-left: 0.75rem;
}

/* Product Image Styling */
.product-image {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

/* Floating Elements Styling */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.float-element {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 149, 239, 0.9);
    color: #fff;
    box-shadow: 0 0 15px rgba(72, 149, 239, 0.6);
    font-size: 1.2rem;
    animation: float 6s infinite ease-in-out;
}

.float-element.f1 {
    top: 10%;
    left: 10%;
    background: rgba(72, 149, 239, 0.9);
    animation-delay: 0s;
}

.float-element.f2 {
    top: 75%;
    left: 15%;
    background: rgba(94, 96, 206, 0.9);
    animation-delay: 1.5s;
}

.float-element.f3 {
    top: 20%;
    left: 85%;
    background: rgba(116, 79, 198, 0.9);
    animation-delay: 3s;
}

.float-element.f4 {
    top: 70%;
    left: 75%;
    background: rgba(156, 39, 176, 0.9);
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

/* Learn More Button */
.learn-more-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.learn-more-btn:hover::before {
    left: 0;
}

/* Language Bubbles Animation */
.translation-image {
    position: relative;
}

.language-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.lang-bubble {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    animation: bubbleFloat 10s infinite ease-in-out;
    animation-delay: var(--delay, 0s);
}

@keyframes bubbleFloat {
    0%, 100% { opacity: 0; transform: translate(0, 20px); }
    20%, 80% { opacity: 1; transform: translate(0, 0); }
}

/* OCR Animation */
.ocr-image {
    position: relative;
}

.ocr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ocr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(76, 201, 240, 0.7);
    box-shadow: 0 0 10px 3px rgba(76, 201, 240, 0.5);
    animation: scanLine 3s infinite ease-in-out;
}

@keyframes scanLine {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.cta-section h2 {
    color: #fff;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .products-section,
    .cta-section {
        padding: 70px 0;
    }
    
    /* AI Platform responsive styles */
    .ai-platform-diagram {
        height: 450px;
    }
    
    .ai-platform-center {
        width: 160px;
        height: 160px;
    }
    
    .ai-platform-center h3 {
        font-size: 1.6rem;
    }
    
    .ai-platform-center h4 {
        font-size: 1.3rem;
    }
    
    .ai-platform-item {
        width: 150px;
    }
    
    .product-card {
        padding: 2.5rem;
    }
    
    .product-title {
        font-size: 2.2rem;
    }
    
    .product-image-container {
        height: 350px;
    }
}

@media (max-width: 991px) {
    .products-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .product-card {
        padding: 2rem;
        margin-bottom: 3.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-image-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    .feature-text h5 {
        font-size: 0.95rem;
    }
    
    .feature-text p {
        font-size: 0.85rem;
    }
    
    .float-element {
        transform: scale(0.8);
    }
}

@media (max-width: 767px) {
    .products-hero {
        min-height: 50vh;
    }
    
    /* AI Platform responsive styles for tablets */
    .ai-platform-diagram {
        height: 400px;
    }
    
    .ai-platform-center {
        width: 140px;
        height: 140px;
    }
    
    .ai-platform-center h3 {
        font-size: 1.4rem;
    }
    
    .ai-platform-center h4 {
        font-size: 1.2rem;
    }
    
    .ai-platform-item {
        width: 130px;
    }
    
    .platform-bubble h5 {
        font-size: 0.8rem;
    }
    
    .platform-bubble {
        padding: 12px;
    }
    
    .products-hero-content {
        padding: 100px 0 60px 0;
    }
    
    .products-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .products-hero-content .lead {
        font-size: 1.1rem;
    }
    
    .products-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header .lead {
        font-size: 1.1rem;
    }
    
    .product-card {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .product-badge {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-grid {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.4rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-item-alt {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .feature-icon-alt {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .language-bubbles {
        display: none;
    }
    
    .float-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        opacity: 0.7;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .products-hero {
        min-height: 40vh;
    }
    
    /* AI Platform responsive styles for mobile */
    .ai-platform-container {
        padding: 10px;
        margin-bottom: 40px;
    }
    
    .ai-platform-diagram {
        height: 320px;
    }
    
    .ai-platform-center {
        width: 110px;
        height: 110px;
        padding: 10px;
    }
    
    .ai-platform-center h3 {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .ai-platform-center h4 {
        font-size: 1rem;
    }
    
    .ai-platform-item {
        width: 100px;
    }
    
    .platform-bubble {
        padding: 8px;
        border-radius: 10px;
    }
    
    .platform-bubble h5 {
        font-size: 0.7rem;
    }
    
    .platform-footer {
        font-size: 0.8rem;
    }
    
    /* Adjust positions for better mobile display */
    .item-top-right {
        top: 10%;
        right: 2%;
    }
    
    .item-bottom-right {
        bottom: 10%;
        right: 2%;
    }
    
    .item-bottom-left {
        bottom: 10%;
        left: 2%;
    }
    
    .products-hero-content {
        padding: 80px 0 40px 0;
    }
    
    .products-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .products-hero-content .lead {
        font-size: 1rem;
    }
    
    .products-section,
    .cta-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header .lead {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .product-badge {
        padding: 0.3rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .product-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }
    
    .feature-grid {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.3rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .feature-text h5 {
        font-size: 0.9rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .feature-icon-alt {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .float-element {
        display: none;
    }
    
    .learn-more-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section .lead {
        font-size: 0.9rem;
    }
    
    .cta-section .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Drug Label Extraction Styles */
.drug-label-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

/* Section Divider Styles */
.section-divider {
    margin: 2rem 0;
    text-align: center;
}

.section-divider h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-divider .divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0.75rem auto;
}

.section-divider p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Intent Classifier Styles */
.intent-classifier-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.floating-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: float 8s infinite ease-in-out;
    z-index: 2;
}

.bubble.b1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.bubble.b2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.bubble.b3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

.bubble.b4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4.5s;
}

.bubble.b5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.feature-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.feature-bullets li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.feature-bullets li:hover {
    transform: translateX(5px);
}

.feature-bullets li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Key Features Section */
.key-features-section {
    padding: 2rem 0;
}

.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border-top: 3px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-lg {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-lg {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

.feature-list-simple {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: 1rem;
}

.feature-list-simple li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list-simple li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive styles for drug label extraction */
@media (max-width: 991px) {
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon-lg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-bullets li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .feature-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon-lg {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-list-simple li {
        font-size: 0.9rem;
    }
    
    .feature-bullets {
        margin-bottom: 0.5rem;
    }
    
    .feature-bullets li {
        font-size: 0.9rem;
    }
}

/* Mobile-specific styles for screens below 480px */
@media (max-width: 480px) {
    /* Hero section responsive adjustments */
    .products-hero {
        min-height: 35vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Adjust navbar for mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand .subtitle {
        font-size: 0.7rem;
    }
    
    /* Hero content adjustments */
    .products-hero-content {
        padding: 60px 0 30px 0;
        width: 100%;
    }
    
    .products-hero-content .container {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .products-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        word-wrap: break-word;
    }
    
    .products-hero-content .divider {
        margin: 0.5rem auto;
    }
    
    .products-hero-content .lead {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        width: 100%;
        word-wrap: break-word;
    }
    
    /* Background image adjustments */
    .hero-bg-img {
        object-fit: cover;
        object-position: center;
    }
}
