﻿/* MODERN ROOT VARIABLES */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --navy: #0f172a;
    --slate: #64748b;
    --light: #f8fafc;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 72px;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .navbar-brand {
    font-family: var(--font-heading);
}

/* TOP UTILITY */
.top-utility-bar {
    background: #f1f4f9;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
}

    .top-utility-bar a {
        text-decoration: none;
        color: #0e1a28;
        font-size: 0.75rem;
        font-weight: 500;
        transition: color 0.2s;
    }

        .top-utility-bar a:hover {
            color: var(--primary);
        }

/* GLASSMORPHIC NAVBAR */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--navy) !important;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s;
    }

    .nav-link:hover::after {
        width: 100%;
        left: 0;
    }

/* CHATBOT REFINEMENT */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.pulse-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transition: transform 0.3s;
}

    .pulse-button:hover {
        transform: scale(1.1);
    }

.chatbot-card {
    position: absolute;
    bottom: 80px; /* Pops up above the buttons */
    right: 0; /* Aligns with the right edge */
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1060;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom right;
}

    /* Ensure hidden state scales down into the button */
    .chatbot-card.hidden {
        opacity: 0;
        transform: scale(0);
        pointer-events: none;
    }

.chatbot-header {
    background: var(--navy);
    color: white;
    padding: 15px 20px;
}


/* Messages Area - The Logic for Bottom-Up */
#chatbot-messages {
    flex: 1; /* Takes all available space */
    overflow-y: auto; /* Enables scrolling */
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    scroll-behavior: smooth; /* Smooth auto-scroll */
}

    /* KEY FIX: Pushes the first message to the bottom */
    #chatbot-messages > :first-child {
        margin-top: auto !important;
    }

.status-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* WhatsApp Pulse Animation */
@keyframes pulse-green {
    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);
    }
}

.whatsapp-pulse {
    animation: pulse-green 2s infinite;
    background-color: #25D366 !important; /* WhatsApp Brand Color */
    border: none;
}

.whatsapp-pulse:hover {
    transform: translateY(-5px);
}

/* Container for the overlap logic */
.fixed-actions-group {
    pointer-events: none; /* Let clicks pass through empty space */
}

    .fixed-actions-group > * {
        pointer-events: auto; /* Re-enable clicks on buttons */
    }

/* WhatsApp Button Styling */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    z-index: 1; /* Sits behind */
    margin-right: -20px; /* Pulls it under the blue button to match your image */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
    position: relative;
}

/* Chatbot Button Styling */
#chatbot-toggle {
    z-index: 2; /* Sits in front */
    position: relative;
}

/* Interaction: Hovering WhatsApp slides it out */
.btn-whatsapp:hover {
    /*transform: translateX(-10px) scale(1.1);*/ /* Moves left and grows */
    transform: scale(1.05);
    z-index: 0; /* Optional: Pops to front on hover */
    margin-right: 5px; /* Adds space */
}

/* Interaction: Hovering Chatbot keeps WhatsApp tucked but visible */
/*#chatbot-toggle:hover {
    transform: scale(1.05);
}*/



/* MODERN FOOTER */
.footer-modern {
    background: var(--navy);
    color: #cbd5e1;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: 0.2s;
}

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

.tracking-widest {
    letter-spacing: 0.1em;
}

.brightness-0 {
    filter: brightness(0);
}

.invert {
    filter: invert(1);
}

/* UTILS */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hidden {
    display: none !important;
}

/* Hero Section Home Page*/
/* Floating Animation for Tech Badges */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image-wrapper {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    /* Subtle hover lift for the entire image container */
    .hero-image-wrapper:hover {
        transform: scale(1.02);
    }

    /* Applying the float animation to the AI badge */
    .hero-image-wrapper .badge {
        animation: float 4s ease-in-out infinite;
        backdrop-filter: blur(10px);
        background-color: rgba(2, 6, 23, 0.8) !important;
        border: 1px solid rgba(37, 99, 235, 0.5) !important;
        z-index: 3;
    }

    /* Image glow effect */
    .hero-image-wrapper img {
        transition: filter 0.5s ease;
    }

    .hero-image-wrapper:hover img {
        filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.4)) !important;
    }

.hero-premium {
    /* Subtle glow behind the primary text to ensure it separates from the image */
    text-rendering: optimizeLegibility;
}

    .hero-premium h1 span.text-primary {
        /* Make the AI-First text glow slightly for a high-tech feel */
        text-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
    }

    .hero-premium .lead {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.25rem;
    }

    /* Professional Button Hover States */
    .hero-premium .btn-primary:hover {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }

/* Mobile Adjustment: On mobile, the image brightness is lowered for text safety */
@media (max-width: 768px) {
    .hero-premium {
        background: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.8)), url('/images/landing/hero.png') !important;
        background-size: cover !important;
        text-align: center;
    }

        .hero-premium .col-lg-7 {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
}

/* Admin Menu Items */
.bg-navy {
    background-color: #020617 !important;
}

.nav-link {
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .nav-link:hover, .nav-link.active {
        background-color: #2563eb !important; /* Modern Blue */
        color: white !important;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

.x-small {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* CMS Dynamic Content Styling */
.cms-content-area {
    line-height: 1.8;
    color: #475569; /* slate-600 */
    font-size: 1.1rem;
}

    .cms-content-area h1,
    .cms-content-area h2,
    .cms-content-area h3 {
        color: #020617; /* navy */
        font-weight: 700;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .cms-content-area h2 {
        border-left: 4px solid #2563eb;
        padding-left: 15px;
    }

    .cms-content-area p {
        margin-bottom: 1.5rem;
    }

    .cms-content-area ul,
    .cms-content-area ol {
        margin-bottom: 1.5rem;
        padding-left: 1.25rem;
    }

    .cms-content-area li {
        margin-bottom: 0.5rem;
    }

    /* Styling for Tables inserted via TinyMCE */
    .cms-content-area table {
        width: 100%;
        border-collapse: collapse;
        margin: 2rem 0;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    }

    .cms-content-area th {
        background-color: #f8fafc;
        color: #020617;
        font-weight: 600;
        padding: 12px;
        border-bottom: 2px solid #e2e8f0;
    }

    .cms-content-area td {
        padding: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    /* Image handling */
    .cms-content-area img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 2rem 0;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    }
    /* Home Page Hero */
.transition-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .transition-up:hover {
        transform: translateY(-10px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
    }

.hover-lift {
    transition: transform 0.2s ease;
}

    .hover-lift:hover {
        transform: translateY(-2px);
    }

.text-navy {
    color: #020617;
}

/* Enhanced AI Tech Stack Styling */
.ai-tech-container {
    background-color: #020617; /* Navy */
    border: 1px solid rgba(37, 99, 235, 0.2); /* Subtle blue border */
    position: relative;
    overflow: hidden;
}

/* Subtle glow pulse animation */
@keyframes badge-glow {
    0% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
    }
}

.tech-badge-glow {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tech-badge-glow:hover {
    transform: translateY(-3px);
    background-color: #ffffff !important;
    color: #2563eb !important; /* Primary Blue */
    border-color: #2563eb;
    animation: badge-glow 2s infinite;
}

/* Background gradient to break up the "dark black" */
.bg-navy-gradient {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}
/* Light Architect Container */
.ai-tech-container-light {
    background: #cdd1d6; /* Very light slate gray */
    border: 1px solid #e2e8f0; /* Soft border */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .ai-tech-container-light:hover {
        border-color: #2563eb; /* Primary blue on hover */
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1) !important;
    }

/* Updated Title for Light Background */
.text-navy-bold {
    color: #020617; /* High contrast Navy for visibility */
    font-weight: 700;
}

/* Badge styling remains white but with a blue border for contrast */
.tech-badge-light {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

    .tech-badge-light:hover {
        background-color: #b3c3e8 !important;
        color: #c2f2f2 !important;
        border-color: #2563eb;
        transform: translateY(-2px);
    }

/* Customizing Bootstrap Tooltip to match AIETIC theme */
.tooltip-inner {
    background-color: #020617 !important; /* Navy */
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #020617 !important;
}

/* Styling for links inside tooltips */
.tooltip-inner a.text-primary-light {
    color: #3b82f6 !important; /* Slightly lighter blue for readability on dark background */
    font-size: 0.8rem;
    transition: color 0.2s;
}

    .tooltip-inner a.text-primary-light:hover {
        color: #60a5fa !important;
        text-decoration: underline !important;
    }

/* Ensure tooltips allow interaction (don't disappear when moving mouse to click the link) */
.tooltip {
    pointer-events: auto !important;
}