/* --- Corporate Variables & Base Reset --- */

:root {
    --brand: #0b63b7;
    /* Primary Blue */
    --brand-dark: #064a85;
    /* Dark Blue for CTA/Text */
    --white: #ffffff;
    --text-color: #333333;
    --muted-text: #6c757d;
    --font-family: 'Inter', sans-serif;
    --footer-bg-dark: #121c27;
    /* Main dark background color */
    --footer-bg-bottom: #0e161f;
    /* Bottom bar background color */
    --footer-text-light: #ffffff;
    --footer-link-color: #aeb5bb;
    --footer-heading-color: #ffffff;
    --cta-newsletter-bg: #e54c4c;
    /* Red */
    --cta-careers-bg: #ffffff;
    --cta-careers-text: #333333;
    --cta-referral-bg: #7474f3;
    /* Purple/Blue */
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--brand);
}


/* --------------------------------- */


/* ## HEADER & FOOTER STYLES */


/* --------------------------------- */

.main-header {
    background-color: var(--brand-dark);
    color: var(--white);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}


/* STICKY HEADER IMPLEMENTATION */

.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: 700;
}

.main-header nav a {
    color: var(--white);
    margin: 0 15px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
}

.main-header nav a:hover {
    color: var(--panel-bg);
}

.cta-nav-link {
    background-color: var(--brand);
    padding: 8px 18px !important;
    border-radius: 30px;
    margin-left: 20px !important;
}

.cta-nav-link:hover {
    background-color: #0d6efd;
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
}

.main-footer {
    background-color: var(--brand-dark);
    color: var(--white);
    text-align: center;
    padding: 20px 40px;
    font-size: 0.9em;
}

.main-footer a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
}

.main-footer a:hover {
    color: var(--white);
}


/* --------------------------------- */


/* ## MAIN GRID LAYOUT (50/50 SPLIT) */


/* --------------------------------- */

.main-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: calc(100vh - 60px);
}


/* Left Column: Scrollable Content */

.content-sections {
    grid-column: 1 / 2;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 60px);
}


/* Right Column: Sticky Social Sidebar */

.social-sidebar {
    grid-column: 2 / 3;
    color: var(--white);
    padding: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 50;
}

.sticky-area {
    width: 100%;
    max-width: 350px;
    position: relative;
    z-index: 51;
}

.social-sidebar h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--white);
}

.social-sidebar .sidebar-info {
    font-size: 1em;
    opacity: 0.9;
}


/* --- NEW SOCIAL ICONS STRUCTURE STYLES --- */

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Spacing between rows */
    margin-top: 30px;
    width: 100%;
}

.icon-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* Spacing between icon items in a row */
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 5px;
    transition: background-color 0.3s, transform 0.2s;
    overflow: hidden;
}

.icon-item a:hover {
    background-color: var(--brand-dark);
    transform: scale(1.1);
}

.icon-item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
}

.icon-label {
    /* STYLING FOR THE NAME/LABEL UNDER THE ICON */
    color: var(--white);
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.9;
    /* Slightly less opaque than the main text */
    max-width: 100%;
    /* Ensure label doesn't break grid */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* --- END NEW SOCIAL ICONS STRUCTURE STYLES --- */


/* --------------------------------- */


/* ## SECTION STYLES & BASE */


/* --------------------------------- */

.full-height-section {
    min-height: 100vh;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.section-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h1,
h2 {
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--brand-dark);
}

h1 {
    font-size: 2.6em;
}

h2 {
    font-size: 2em;
}

.icon-blue {
    color: var(--brand);
}

.lead-text {
    font-size: 1.15em;
    font-weight: 400;
    color: var(--muted-text);
    margin-bottom: 40px;
}


/* Feature Grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border-left: 5px solid var(--brand);
}

.icon-feature {
    color: var(--brand-dark);
    font-size: 1.3em;
}

.feature-grid p {
    font-size: 0.95em;
    line-height: 1.4;
    margin: 0;
}


/* Key Points List */

.key-points {
    list-style: none;
    padding-left: 0;
    font-size: 1.05em;
}

.key-points li {
    margin-bottom: 12px;
}

.icon-check {
    color: var(--brand);
}


/* Split Content (Who We Are) */

.split-content-area {
    display: flex;
    gap: 40px;
    align-items: center;
}

.split-content-area .text-side {
    flex: 1;
}

.split-content-area .image-container {
    flex: 1;
}


/* --- SECTION IMAGE STYLES --- */

.image-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

.section-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-container.small-map {
    margin-top: 30px;
    border: none;
    box-shadow: none;
    border-radius: 0;
}


/* --- TESTIMONIALS --- */

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.testimonial {
    background-color: var(--white);
    padding: 25px;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial footer {
    font-size: 0.9em;
    color: var(--brand-dark);
    font-weight: 600;
}

.testimonial footer span {
    color: var(--muted-text);
    font-weight: 400;
}


/* --- CTA BUTTON --- */

.cta-button {
    display: inline-block;
    background-color: var(--brand);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* --- CONTACT FORM LAYOUT (Vertical Stack) --- */

.contact-flex-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form-wrapper {
    flex: none;
}

.contact-info-wrapper {
    flex: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    background-color: #f8f9fa;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 99, 183, 0.2);
    background-color: var(--white);
}

.contact-info-card {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info-card h3 {
    color: var(--brand-dark);
    border-bottom: 2px solid var(--brand);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-info-card p {
    margin-bottom: 15px;
}

.icon-info {
    color: var(--brand);
}

.contact-info-card a {
    color: var(--brand-dark);
    font-weight: 500;
}


/* --------------------------------- */


/* ## ANIMATED BACKGROUND STYLES */


/* --------------------------------- */


/* 1. ABOUT - bg-animate-1 (Wavy Radial Gradient) */

.bg-animate-1 {
    background: linear-gradient(120deg, #e0f2ff, #ffffff);
}

.bg-animate-1::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
    animation: waveMove 9s infinite linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes waveMove {
    0% {
        transform: translateX(-10%) translateY(-10%) rotate(0);
    }
    100% {
        transform: translateX(10%) translateY(10%) rotate(360deg);
    }
}


/* 2. SERVICES - bg-animate-2 (Diagonal Stripes) */

.bg-animate-2 {
    background: repeating-linear-gradient( 45deg, #f8f9ff, #f8f9ff 20px, #eef1ff 20px, #eef1ff 40px);
    animation: stripesMove 12s linear infinite;
}

@keyframes stripesMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400px 400px;
    }
}


/* 3. CLIENTS - bg-animate-3 (Floating Soft Bubbles) */

.bg-animate-3 {
    background: #f7fffa;
}

.bg-animate-3::before,
.bg-animate-3::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(0, 200, 136, 0.15);
    border-radius: 50%;
    animation: floatBubble 10s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.bg-animate-3::before {
    top: 10%;
    left: -80px;
}

.bg-animate-3::after {
    bottom: 10%;
    right: -80px;
    animation-delay: 4s;
}

@keyframes floatBubble {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-40px);
    }
}


/* 4. TESTIMONIALS - bg-animate-4 (Soft Glow) */

.bg-animate-4 {
    background: #ffffff;
}

.bg-animate-4::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 230, 150, .25) 0%, transparent 60%);
    animation: glowPulse 8s infinite alternate;
    z-index: 0;
    pointer-events: none;
    top: -50%;
    left: -50%;
}

@keyframes glowPulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }
    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}


/* 5. CONTACT - bg-animate-5 (Animated Tech Dots) */

.bg-animate-5 {
    background: #f7f7f7;
    background-image: radial-gradient(#d0d0d0 1px, transparent 1px);
    background-size: 20px 20px;
    animation: dotsMove 20s linear infinite;
}

@keyframes dotsMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}


/* 6. SOCIAL SIDEBAR - bg-animate-6 (Gradient Shimmer) */

.bg-animate-6 {
    background: linear-gradient(135deg, #0b63b7, #064a85, #0b63b7);
    background-size: 300% 300%;
    animation: shimmerMove 10s ease infinite;
    position: relative;
}

.social-sidebar.bg-animate-6 h3,
.social-sidebar.bg-animate-6 .sidebar-info {
    color: var(--white);
}

@keyframes shimmerMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* --------------------------------- */


/* ## RESPONSIVE ADJUSTMENTS */


/* --------------------------------- */

@media (max-width: 992px) {
    /* Switch to a single column layout */
    /* Keep the 50/50 Split */
    .main-grid-layout {
        grid-template-columns: 75% 25%;
    }
    .content-sections {
        grid-column: 1 / 2;
        overflow-y: scroll;
        /* Keep scrollable */
        height: calc(100vh - 60px);
        padding: 20px;
        /* Reduced padding for skinny mobile screens */
    }
    .social-sidebar {
        grid-column: 2 / 3;
        height: calc(100vh - 60px);
        position: sticky;
        top: 60px;
        /* Adjust based on your header height */
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    /* Social Icons adjust to a flexible layout on small screens */
    .social-icons {
        gap: 10px;
    }
    .sticky-area h3 {
        font-size: 80%;
    }
    .sticky-area p {
        font-size: 80%;
    }
    .icon-row {
        grid-template-columns: 1fr;
        /* 2 columns instead of 3 for better fit */
        gap: 12px;
    }
    .icon-item a {
        width: 32px;
        height: 32px;
    }
    .icon-label {
        font-size: 0.65em;
    }
    /* Mobile Menu */
    .main-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--brand-dark);
        flex-direction: column;
        display: none;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    .main-header nav.active {
        display: flex;
    }
    .main-header nav a {
        margin: 10px 20px;
        padding: 10px 0;
        width: auto;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-header .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 1.5em;
    }
    .cta-nav-link {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        width: 80%;
    }
    .full-height-section {
        min-height: 80vh;
        padding: 60px 20px;
    }
    .section-content {
        max-width: 100%;
    }
    .split-content-area {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .cta-button {
        padding: 12px 25px;
    }
}


/* Base Footer Styles */

.site-footer {
    background-color: var(--footer-bg-dark);
    color: var(--footer-text-light);
    font-family: 'Inter', sans-serif;
    padding-top: 50px;
    font-size: 0.9em;
}


/* --- THREE COLUMN LAYOUT --- */

.footer-container.three-col-layout {
    display: grid;
    /* Divide space into 3 columns: 
       1.5fr for Contact/Logo (wider) 
       1fr for Services 
       1fr for About/CTAs */
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.footer-heading {
    color: var(--footer-heading-color);
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}


/* Column Base Styling (Removed previous flex: auto settings) */

.footer-column {
    /* Base padding can be adjusted if needed */
}


/* Link List Styling */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--footer-text-light);
}


/* Logo and Contact Details */

.logo-img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.contact-detail {
    margin-bottom: 10px;
    color: var(--footer-link-color);
    line-height: 1.4;
}

.contact-detail i {
    color: var(--footer-text-light);
    margin-right: 8px;
}

.contact-detail a {
    color: var(--footer-link-color);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}


/* CTAs and Badge (Used in the 'About' column) */

.veteran-badge {
    width: 150px;
    height: auto;
    margin: 15px 0 20px;
    display: block;
}

.footer-cta {
    display: block;
    text-align: center;
    padding: 8px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.footer-cta:hover {
    opacity: 0.8;
}

.cta-newsletter {
    background-color: var(--cta-newsletter-bg);
    color: var(--footer-text-light);
}

.cta-careers {
    background-color: var(--cta-careers-bg);
    color: var(--cta-careers-text);
    border: 1px solid #ddd;
}

.cta-referral {
    background-color: var(--cta-referral-bg);
    color: var(--footer-text-light);
}


/* Footer Bottom Bar (Copyright) */

.footer-bottom {
    background-color: var(--footer-bg-bottom);
    padding: 15px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-link-color);
}

.footer-bottom .policy-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom .policy-links a {
    color: var(--footer-link-color);
}

.chatbot-placeholder {
    background-color: #3b5998;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 10px;
}


/* Responsive adjustments */

@media (max-width: 992px) {
    .footer-container.three-col-layout {
        /* Two columns on tablets */
        grid-template-columns: 1fr 1fr;
        padding: 0 20px 40px;
        gap: 30px;
    }
    .contact-info-col {
        grid-column: span 2;
        /* Full width for contact info row */
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    .footer-bottom p {
        margin-bottom: 10px;
    }
    .footer-bottom .policy-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-container.three-col-layout {
        /* Single column on phones */
        grid-template-columns: 1fr;
    }
}


/* --- Pop-up Specific Styles --- */

#cybersecurityModal {
    /* CRITICAL POSITIONING: Fixed bottom-right */
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* CRITICAL VISIBILITY: Hidden by default, JavaScript/jQuery sets display: block */
    display: none;
    /* CRITICAL Z-INDEX: High number to appear above page content */
    z-index: 99999;
    /* CRITICAL ANIMATION START: Pushed off the bottom */
    transform: translateY(100%);
    /* CRITICAL TRANSITION: Defines the animation speed (0.5 seconds) */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Responsive sizing */
    max-width: 350px;
    width: 90vw;
}


/* CRITICAL ANIMATION END STATE */

#cybersecurityModal.active {
    /* Slides content up into view */
    transform: translateY(0);
    /* IMPORTANT: No display: block; here. jQuery handles visibility. */
}


/* 2. Modal Content (The White Box) */

.modal-content {
    /* Box styling */
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    /* Box Shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    /* Ensure content doesn't overflow */
    box-sizing: border-box;
}


/* Close Button */

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}


/* Modal Body/Text Styling */

.modal-body h2 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 5px;
}

.modal-body h1 {
    font-size: 1.5em;
    font-weight: 800;
    color: #000;
    margin-top: 0;
}

.modal-body p {
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
}


/* CTA Button Styling */

.cta-button {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #17a688;
}


/* Media Query for extreme responsiveness on very small screens */

@media (max-width: 400px) {
    #cybersecurityModal {
        right: 10px;
        bottom: 10px;
        max-width: 95vw;
    }
}