:root {
    /* Modern Palette */
    --primary-color: #0078D4;
    --primary-glow: rgba(0, 120, 212, 0.4);
    --secondary-color: #00B7C3;
    --accent-color: #886CE4;
    --dark-bg: #0b0f19;
    /* Optional dark mode base if needed, currently light */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-color: #1a1f2c;
    --text-muted: #536471;
    --white: #ffffff;
    --scare-color: #D13438;

    /* Gradients */
    --mesh-gradient: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    --hero-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    /* Spacing & shadows */
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background: #f0f2f5;
    /* Slightly darker to make glass pop */
    background-image:
        radial-gradient(at 80% 0%, rgba(0, 183, 195, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(136, 108, 228, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), #005A9E);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.6);
}

/* Hero */
.hero {
    padding: 80px 0 100px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #111, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-h1-alt {
    display: block;
    margin-top: 0.1em;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-cta-outline {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.hero-cta-outline:hover {
    background: rgba(0, 120, 212, 0.08);
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(136, 108, 228, 0.1));
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-weight: 700;
}

/* Helpers / Consultancy block */
.helpers-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}

.helpers-title {
    font-size: 2rem;
    margin: 0 0 12px;
    font-weight: 700;
    color: #fff;
}

.helpers-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.helpers-section .cta-button {
    background: linear-gradient(135deg, var(--primary-color), #005A9E);
    color: #fff !important;
}

/* Disclaimer Bar */
.top-disclaimer {
    background: #24292f;
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    line-height: 1;
}

/* Mobile CTA inside nav - hidden on desktop */
.nav-links .mobile-cta {
    display: none;
}

/* Desktop CTA */
.desktop-cta {
    display: inline-flex;
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    header .cta-button {
        order: 3;
        display: none;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        gap: 0;
        padding: 16px 0 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a::after {
        display: none;
    }

    /* Mobile CTA in nav */
    .nav-links .mobile-cta {
        display: block !important;
        margin-top: 12px;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    /* Hide desktop CTA on mobile */
    .desktop-cta {
        display: none !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .hero-ctas {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero-image {
        display: none;
    }

    .hero-text {
        text-align: center;
    }

    /* Ensure body content has proper padding on mobile */
    body {
        padding: 0;
    }

    /* Better spacing for sections on mobile - override inline styles */
    section.container,
    div.container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Override inline padding styles that use 20px horizontal padding */
    section.container[style*="padding"],
    div.container[style*="padding"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Page title mobile fixes */
    h1[style*="font-size: 3rem"],
    h1[style*="font-size:3rem"] {
        font-size: 2rem !important;
    }

    h1[style*="font-size: 2.5rem"],
    h1[style*="font-size:2.5rem"] {
        font-size: 1.75rem !important;
    }

    /* About page mobile fixes */
    .about-hero-section {
        padding: 40px 0 !important;
    }

    .about-hero-grid,
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center;
    }

    .about-hero-grid h1,
    .about-hero-grid h1[style] {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .about-hero-grid p {
        font-size: 1rem !important;
    }

    .about-hero-image {
        order: -1;
        margin-bottom: 20px;
    }

    .about-content-section {
        padding: 40px 16px !important;
    }

    .privacy-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Contact page grid */
    .contact-options-grid,
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap:40px"],
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 40px"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Footer grid mobile */
    footer div[style*="grid-template-columns: repeat(auto-fit"],
    footer div[style*="grid-template-columns:repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    footer ul {
        padding: 0;
    }

    /* Helpers section mobile */
    .helpers-section {
        padding: 40px 16px !important;
    }

    .helpers-title {
        font-size: 1.5rem !important;
    }

    .helpers-desc {
        font-size: 1rem !important;
    }

    /* Glass panel adjustments */
    .glass-panel {
        padding: 20px !important;
    }

    /* Services page supported products */
    div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:20px"] {
        flex-direction: column;
        gap: 8px !important;
        align-items: center;
    }

    /* Grid cards */
    .grid {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 24px;
    }
}

/* Mobile & Desktop Sticky CTA */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1998;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-cta-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.sticky-cta-bar .cta-button {
    width: 100%;
    max-width: 600px;
    /* Prevent it from being too wide on large screens while keeping background full width */
    justify-content: center;
    font-size: 1.1rem;
    padding: 14px 24px;
    border-radius: 8px;
    /* Slightly less rounded for a bar feel */
    box-shadow: none;
    /* Cleaner look for bar */
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Override any inline padding styles */
    section.container[style*="padding"],
    div.container[style*="padding"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Ensure all container children respect padding */
    section.container > *,
    div.container > * {
        max-width: 100%;
    }

    /* Hide sticky CTA bar on mobile - redundant with header button and chat */
    .sticky-cta-bar {
        display: none !important;
        /* Hidden on mobile to reduce clutter - users can use header button or chat */
    }

    /* Prevent buttons from stretching too wide */
    .cta-button {
        max-width: 100%;
    }

    /* Ensure hero CTAs don't stretch too wide */
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .cta-button,
    .hero-ctas .hero-cta-outline {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.75rem !important;
    }

    /* About page extra small mobile fixes */
    .about-hero-section {
        padding: 30px 0 !important;
    }

    .about-hero-grid h1 {
        font-size: 1.5rem !important;
        margin-bottom: 16px !important;
    }

    .about-hero-grid .glass-panel {
        padding: 16px !important;
        margin-top: 20px;
    }

    .about-content-section h2 {
        font-size: 1.25rem !important;
    }

    /* Privacy/Terms pages mobile fixes */
    .privacy-content {
        padding: 30px 16px !important;
    }

    .privacy-content h1 {
        font-size: 1.75rem !important;
    }

    .privacy-content h3 {
        font-size: 1.1rem !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }

    .privacy-content p {
        font-size: 0.9rem !important;
        margin-bottom: 16px !important;
    }

    /* Top disclaimer */
    .top-disclaimer {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    /* Section titles */
    h2[style*="font-size:2.5rem"],
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }

    /* Contact page mobile */
    .contact-options-grid .glass-panel {
        padding: 24px !important;
    }

    /* Why choose us grid */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Footer */
    footer {
        padding-top: 40px;
        margin-top: 40px;
        padding-bottom: 90px;
    }

    .disclaimer-text {
        font-size: 0.8rem;
    }

    .disclaimer-text p {
        margin-bottom: 12px;
    }
}

/* Adjust footer to not be hidden */
footer {
    padding-bottom: 100px;
    /* Space for the sticky bar */
    background: #fff;
    padding-top: 60px;
    margin-top: 80px;
    border-top: 1px solid #eaeaea;
}

@media (max-width: 768px) {
    footer {
        padding-bottom: 40px;
        /* Less padding on mobile since sticky bar is hidden */
    }
    
    /* Add padding to sections to prevent content from being hidden */
    section.container {
        padding-bottom: 20px !important;
    }
}

/* Chatbot (modal-closable pattern) */
.chatbot-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0052A3);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(0, 102, 204, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 36px rgba(0, 102, 204, 0.45);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

.chatbot-toggle .cb-close {
    display: none;
}

.chatbot-toggle.active .cb-open {
    display: none;
}

.chatbot-toggle.active .cb-close {
    display: block;
}

.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.chatbot-toggle.active .chatbot-badge {
    display: none;
}

.chatbot-window {
    position: fixed;
    bottom: 10rem;
    right: 20px;
    z-index: 2000;
    width: 370px;
    max-width: calc(100vw - 40px);
    max-height: 520px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.18);
    animation: chatSlideUp 0.35s cubic-bezier(0.22, 0.68, 0, 1.1) both;
}

.chatbot-window.open {
    display: flex;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cb-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #0052A3);
    color: white;
}

.cb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-avatar svg {
    width: 18px;
    height: 18px;
}

.cb-header-info {
    flex: 1;
}

.cb-header-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.cb-header-status {
    font-size: 0.7rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cb-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.cb-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    transition: background 0.2s;
}

.cb-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cb-close-btn svg {
    width: 22px;
    height: 22px;
}

.cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    max-height: 320px;
    background: #f8f9fa;
}

.cb-msg {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.cb-msg.bot {
    background: white;
    border: 1px solid #e5e7eb;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.cb-msg.user {
    background: linear-gradient(135deg, var(--primary-color), #0052A3);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.cb-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 1rem;
}

.cb-opt-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.cb-opt-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cb-opt-btn.call-btn {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.cb-opt-btn.call-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.cb-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.7rem 1rem;
    align-self: flex-start;
}

.cb-typing span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.cb-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.cb-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.cb-lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.cb-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.cb-form-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cb-lead-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
}

.cb-lead-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.cb-lead-submit {
    background: linear-gradient(135deg, var(--primary-color), #0052A3);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.25rem;
}

.cb-lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cb-policy-consent {
    display: flex;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    align-items: flex-start;
}

.cb-policy-consent a {
    color: var(--primary-color);
}

.cb-validation-help {
    display: none;
    text-align: center;
    font-size: 0.72rem;
    color: #dc2626;
}

.cb-validation-help.visible {
    display: block;
}

@media (max-width: 768px) {
    .chatbot-toggle {
        right: 16px;
        bottom: 20px;
        width: 56px;
        height: 56px;
    }

    .chatbot-window {
        bottom: 5.5rem;
        right: 10px;
        width: calc(100vw - 20px);
        max-height: 70vh;
    }

    .contact-options-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}