@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #F000FF; /* Flashy Pink/Purple */
    --secondary-color: #00D7FF; /* Flashy Cyan/Blue */
    --dark-bg: #0a0118;
    --navbar-bg: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    background-image: linear-gradient(to bottom, #0c1934, #040d1e);
    color: #f8f9fa;
    min-height: 100vh;
}

.navbar {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.nav-link, .btn-outline-light {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 15px; /* Add padding to make them visually larger */
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-section {
    min-height: 100vh; /* Allow scrolling if content overflows */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.central-shield {
    width: 35vw; /* Control width */
    height: auto; /* Maintain aspect ratio */
    max-width: 600px; /* A bit smaller max size */
    min-width: 280px;
    opacity: 0.9;
    margin-top: 5px; /* Move a bit lower */
}

.company-logo-img {
    max-width: 400px; /* Adjust size as needed */
    height: auto;
    margin-top: 0; /* Moved closer to the shield */
}

.slogan {
    font-size: 1.25rem;
    color: #f8f9fa;
    margin-top: 0.5rem;
}

.cta-buttons {
    margin-top: 2rem;
    margin-bottom: 2rem; /* Add space at the bottom */
    display: flex;
    gap: 1rem;
}

.modern-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    background-position: left center; /* Inverted Animation */
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 197, 248, 0.4);
    background-position: right center; /* Inverted Animation */
}

.btn-white {
    background-color: #fff;
    border: 1px solid #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--dark-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 8px 25px;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-bg) !important;
}

footer {
    background-color: transparent;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
    position: relative;
    right: -20px; /* Move the entire nav block to the right */
}
    .central-shield {
        width: 220px;
        height: auto;
    }
}

/* Homepage Specific Styles */
.homepage .navbar-brand img {
    height: 60px;
}

.homepage .navbar-brand {
    margin-left: -10px; /* Move slightly more to the left */
}

.homepage .hero-section {
    padding-top: 7vh; /* Moved slightly lower */
}

.homepage .central-shield {
    max-width: 1200px; /* Reduced from 1400px */
    width: 50vw; /* Reduced from 60vw */
}

/* Top Icon Frame (Global) */
body { padding-top: 32px; }
.navbar { top: 32px; }
.top-icon-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background-color: transparent;
    backdrop-filter: blur(10px);
    z-index: 1060;
    display: flex;
    align-items: center;
}
.top-icon-frame .container { display: flex; justify-content: flex-end; }
.top-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 15px; }
.top-icons .nav-link {
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 0px;
    color: #f8f9fa;
    transition: color 0.3s ease, transform 0.3s ease;
}
.top-icons .nav-link:hover { color: var(--secondary-color); transform: translateY(-2px); }
.top-icons .dropdown-menu { margin-top: 0.5rem; }

/* Fine-tune Assistance button */
.top-icons .top-assistance { font-size: 0.9rem; }
.top-icons .assistance-item { margin-left: -6px; margin-right: 10px; }

/* Cart count badge color (match Login blue) */
.cart-count {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    font-size: 0.8rem;
    padding: 0.12rem 0.4rem;
    line-height: 1;
}

/* Cart remove button (black X, always visible) */
.cart-remove-btn {
    background: #fff;
    color: #000 !important;
    border: none;
    border-radius: 4px;
    padding: 0 .35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

/* Chat widget */
.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    z-index: 1080;
    cursor: pointer;
}
.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 86px;
    width: 380px;
    max-height: 70vh;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1080;
    display: none;
}
.chat-panel.open { display: block; }
.chat-header { padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:space-between; }
.chat-title { font-weight:700; }
.chat-config-toggle { background:none; border:none; color:#fff; cursor:pointer; }
.chat-config { display:none; padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat-config input, .chat-config select { width:100%; margin-bottom:.5rem; }
.chat-messages { padding: .8rem; overflow:auto; max-height: 45vh; }
.message { padding: .5rem .75rem; border-radius: 10px; margin-bottom: .5rem; }
.message.user { background: rgba(0,215,255,0.12); border:1px solid rgba(0,215,255,0.25); align-self:flex-end; }
.message.ai { background: rgba(240,0,255,0.10); border:1px solid rgba(240,0,255,0.25); }
.chat-input { display:flex; gap:.5rem; padding:.6rem .8rem; border-top:1px solid rgba(255,255,255,0.1); }
.chat-input input { flex:1; }
