﻿/* MODERN ROOT VARIABLES */
:root {
    /* UPDATED: Brand Red based on 'Aletic' Logo */
    --primary: #C02026;
    /* UPDATED: Darker shade for hovers */
    --primary-dark: #991B1B;
    /* UPDATED: Changed from Blue-Navy to Dark Charcoal/Black to match the 'Technology' text */
    --navy: #111827;
    --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: rgba(32, 0, 0, 0.125); /* Neutral grey-white */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
}

    .top-utility-bar a {
        text-decoration: none;
        color: #5a0606; /* Dark Grey */
        font-size: 1rem;
        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;
    /* UPDATED: Red shadow for the pulse */
    box-shadow: 0 10px 25px rgba(192, 32, 38, 0.4);
    transition: transform 0.3s;
}

    .pulse-button:hover {
        transform: scale(1.1);
    }

.chatbot-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    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;
}

    .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;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    scroll-behavior: smooth;
}

    #chatbot-messages > :first-child {
        margin-top: auto !important;
    }

.status-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* WhatsApp Pulse Animation - Kept Green as it is brand specific */
@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;
    border: none;
}

    .whatsapp-pulse:hover {
        transform: translateY(-5px);
    }

/* Container for the overlap logic */
.fixed-actions-group {
    pointer-events: none;
}

    .fixed-actions-group > * {
        pointer-events: auto;
    }

/* WhatsApp Button Styling */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    z-index: 1;
    margin-right: -20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Chatbot Button Styling */
#chatbot-toggle {
    z-index: 2;
    position: relative;
}

/* Interaction: Hovering WhatsApp slides it out */
.btn-whatsapp:hover {
    transform: scale(1.05);
    z-index: 0;
    margin-right: 5px;
}

/* MODERN FOOTER */
.footer-modern {
    background: #808080;
    color: #960000;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #960000;
    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*/
@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);
}

    .hero-image-wrapper:hover {
        transform: scale(1.02);
    }

    .hero-image-wrapper .badge {
        animation: float 4s ease-in-out infinite;
        backdrop-filter: blur(10px);
        /* UPDATED: Dark background with red tint */
        background-color: rgba(17, 24, 39, 0.9) !important;
        /* UPDATED: Red Border */
        border: 1px solid rgba(192, 32, 38, 0.5) !important;
        z-index: 3;
    }

    .hero-image-wrapper img {
        transition: filter 0.5s ease;
    }

    .hero-image-wrapper:hover img {
        /* UPDATED: Red Glow */
        filter: drop-shadow(0 0 30px rgba(192, 32, 38, 0.4)) !important;
    }

.hero-premium {
    text-rendering: optimizeLegibility;
}

    .hero-premium h1 span.text-primary {
        /* UPDATED: Red text shadow */
        text-shadow: 0 0 15px rgba(192, 32, 38, 0.6);
    }

    .hero-premium .lead {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.25rem;
    }

    .hero-premium .btn-primary:hover {
        /* UPDATED: Red hover shadow */
        box-shadow: 0 0 20px rgba(192, 32, 38, 0.4);
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }

@media (max-width: 768px) {
    .hero-premium {
        /* UPDATED: Dark overlay */
        background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), 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: #111827 !important; /* Charcoal */
}

.nav-link {
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .nav-link:hover, .nav-link.active {
        background-color: var(--primary) !important;
        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;
    font-size: 1.1rem;
}

    .cms-content-area h1,
    .cms-content-area h2,
    .cms-content-area h3 {
        color: #111827; /* Dark Charcoal */
        font-weight: 700;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .cms-content-area h2 {
        border-left: 4px solid var(--primary); /* Red border */
        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;
    }

    .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: #111827;
        font-weight: 600;
        padding: 12px;
        border-bottom: 2px solid #e2e8f0;
    }

    .cms-content-area td {
        padding: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    .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: #111827;
}

/* Enhanced AI Tech Stack Styling */
.ai-tech-container {
    background-color: #111827; /* Dark Charcoal */
    /* UPDATED: Red border */
    border: 1px solid rgba(192, 32, 38, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle glow pulse animation */
@keyframes badge-glow {
    0% {
        box-shadow: 0 0 5px rgba(192, 32, 38, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(192, 32, 38, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(192, 32, 38, 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: var(--primary) !important; /* Red on hover */
        border-color: var(--primary);
        animation: badge-glow 2s infinite;
    }

/* Background gradient to break up the "dark black" */
.bg-navy-gradient {
    /* UPDATED: Charcoal Gradient */
    background: linear-gradient(135deg, #0a0a0a 0%, #1f2937 100%);
}

/* Light Architect Container */
.ai-tech-container-light {
    background: #f1f5f9; /* Slate 100 */
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .ai-tech-container-light:hover {
        border-color: var(--primary);
        /* UPDATED: Red Glow */
        box-shadow: 0 10px 30px rgba(192, 32, 38, 0.1) !important;
    }

.text-navy-bold {
    color: #111827;
    font-weight: 700;
}

/* Badge styling remains white but with a red border for contrast */
.tech-badge-light {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

    .tech-badge-light:hover {
        /* UPDATED: Light Red background on hover */
        background-color: #fee2e2 !important;
        color: #7f1d1d !important;
        border-color: var(--primary);
        transform: translateY(-2px);
    }

/* Customizing Bootstrap Tooltip to match theme */
.tooltip-inner {
    background-color: #111827 !important;
    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: #111827 !important;
}

/* Styling for links inside tooltips */
.tooltip-inner a.text-primary-light {
    color: #fca5a5 !important; /* Light Red */
    font-size: 0.8rem;
    transition: color 0.2s;
}

    .tooltip-inner a.text-primary-light:hover {
        color: #f87171 !important;
        text-decoration: underline !important;
    }

.tooltip {
    pointer-events: auto !important;
}

/* ADDED UTILS FOR BADGES FROM PREVIOUS REQUEST */
.text-blue {
    color: var(--primary) !important; /* Now maps to Red */
}

.text-success-bright {
    color: #25D366 !important;
}
