:root {
    /* Premium Color Palette */
    --primary-color: #0f172a;
    /* Deep Slate */
    --secondary-color: #f59e0b;
    /* Amber Gold */
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* 3D Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Spacing & Radius */
    --radius-pill: 50px;
    --radius-card: 16px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.text-center {
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
    color: white;
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3d);
}

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight {
    color: var(--secondary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.feature-list li i {
    color: var(--secondary-color);
}

/* =========================================
   Forms (Premium)
   ========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Alert Boxes */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

/* =========================================
   CAPSULE HEADER (PREMIUM 3D)
   ========================================= */
header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}

.capsule-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.95);
    /* Dark background */
    backdrop-filter: blur(10px);
    padding: 10px 30px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-3d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: white;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-btn {
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.nav-btn:hover {
    background: white;
    color: var(--secondary-color);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO 3D SECTION
   ========================================= */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar 3D */
.search-bar-3d {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: var(--radius-pill);
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* =========================================
   Common Card Styles (3D Glass)
   ========================================= */
.glass-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-3d);
}

@media (max-width: 768px) {
    .capsule-nav {
        padding: 10px 20px;
    }

    /* Mobile Menu (Slide-in Glass) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        /* Below header */
        right: -100%;
        /* Hidden by default */
        width: 100%;
        max-width: 300px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        height: auto;
        border-radius: 20px;
        padding: 30px;
        box-shadow: var(--shadow-3d);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 20px;
        z-index: 999;
        margin: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        font-size: 1.1rem;
        padding: 10px;
        border-radius: 10px;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Above everything */
    }

    /* Typography & Layout */
    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .search-bar-3d {
        flex-direction: column;
        border-radius: 20px;
        margin: 0 20px;
    }

    .search-btn {
        padding: 15px;
        width: 100%;
    }

    /* Fix Grid Layout for Mobile */
    .grid {
        grid-template-columns: 1fr !important;
        /* Stack single column */
        gap: 30px !important;
    }

    .glass-card {
        margin: 0 10px;
        /* Prevent edge touching */
    }

    /* Chatbot Mobile Override */
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 2000;
        /* Ensure it covers everything when open */
    }

    .chatbot-toggle {
        bottom: 90px;
        right: 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-btn {
        display: none;
        /* Hide 'Dashboard/Login' & 'Contact' buttons in header to save space, rely on menu (needs adding there if critical, otherwise rely on pages) */
        /* Actually, let's keep them if possible or hide text */
    }
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 20px rgba(37, 211, 102, 0.6);
    color: white;
}


/* =========================================
   Chatbot Widget (Premium 3D)
   ========================================= */
.chatbot-toggle {
    position: fixed;
    bottom: 110px;
    /* Above WhatsApp */
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 40px;
    /* Aligned with toggle */
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-body {
    flex: 1;
    padding: 20px;
    background: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message,
.user-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bot-message {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--secondary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-options button {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.quick-options button:hover {
    background: var(--secondary-color);
    color: white;
}

.chatbot-toggle {
    right: 20px;
    bottom: 90px;
}
}