/* Global Theme variables */
:root {
    --navy: #0a192f;
    --navy-light: #172a45;
    --navy-lightest: #30475e;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-light: #38bdf8;
    --light-accent: #f0f7ff;
    --slate: #64748b;
    --light-slate: #cbd5e1;
    --body-bg: #f8fafc;
    --card-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.08);
    --card-shadow-hover: 0 20px 40px -15px rgba(2, 12, 27, 0.15);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Reset and Core typography */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-inter);
    background-color: var(--body-bg);
    color: var(--navy-light);
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1 0 auto;
}

.footer-custom {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: var(--font-outfit);
}

.text-navy {
    color: var(--navy) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-light-slate {
    color: var(--light-slate) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-light-accent {
    background-color: var(--light-accent) !important;
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.8rem !important; }
.fs-9 { font-size: 0.7rem !important; }
.fs-10 { font-size: 0.625rem !important; }

.fw-extrabold { font-weight: 800; }

.max-w-600 {
    max-width: 600px;
}

/* Navbar styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-scrolled .brand-text,
.navbar-scrolled .nav-link.active {
    color: var(--navy) !important;
}

.navbar-scrolled .nav-link {
    color: var(--navy-lightest) !important;
}

.logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: #ffffff !important;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.30rem;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s ease;
    border-radius: 4px;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--accent-light) !important;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Custom Buttons */
.btn-action-accent {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-action-accent:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.btn-navy {
    background-color: var(--navy);
    color: #ffffff;
    border: 1px solid var(--navy);
    transition: all 0.25s ease;
}

.btn-navy:hover {
    background-color: var(--navy-light);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Animations */
.animate-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.animate-hover-up {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.animate-hover-up:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover) !important;
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Hero waves overlay */
.hero-waves {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-waves svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats section styling */
.mt-n5-custom {
    margin-top: -3.5rem;
}

.stat-card {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px -15px rgba(37, 99, 235, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.3) !important;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5), 0 4px 10px rgba(37, 99, 235, 0.1);
}

/* Glassmorphism for hero content */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Image floating animation */
.float-animation {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Image panels & card badges */
.building-card {
    border: 6px solid #ffffff;
    box-shadow: 0 15px 35px -5px rgba(2, 12, 27, 0.15);
}

.logo-badge {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-badge-img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

/* Capability Cards */
.capability-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid transparent !important;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.08);
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: rgba(37, 99, 235, 0.3) !important;
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.2);
}

.capability-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Section */
.footer-custom {
    background-color: var(--navy);
    border-top: 2px solid var(--accent);
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    height: 35px;
    object-fit: contain;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Page Headers */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.8);
    z-index: 1;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--light-slate);
}

/* Products Section tab pills styling */
#productTabs .nav-link {
    color: var(--navy-light);
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

#productTabs .nav-link:hover {
    background-color: var(--light-accent);
}

#productTabs .nav-link.active {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.product-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    position: relative;
    padding-top: 2rem !important;
}

.product-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

/* Floating Chatbot / CTA Bot styling */
.cta-bot-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
}

.cta-bot-badge {
    background-color: var(--accent);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.cta-bot-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

.badge-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-icon {
    font-size: 1.5rem;
}

.badge-tooltip {
    position: absolute;
    left: 75px;
    background-color: var(--navy);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

.cta-bot-badge:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Chat Window */
.cta-chat-window {
    width: 340px;
    height: 450px;
    position: absolute;
    bottom: 75px;
    left: 0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px -10px rgba(2, 12, 27, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.chat-header {
    background-color: var(--navy) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-messages-area {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Chat Bubbles */
.chat-msg {
    max-width: 80%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-msg-bot {
    background-color: #ffffff;
    color: var(--navy-light);
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-top-left-radius: 2px;
}

.chat-msg-user {
    background-color: var(--accent);
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chat-btn-option {
    display: block;
    width: 100%;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--accent);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    transition: all 0.2s ease;
}

.chat-btn-option:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Custom Scrollbars */
.chat-messages-area::-webkit-scrollbar {
    width: 5px;
}
.chat-messages-area::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.chat-messages-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.chat-messages-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjust */
@media (max-width: 480px) {
    .cta-chat-window {
        width: 300px;
        height: 420px;
        left: -10px;
    }
}

/* Right Side Floating CTAs */
.floating-ctas-right {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9998;
}

@keyframes buttonWiggle {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
    position: relative;
    transition: width 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}

.floating-cta-btn i {
    font-size: 1.25rem;
    z-index: 2;
}

@keyframes coinToss {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.floating-cta-btn:hover i {
    animation: coinToss 0.6s ease-in-out;
}

/* Apply coin toss hover to all standalone FA icons */
i[class*="fa-"]:hover {
    animation: coinToss 0.6s ease-in-out;
    cursor: pointer;
}

.floating-cta-btn .cta-text {
    position: absolute;
    right: 50px;
    background-color: inherit;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.15);
    z-index: 1;
}

.floating-cta-btn:hover {
    width: 50px; /* Base width stays same */
}

.floating-cta-btn:hover .cta-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-cta-btn:hover i {
    transform: scale(1.1);
}


