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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
    margin-top: 80px; /* Add margin to account for fixed navbar */
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: white;
    font-weight: 700;
}

.nav-logo i {
    margin-left: 10px;
    color: #ffd700;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #ffd700;
    background-color: rgba(255,255,255,0.1);
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Floating Elements */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffd700;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.element-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.element-3 {
    top: 10%;
    right: 60%;
    animation-delay: 3s;
}

.element-4 {
    top: 70%;
    right: 70%;
    animation-delay: 4.5s;
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.feature i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Chatbot Section */
.chatbot-section {
    padding: 80px 0;
    background: white;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 1.5rem;
    color: white;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.bot-message .message-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 15px 5px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 5px 15px;
    max-width: 80%;
}

.chat-input-container {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #667eea;
}

.send-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.1);
}

.example-queries {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}

.example-queries h3 {
    margin-bottom: 1rem;
    color: #333;
}

.query-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.query-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.query-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Quick Access Section */
.quick-access {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.access-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.access-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.access-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.access-card p {
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

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

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

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .query-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .query-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}



/* Thinking Indicator */
.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 15px 15px 15px 5px;
    max-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.thinking-text {
    color: #667eea;
    font-style: italic;
    font-size: 0.9rem;
}

.thinking-dots {
    display: flex;
    gap: 3px;
}

.thinking-dot {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: thinking 1.4s ease-in-out infinite both;
}

.thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-dot:nth-child(2) { animation-delay: -0.16s; }
.thinking-dot:nth-child(3) { animation-delay: 0s; }

@keyframes thinking {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Table Styling */
.formulation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

.formulation-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.formulation-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    vertical-align: top;
}

.formulation-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.formulation-table tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
}

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

/* Ingredient column styling */
.formulation-table td:first-child {
    font-weight: 600;
    color: #2563eb;
    min-width: 180px;
}

/* Percentage column styling */
.formulation-table td:nth-child(2) {
    font-weight: 500;
    color: #059669;
    text-align: center;
    min-width: 100px;
}

/* Function column styling */
.formulation-table td:nth-child(3) {
    color: #7c3aed;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 768px) {
    .formulation-table {
        font-size: 0.8rem;
        margin: 1rem 0;
    }
    
    .formulation-table th,
    .formulation-table td {
        padding: 8px 6px;
    }
    
    .formulation-table td:first-child {
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .formulation-table td:nth-child(2) {
        min-width: 70px;
    }
}

/* Enhanced Message Content */
.message-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.message-content h3 {
    color: #1f2937;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.message-content h4 {
    color: #374151;
    margin: 0.8rem 0 0.4rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.message-content p {
    margin: 0.5rem 0;
    color: #4b5563;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-right: 1.5rem;
}

.message-content li {
    margin: 0.3rem 0;
    color: #4b5563;
}

.message-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Chemical Information Styling */
.chemical-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.chemical-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.chemical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 4px solid #0ea5e9;
}

.detail-label {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 0.9rem;
}

.detail-value {
    color: #374151;
    margin-top: 0.2rem;
}

/* Preparation Steps */
.preparation-steps {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.preparation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #15803d;
    margin-bottom: 0.8rem;
}

.preparation-steps ol {
    padding-right: 1.5rem;
    margin: 0;
}

.preparation-steps li {
    margin: 0.5rem 0;
    color: #374151;
    line-height: 1.5;
}

/* Troubleshooting Section */
.troubleshooting {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.troubleshooting-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 0.8rem;
}

.troubleshooting-list {
    list-style: none;
    padding: 0;
}

.troubleshooting-list li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.troubleshooting-list li strong {
    color: #b45309;
}

/* Safety Warnings */
.safety-warnings {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.safety-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.8rem;
}

.safety-warnings ul {
    list-style: none;
    padding: 0;
}

.safety-warnings li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.safety-warnings li strong {
    color: #dc2626;
}

/* Practical Tips */
.practical-tips {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.tips-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #047857;
    margin-bottom: 0.8rem;
}

.practical-tips ul {
    list-style: none;
    padding: 0;
}

.practical-tips li {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Sources */
.sources {
    background: #e0f2fe;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.sources-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 0.8rem;
}

.sources ul {
    list-style: none;
    padding: 0;
}

.sources li {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Chatbot specific styles */
.bot-message .message-content {
    background: #f0f2f5;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 15px 5px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-message .message-content {
    background: #e0e6f0;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 5px 15px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.loading-spinner {
    display: none; /* Should be hidden as per user request */
}

.spinner {
    display: none; /* Should be hidden as per user request */
}




/* Prevent body scrolling when chatbot is active */


/* Ensure chatbot messages area scrolls independently */
.chat-messages {
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}


/* Video Section */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.video-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.video-section .section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.video-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.video-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.video-benefits li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-benefits li:last-child {
    border-bottom: none;
}

.video-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.stat i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Responsive Video Section */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-section .section-title {
        font-size: 2rem;
    }
    
    .video-section .section-description {
        font-size: 1rem;
    }
    
    .video-info {
        padding: 20px;
    }
}



/* Enhanced Chatbot Styles */
.formula-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.formula-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    text-align: right;
    font-weight: 600;
}

.formula-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

.formula-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.formula-table tr:hover {
    background-color: #e3f2fd;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin: 5px 0;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a67d8;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4ade80;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

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

.highlight {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107;
}

.install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
}

.install-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.install-content .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
}

/* Dark mode styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-mode .navbar {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.dark-mode .chatbot-container {
    background: #2d3748;
}

.dark-mode .chat-messages {
    background: #1a202c;
}

.dark-mode .bot-message .message-content {
    background: #2d3748;
    color: #e0e0e0;
}

.dark-mode .formula-table {
    background: #2d3748;
    color: #e0e0e0;
}

.dark-mode .formula-table th {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.dark-mode .formula-table td {
    border-bottom-color: #4a5568;
}

.dark-mode .formula-table tr:nth-child(even) {
    background-color: #1a202c;
}

.dark-mode .formula-table tr:hover {
    background-color: #2d3748;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .formula-table {
        font-size: 12px;
    }
    
    .formula-table th,
    .formula-table td {
        padding: 8px 10px;
    }
    
    .install-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .install-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Animation for new messages */
.message {
    animation: messageSlideIn 0.3s ease;
}

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

/* Enhanced scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}


/* PWA Install Banner Styles */
.pwa-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease-out;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.pwa-banner-icon {
    font-size: 24px;
    color: #fff;
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.pwa-banner-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.pwa-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pwa-install-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-install-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwa-dismiss-btn:hover {
    background: rgba(255,255,255,0.2);
}

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

/* Mobile responsive for PWA banner */
@media (max-width: 768px) {
    .pwa-banner-content {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .pwa-banner-text h4 {
        font-size: 14px;
    }
    
    .pwa-banner-text p {
        font-size: 12px;
    }
    
    .pwa-install-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pwa-banner-icon {
        font-size: 20px;
    }
}


/* Course Subscription Section */
.course-subscription-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.course-subscription-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.course-subscription-box {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.course-header {
    text-align: center;
    margin-bottom: 40px;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.course-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.course-features {
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.feature-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.feature-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.course-benefits {
    margin-bottom: 40px;
}

.course-benefits h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.benefit-item i {
    color: #28a745;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item span {
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.course-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.pricing-info {
    text-align: center;
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.price-tag .price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

.price-tag .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6c757d;
}

.price-note {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.cta-btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.course-testimonial {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.testimonial-content {
    position: relative;
}

.testimonial-content i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
    opacity: 0.7;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .course-subscription-box {
        padding: 40px 30px;
    }
    
    .course-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .course-subscription-section {
        padding: 60px 0;
    }
    
    .course-subscription-box {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .course-header h2 {
        font-size: 2rem;
    }
    
    .course-subtitle {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .benefit-item {
        padding: 12px;
    }
    
    .course-cta {
        padding: 20px;
        gap: 15px;
    }
    
    .price-tag .price {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        min-width: auto;
        width: 100%;
    }
    
    .course-testimonial {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .course-header h2 {
        font-size: 1.8rem;
    }
    
    .course-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
    
    .price-tag {
        flex-direction: column;
        gap: 0;
    }
    
    .price-tag .price {
        font-size: 2rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
}

