:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --accent: #00f2fe;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

[data-bs-theme="dark"] {
    --bg: #0f1115;
    --bg-alt: #161b22;
    --text: #e6e6e6;
    --text-muted: #9ca3af;
    --border: #30363d;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Navigation */
.premium-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-bs-theme="dark"] .premium-nav {
    background: rgba(15,17,21,0.95);
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.accent {
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.masthead {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    min-height: 100vh;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.glow-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(13,110,253,0.4);
    transition: var(--transition);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,110,253,0.6);
    color: white;
}

/* Service Cards */
.section-alt {
    background: var(--bg-alt);
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,0.1);
    border-radius: 12px;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,0.1);
    border-radius: 8px;
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
}

/* Contact Form */
.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
}

.form-control {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.form-control:focus {
    background: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
}

/* Footer */
.premium-footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border-top: 1px solid var(--border);
}

.hover-white:hover {
    color: white !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 1050;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Chatbot */
.chatbot-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1050;
    transition: var(--transition);
}

.chatbot-btn:hover {
    transform: scale(1.1);
}

.chatbot-popup {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1060;
    display: none;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: 350px;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 85%;
}

.chat-message.bot {
    background: var(--bg-alt);
    align-self: flex-start;
}

.chat-message.user {
    background: var(--primary);
    color: white;
    margin-left: auto;
}

.chatbot-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

/* Cart Badge */
.cart-badge {
    font-size: 0.7rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    border: 1px solid var(--border);
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .masthead {
        padding: 120px 0 60px;
    }
    
    .chatbot-popup {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Shop Page */
.shop-header {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Product Card */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

/* Portfolio */
.portfolio-item img {
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Counters */
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}