/* --- Base Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Logo Sizing */
.header-logo {
    height: 50px; /* Adjust this height based on your website's layout preferences */
    width: auto;  /* Maintains aspect ratio */
    display: block;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Parent container acts as the anchor */
.nav-dropdown {
    position: relative;
    list-style: none;
}

/* Dropdown positions itself relative to the parent, not the window */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Hover trigger to show the menu */
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Styling the links within the dropdown */
.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: #ff6600;
}








.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
}

.logo span {
    color: #ff6600; /* Standard Orange */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555555;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ff6600;
}

.btn-nav {
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-nav:hover {
    background-color: #e05500;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    color: #333333;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #666666;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #ff6600;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e05500;
}

/* --- Common Section Styles --- */
.section {
    padding: 80px 10%;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    color: #333333;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff6600;
    margin: 10px auto 0 auto;
}

.alt-bg {
    background-color: #fff5ee; /* Soft orange/white tinted background */
}

/* --- Grid & Cards --- */
.grid-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid #ff6600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 15px;
    color: #333333;
}

.white-card {
    background-color: #ffffff;
}

/* --- About Us Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #555555;
}

/* --- Footer & Contact Details --- */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 10% 20px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3, .footer-links h3 {
    color: #ff6600;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #cccccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 20px;
    font-size: 14px;
    color: #888888;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        margin-bottom: 15px;
    }
    .grid-container {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
    }
}

/* --- Dynamic Mega Sitemap Footer --- */
.footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 8% 30px 8%;
    border-top: 4px solid #ff6600;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 2;
    min-width: 260px;
}

.footer-brand .logo.inverted {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-brand .logo.inverted span {
    color: #ff6600;
}

.footer-contact-details p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-contact-details strong {
    color: #ff6600;
}

/* Structured Sitemap Columns Layout */
.footer-col {
    flex: 1;
    min-width: 170px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 6px;
}

/* Subtle underlying bar under titles */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #ff6600;
}

/* Stacked Sub-headings */
.footer-col .sec-title {
    margin-top: 30px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #ff6600;
    padding-left: 4px;
}

/* Highlight Style for Security Link */
.footer-col a.highlight-link {
    color: #ffedd5;
    font-weight: 500;
    border-bottom: 1px dashed rgba(255, 102, 0, 0.4);
    padding-bottom: 2px;
}

.footer-col a.highlight-link:hover {
    color: #ff6600;
    border-bottom-color: #ff6600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    font-size: 14px;
    color: #64748b;
}

/* --- Mobile Adaptability Viewports --- */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .about-graphic {
        width: 100%;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .nav-links {
        margin-bottom: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 6px 12px;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }
    .grid-container {
        flex-direction: column;
    }
    .section {
        padding: 60px 6%;
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}


/* Fixed Go to Bottom Triangle Button Layout */
.btn-scroll-down {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 38px; /* Slightly shorter than wide for ideal geometric triangle proportions */
    background-color: #0f172a;
    z-index: 999;
    transition: all 0.25s ease-in-out;
    
    /* Using a polygon clip-path to trim the square block cleanly into a sharp down triangle */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

/* Interaction Hover Visual States */
.btn-scroll-down:hover {
    background-color: #ff6600;
    transform: translateY(5px); /* Moves downward slightly to reinforce the directional action */
}

/* Ensure smooth native viewport transition movements */
html {
    scroll-behavior: smooth;
}

/* Responsive Scaling for Compact Viewports */
@media (max-width: 480px) {
    .btn-scroll-down {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 30px;
    }
}

/* Core Live Chat Widget Layout Container */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Positioned opposite of the scroll triangle button */
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* Floating Action Trigger Button */
.chat-trigger-btn {
    background-color: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    display: block;
    transition: all 0.2s ease-in-out;
}

.chat-trigger-btn:hover {
    background-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.chat-trigger-icon {
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.chat-trigger-text {
    vertical-align: middle;
}

.chat-online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #16a34a;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

/* Expanded Main Chat Console Overlay Window */
.chat-window {
    display: none; /* Controlled interactively via JS toggle */
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 340px;
    height: 440px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

/* Header Section styling */
.chat-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 14px 16px;
    position: relative;
}

.chat-agent-info {
    display: block;
}

/* Emulating dynamic block alignment safely without flex */
.chat-avatar-wrapper {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
}

.chat-avatar-emoji {
    font-size: 20px;
    line-height: 36px;
}

.chat-header div:nth-child(2) {
    margin-left: 46px;
}

.chat-agent-name {
    font-size: 14px;
    font-weight: 700;
}

.chat-agent-status {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.chat-close-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.chat-close-btn:hover {
    color: #ffffff;
}

/* Message Feed Layout Stream */
.chat-body {
    height: 310px;
    padding: 16px;
    background-color: #f8fafc;
    overflow-y: auto;
}

.chat-msg {
    margin-bottom: 14px;
    max-width: 85%;
    display: block;
    clear: both;
}

.msg-agent {
    float: left;
}

.msg-user {
    float: right;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}

.msg-agent .chat-bubble {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 2px;
}

.msg-user .chat-bubble {
    background-color: #ff6600;
    color: #ffffff;
    border-top-right-radius: 2px;
}

.chat-timestamp {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}

.msg-user .chat-timestamp {
    text-align: right;
}

/* Input Workspace Controls Footer Bar */
.chat-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    border-top: 1px solid #cbd5e1;
    background-color: #ffffff;
    padding: 8px 12px;
}

#chatInputField {
    width: 260px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13.5px;
    outline: none;
    background-color: #ffffff;
    color: #0f172a;
    display: inline-block;
}

#chatInputField:focus {
    border-color: #ff6600;
}

.chat-send-btn {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 36px;
    height: 36px;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    padding-top: 4px;
}

.chat-send-btn:hover {
    background-color: #ff6600;
}

/* Adjustments on screens smaller than mobile breakpoint */
@media (max-width: 480px) {
    .chat-widget-container {
        bottom: 20px;
        left: 20px;
    }
    .chat-window {
        width: 290px;
        height: 400px;
    }
    #chatInputField {
        width: 210px;
    }
    .chat-body {
        height: 270px;
    }
}