
/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.body {
    margin:0;
}
/* General Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background: var(--light-color);
    padding-top: 70px;
}

.main-content {
    min-height: calc(100vh - 300px);
}

/* Gradients */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-dark-gradient {
    background: var(--gradient-dark);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--gradient-dark);
    padding: 80px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.min-vh-75 {
    min-height: 75vh;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.stat-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.placeholder-image {
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-body {
    padding: 20px;
}

.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-image-placeholder {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-body {
    padding: 20px;
}

.news-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.news-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Feature List */
.feature-list .feature-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

/* Contact Section */
.contact-info .contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.ai-chatbot-preview {
    backdrop-filter: blur(10px);
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chatbot-widget.show {
    display: flex;
}

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 350px;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    z-index: 999;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.bot-message, .user-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #e2e8f0;
    color: var(--dark-color);
}

.message-content {
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 70%;
    line-height: 1.5;
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.3rem;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
.footer {
    margin-top: 80px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .hero-section {
        padding: 40px 0;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 30px;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
