/* =========================================
   HAZIONETECHNOLOGIES - GLOBAL STYLESHEET
   ========================================= */

:root {
    --royal-blue: #0A192F;
    --royal-blue-light: #112240;
    --elegant-gold: #D4AF37;
    --elegant-gold-hover: #B5952F;
    --crisp-white: #FFFFFF;
    --light-gray: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--crisp-white);
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--royal-blue);
}
.text-gold { color: var(--elegant-gold) !important; }
.bg-royal { background-color: var(--royal-blue) !important; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: var(--transition);
}
.navbar-brand {
    font-weight: 800;
    color: var(--royal-blue) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.nav-link {
    color: var(--royal-blue) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--elegant-gold);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* =========================================
   BUTTONS
   ========================================= */
.btn-gold {
    background-color: var(--elegant-gold);
    color: var(--crisp-white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-gold:hover {
    background-color: var(--elegant-gold-hover);
    color: var(--crisp-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
    color: var(--crisp-white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-section h1 { color: var(--crisp-white); }
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* =========================================
   CLIENT LOGO MARQUEE (Infinite Scroll)
   ========================================= */
.marquee-section {
    background-color: var(--light-gray);
    padding: 4rem 0;
    overflow: hidden;
}
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
/* Fade edges for a seamless, premium look */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--light-gray), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--light-gray), transparent);
}
.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: scroll-logos 35s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    height: 80px;
    margin: 0 25px;
    background: var(--crisp-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: var(--transition);
    filter: grayscale(100%) opacity(0.6);
}
.client-logo-card:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
    border-color: var(--elegant-gold);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}
.client-logo-card img {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
}
.client-logo-card i {
    font-size: 2rem;
    color: var(--royal-blue);
}

/* =========================================
   CARDS & SERVICES
   ========================================= */
.service-card {
    background: var(--crisp-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
    border-color: var(--elegant-gold);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--elegant-gold);
    margin-bottom: 1.5rem;
}

/* =========================================
   FORMS
   ========================================= */
.form-control, .form-select {
    border: 1px solid #E2E8F0;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--elegant-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--royal-blue);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}
footer h5 { color: var(--crisp-white); }
footer a { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    transition: var(--transition); 
}
footer a:hover { color: var(--elegant-gold); }

/* =========================================
   FLOATING ACTION BUTTONS (WhatsApp & AI Chat)
   ========================================= */
.fab-container {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fab-left { left: 20px; }
.fab-right { right: 20px; }

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    outline: none;
}
.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* WhatsApp Button */
.fab-whatsapp {
    background-color: #25D366;
    animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* AI Chat Button */
.fab-chat {
    background-color: var(--royal-blue);
    border: 2px solid var(--elegant-gold);
}
.fab-chat:hover {
    background-color: var(--elegant-gold);
    color: var(--royal-blue);
}

/* Chat Window Interface */
.chat-window {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 450px;
    max-height: calc(100vh - 150px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: var(--royal-blue);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h6 { margin: 0; font-weight: 600; }
.chat-header span { cursor: pointer; font-size: 1.5rem; line-height: 1; }

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.chat-msg.bot {
    background: #fff;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.chat-msg.user {
    background: var(--royal-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-footer {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}
.chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 0.9rem;
}
.chat-footer input:focus { border-color: var(--elegant-gold); }
.chat-footer button {
    background: var(--elegant-gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.chat-footer button:hover { background: var(--elegant-gold-hover); }




/* =========================================
   TESTIMONIALS SLIDER
   ========================================= */
.testimonials-section {
    position: relative;
    overflow: hidden;
}
/* Subtle golden radial glow in the background */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212,175,55,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Customizing Bootstrap Carousel Indicators for Gold Theme */
.testimonials-section .carousel-indicators {
    margin-top: 2rem;
    margin-bottom: 0;
}
.testimonials-section .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    transition: var(--transition);
    opacity: 1; /* Override Bootstrap default opacity */
}
.testimonials-section .carousel-indicators .active {
    background-color: var(--elegant-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}




/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-card {
    transition: var(--transition);
    position: relative;
    overflow: visible; /* Allow badge to overflow */
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.1) !important;
}
.pricing-card.border-gold {
    border: 2px solid var(--elegant-gold) !important;
    transform: scale(1.05);
    z-index: 2;
}
.pricing-card.border-gold:hover {
    transform: scale(1.05) translateY(-5px);
}
.bg-gold {
    background-color: var(--elegant-gold) !important;
}
.text-royal {
    color: var(--royal-blue) !important;
}
/* Adjust for mobile so featured card doesn't overflow awkwardly */
@media (max-width: 991px) {
    .pricing-card.border-gold {
        transform: scale(1);
    }
    .pricing-card.border-gold:hover {
        transform: translateY(-5px);
    }
}

/* =========================================
   BLOG CARDS
   ========================================= */
.blog-card {
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.1) !important;
}
.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-content p {
    margin-bottom: 1.5rem;
}
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}