/* ========================================
   3xP - Main Style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec489a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #ec489a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
}

/* Navbar */
.navbar {
    background: var(--dark);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    margin: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    padding: 120px 0 80px;
    color: white;
    margin-top: 70px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero .btn {
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 50px;
}

/* Cards */
.feature-card, .shop-card, .testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
}

.feature-card:hover, .shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

/* Stats */
.stats-section {
    background: var(--dark);
    padding: 60px 0;
    color: white;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA */
.cta-section {
    background: var(--gradient);
    padding: 60px 0;
    text-align: center;
    color: white;
}

/* Footer */
.footer {
    background: #020617;
    padding: 60px 0 30px;
    color: #94a3b8;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
}
/* ========== CHATBOT WIDGET ========== */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
    transition: all 0.3s;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
}

.chatbot-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header .btn-close {
    filter: invert(1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-message {
    background: white;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-bottom-left-radius: 4px;
}

.user-message {
    background: #6366f1;
    color: white;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    width: fit-content;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chatbot-input input:focus {
    border-color: #6366f1;
}

.chatbot-input button {
    background: #6366f1;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-input button:hover {
    background: #4f46e5;
    transform: scale(1.02);
}

@media (max-width: 576px) {
    .chatbot-box {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero {
        text-align: center;
    }
    .hero .btn {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 20px;
    }
    .hero {
        padding: 100px 0 50px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero .lead {
        font-size: 16px;
    }
    .hero .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    .hero .btn {
        width: 100%;
        text-align: center;
    }
    .feature-card, .shop-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    .stat-number {
        font-size: 32px;
    }
    .stats-section .row > div {
        margin-bottom: 20px;
    }
    .cta-section h2 {
        font-size: 24px;
    }
    .footer {
        text-align: center;
    }
    .footer .col-md-4, .footer .col-md-2, .footer .col-md-3 {
        margin-bottom: 30px;
    }
    .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 24px;
    }
    .hero .lead {
        font-size: 14px;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .feature-card {
        padding: 16px;
    }
    .stat-number {
        font-size: 28px;
    }
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .form-control, .form-select {
        font-size: 14px;
        padding: 8px 12px;
    }
}