/* SJBS Digital - Global Styles (Etsy Inspired) */

:root {
    --primary-color: #222222;
    /* Near Black */
    --accent-color: #F1641E;
    /* Etsy Orange */
    --secondary-color: #10B981;
    --dark-bg: #222222;
    --light-bg: #FDFBF7;
    /* Warm Off-white */
    --white: #ffffff;
    --text-dark: #222222;
    --text-muted: #595959;
    --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    /* Subtle styling */
    --hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bg-watermark {
    background-image: url('/SJBS%20Digital/public/assets/images/login-watermark.png');
    background-repeat: repeat;
    background-size: 400px;
    background-attachment: fixed;
    background-position: center;
}

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar overrides */
/* Navbar overrides */
/* Navbar overrides */
.navbar {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    /* Soft shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.85) !important;
    /* Translucent */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    transition: all 0.3s ease;
}

/* Adjust top padding to match fixed navbar height */
body {
    padding-top: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1e293b;
    /* Slate 800 */
}

.navbar-brand {
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #F1641E 0%, #d946ef 100%);
    /* Gradient Text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
}

.nav-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #475569 !important;
    /* Slate 600 */
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus {
    color: #F1641E !important;
    /* Brand Orange */
    background-color: rgba(241, 100, 30, 0.05);
    /* Subtle orange tint */
    transform: translateY(-1px);
}

.nav-link.active {
    color: #F1641E !important;
    font-weight: 700;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    color: #475569;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #F1641E;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Hero Section */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 500px;
    /* Banner height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    color: white;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken for text readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.product-card {
    transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very light border */
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.product-card img {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.btn-primary {
    background-color: #222;
    /* Black buttons */
    border: none;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    border-radius: 24px;
    /* Pill shape */
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #444;
    transform: scale(1.02);
}

.text-gradient {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #F1641E;
    color: #F1641E;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden on desktop */
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item-mobile {
    text-align: center;
    color: #6B7280;
    font-size: 0.8rem;
    text-decoration: none;
}

.nav-item-mobile.active {
    color: var(--primary-color);
}

.nav-item-mobile i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
        /* Space for bottom nav */
    }
}

/* Footer Styles */
.site-footer {
    background-color: #0F172A;
    /* Carbon Blue */
    color: #cbd5e1;
    /* Slate 300 for better contrast */
    font-size: 0.95rem;
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
    letter-spacing: 0.5px;
}

.site-footer a.text-white-50 {
    color: #94a3b8 !important;
    /* Slate 400 */
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer a.hover-white:hover {
    color: #38bdf8 !important;
    /* Sky Blue accent on hover */
    padding-left: 5px;
    /* Subtle movement */
}

.footer-social-btn {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.footer-social-btn:hover {
    background-color: #38bdf8;
    border-color: #38bdf8 !important;
    color: #fff !important;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #020617;
    /* Darker Slate */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0F172A;
    opacity: 0.7;
    /* 70% Carbon Blue overlay */
    z-index: 0;
}

/* Category Card Hover */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.category-card .icon-box {
    transition: transform 0.3s ease;
}

.category-card:hover .icon-box {
    transform: scale(1.1);
}

/* Partners Overlay */
.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.z-index-1 {
    z-index: 1;
}

/* Accordion Polish */
.accordion-button:not(.collapsed) {
    color: #222;
    background-color: rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

/* Rating Selection Fix */
.rating-select .btn-check:checked+.btn-outline-warning {
    background-color: #ffc107;
    color: #fff;
    border-color: #ffc107;
}

/* Etsy-style Category Strip */
.category-nav {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    position: fixed;
    /* Changed from relative/margin approach to fixed */
    top: 70px;
    /* Sit directly below main navbar */
    left: 0;
    width: 100%;
    z-index: 900;
}

.category-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    /* Critical: remove bullets */
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-list li {
    list-style: none;
    /* Double ensure */
}

/* Category Link Style - Clean & Simple */
.category-link {
    display: block;
    padding: 12px 16px;
    color: #222;
    font-size: 0.95rem;
    /* Slightly larger for readability */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.1s ease;
}

.category-link:hover {
    color: #F1641E;
    /* Brand color hover */
    background-color: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Toggle Button */
#categoryToggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #222;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

#categoryToggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
}

/* Ensure navbar spacing for both bars (70px + ~50px) */
body {
    padding-top: 120px;
}

.navbar.fixed-top {
    position: fixed;
    height: 70px;
}

/* Mega Menu Panel */
#expandedCategories {
    border-top: 1px solid #eee;
}

@media (max-width: 991px) {
    .category-list {
        justify-content: flex-start;
        padding: 0 5px;
    }
}

.hover-primary:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* AI Chatbot Styles - Premium Glassmorphism */
/* AI Chatbot Styles - Premium Glassmorphism */
.sticky-chatbot-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    /* Indigo to Purple */
    color: white;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1060;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
}

.sticky-chatbot-btn:hover {
    transform: translateY(-50%) scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.sticky-chatbot-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.sticky-chatbot-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-window {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 100px;
    /* Left of the button */
    width: 380px;
    height: 600px;
    background: rgba(255, 255, 255, 0.85);
    /* Glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1070;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate(20px, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%) scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h5 {
    font-family: 'Nunito', sans-serif;
    /* Modern font */
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    /* Green */
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 10px #4ade80;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.chat-message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    animation: message-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes message-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message.bot {
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-right: auto;
}

.chat-message.user {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.chat-footer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
}

.chat-footer input {
    flex: 1;
    border: 2px solid #eef2ff;
    border-radius: 30px;
    padding: 12px 20px;
    outline: none;
    font-size: 0.95rem;
    background: #f9fafb;
    color: #374151;
    transition: all 0.3s ease;
}

.chat-footer input:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.chat-footer button {
    background: #6366f1;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-footer button:hover {
    background: #4f46e5;
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 16px 20px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Responsive Logic */
@media (max-width: 768px) {
    .sticky-chatbot-btn {
        right: 20px;
        bottom: 90px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .chat-window {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        z-index: 2000;
        background: white;
        /* Mobile optimization */
    }
}

/* --- Global Responsive Fixes --- */

/* ensure images never overflow */
/* ensure images never overflow */
img,
video {
    max-width: 100%;
    height: auto;
}

/* --- New Awesome Layout Styles --- */

/* 1. Marquee / Dual Scroll */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content.reverse {
    animation: marquee-reverse 30s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* 2. Happy Clients (Testimonials) */
.client-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    margin-right: 24px;
    white-space: normal;
    /* Allow text wrap inside card */
    display: inline-block;
    vertical-align: top;
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
}

/* 3. Features Grid */
.feature-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* 4. Stats Counter */
.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #F1641E 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 5. Call to Action */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {

    h1,
    .display-4,
    .display-6 {
        font-size: 2rem !important;
        /* Smaller headings on mobile */
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Adjust container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Ensure body has enough padding for double navbar on mobile if needed */
    /* Currently 120px is fine, but maybe slightly less on mobile if bars are smaller */
    body {
        padding-top: 110px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    min-width: 300px;
    animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

.toast-notification.success {
    border-left-color: #10B981;
}

.toast-notification.error {
    border-left-color: #EF4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-success .toast-icon {
    color: #10B981;
}

.toast-error .toast-icon {
    color: #EF4444;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: #9ca3af;
    background: none;
    border: none;
}

.toast-close:hover {
    color: #4b5563;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutToast {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}