/* General Body & HTML Reset */
:root {
    --dark-bg: #1A1A1D;
    --dark-surface: #2C2C30;
    --dark-text: #E0E0E0;
    --light-text: #B0B0B0;
    --accent-green: #3DDC84; /* Vibrant emerald/forest green */
    --accent-blue: #00BFFF; /* Deep sky blue for secondary highlights */
    --cta-hover-green: #2CBF6C;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* New: For Root animation - using green as per image interpretation */
    --root-color: var(--accent-green); /* Using accent-green for root paths */
    --root-glow: rgba(61, 220, 132, 0.4);

    /* New: For Dashboard Card borders */
    --dashboard-border-color: #f7931a; /* Orange from design image */
    --dashboard-border-glow: rgba(247, 147, 26, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cta-hover-green);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--dark-text);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; font-weight: 700; }
h2 { font-size: 2em; font-weight: 600; }
h3 { font-size: 1.4em; font-weight: 600; }

section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Background Animation Layer (subtle dark charcoals) */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(60, 60, 60, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 90%, rgba(40, 40, 40, 0.05) 0%, transparent 20%);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
    animation: pulseBg 20s infinite alternate ease-in-out;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.3; }
}


/* Header */
.main-header {
    background-color: rgba(26, 26, 29, 0.95);
    padding: 15px 5%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-text);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px;
    position: relative;
}

.main-nav ul li a:not(.solutions-button) {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
    display: block;
}

.main-nav ul li a:not(.solutions-button):hover {
    color: var(--dark-text);
}

.main-nav ul li a:not(.solutions-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: var(--accent-green);
    transition: left 0.3s ease-out;
}

.main-nav ul li a:not(.solutions-button):hover::after {
    left: 0;
}

.solutions-button {
    background-color: var(--accent-green);
    color: var(--dark-bg) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    margin-right: 3em;
}

.solutions-button:hover {
    background-color: var(--cta-hover-green);
    color: var(--dark-bg) !important;
}

/* Submenu Wrapper for SVG & List - Adjusted for the root effect 
.submenu-wrapper {
    position: absolute;
    top: 100%; /* Position below the Solutions button 
    right: 0; /* Aligned to the right edge of the "Solutions" button 
    min-width: 200px;
    max-height: 0; /* Initially hidden, reveal with JS 
    overflow: hidden; /* Hide overflow until opened 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.4s ease-out; /* Smooth reveal 
    z-index: 100;
    display: flex; /* Flex container for SVG and Ul 
    flex-direction: column;
    align-items: flex-end; /* Align submenu items to the right, under the button 
}

.solutions-menu-item:hover .submenu-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    max-height: 300px; /* Sufficient height to show all items 
}

.submenu {
    list-style: none;
    background-color: rgba(44, 44, 48, 0.98); /* Dark background for submenu 
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    padding: 10px 0;
    position: relative; /* To position over SVG 
    z-index: 2; /* Ensure submenu items are above SVG 
    min-width: 200px;
}

.submenu li a {
    color: var(--light-text);
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.submenu li a:hover {
    background-color: rgba(61, 220, 132, 0.1);
    color: var(--accent-green);
}

/* SVG Paths for Root Animation 
.submenu-svg-paths {
    position: absolute;
    top: -5px; /* Adjust slightly up to meet the button 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Between wrapper and actual submenu 
    overflow: visible;
}

.submenu-svg-paths path {
    stroke: var(--root-color);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: var(--dash-array); /* Set by JS 
    stroke-dashoffset: var(--dash-offset); /* Animated by JS 
    transition: stroke-dashoffset 0.5s ease-out;
    filter: drop-shadow(0 0 5px var(--root-glow)); /* Subtle glow 
}
.solutions-menu-item {
    position: relative;
    /* Important for the submenu-wrapper to align correctly 
}

/* Submenu Wrapper for SVG & List - Adjusted for the root effect */
.submenu-wrapper {
    position: absolute;
    right: 0; /* Aligned to the right edge of the "Solutions" button */
    min-width: 220px; /* Wider to accommodate roots and text */
    max-width: 18em;
    float: right;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.4s ease-out;
    z-index: 100;
    display: flex;
    flex-direction: column; /* Stack submenu and SVG if needed */
    align-items: flex-end; /* Align the submenu list to the right */
    padding-top: 20px; /* Space for roots to appear from above */
}

.solutions-menu-item:hover .submenu-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    max-height: 300px; /* Sufficient height for submenu + roots */
}

.submenu {
    list-style: none;
    position: relative;
    z-index: 2; /* Ensure submenu items are above SVG */
    min-width: 200px; /* Ensure consistent width */
    margin: 100px 20px 0 20px; /* Adjust to allow space for roots */
    display: flex !important;
    flex-direction: column;
}
.submenu li {margin-left: 0 !important;}
.submenu li a {
    color: var(--light-text);
    padding: 0.5em; /* Slightly reduced padding */
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1.05em; /* Slightly larger for readability */
}

.submenu li a:hover {
    background-color: rgba(61, 220, 132, 0.1);
    color: var(--accent-green);
}

/* SVG Paths for Root Animation */
.submenu-svg-paths {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 1; /* Behind the actual submenu items */
    overflow: visible;
    pointer-events: none; /* Do not block mouse events on submenu items */
}

.submenu-svg-paths path {
    stroke: var(--root-color);
    stroke-width: 1.5; /* Finer lines for roots */
    fill: none;
    filter: drop-shadow(0 0 3px var(--root-glow)); /* Subtle glow */
    opacity: 0; /* Initially hidden */
    transition: stroke-dashoffset 0.5s ease-out, opacity 0.3s ease; /* Animate dashoffset and opacity */
}

.solutions-menu-item:hover .submenu-svg-paths path {
    opacity: 1; /* Show paths on hover */
}

/* Hero Section */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--dark-text);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    opacity: 0.9;
    z-index: 1;
}

.hero-network-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* This SVG data URL is a placeholder. You'd replace it with your actual custom map image/SVG. */
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1200 600" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="%233DDC84"/><stop offset="100%" stop-color="%2300BFFF"/></linearGradient></defs><path fill="none" stroke="url(%23g1)" stroke-width="1.5" stroke-dasharray="8 4" opacity="0.3" d="M100 300 C 300 100, 900 100, 1100 300 S 900 500, 100 300"></path><path fill="none" stroke="url(%23g1)" stroke-width="1.5" stroke-dasharray="8 4" opacity="0.3" d="M600 0 L 100 300 L 600 600 L 1100 300 Z"></path><circle cx="250" cy="200" r="12" fill="%233DDC84" opacity="0.8"/><circle cx="500" cy="150" r="10" fill="%2300BFFF" opacity="0.7"/><circle cx="800" cy="220" r="14" fill="%233DDC84" opacity="0.9"/><circle cx="950" cy="400" r="11" fill="%2300BFFF" opacity="0.7"/><circle cx="350" cy="450" r="13" fill="%233DDC84" opacity="0.8"/></svg>') no-repeat center center / cover;
    background-size: cover;
    animation: fadePulse 15s infinite alternate ease-in-out, panBackground 40s infinite linear;
}

@keyframes panBackground {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes fadePulse {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
    100% { opacity: 0.2; transform: scale(1); }
}


.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    animation: fadeInScale 1.5s ease-out;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--dark-text);
}

.hero-content p {
    font-size: 1.4em;
    font-weight: 300;
    opacity: 0.9;
    color: var(--light-text);
    margin-bottom: 30px;
}

.service-icons-in-hero {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.service-icons-in-hero .fas {
    font-size: 1.8em;
    color: var(--accent-green);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-icons-in-hero .fas:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Info Dashboards - CORRECTED for border & icons */
.info-dashboards {
    display: flex;
    justify-content: space-around;
    gap: 1em;
    margin-top: -5em;
    position: relative;
    z-index: 5;
    padding-bottom: 1em;
}

.dashboard-card {
    background-color: var(--dark-surface);
    padding: 1.5em;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    border-color: var(--dashboard-border-color); /* Stronger orange border on hover */
    box-shadow: 0 0 20px var(--dashboard-border-glow); /* Glowing effect */
    border: 3px solid rgba(247, 147, 26, 0.2); /* Subtle orange border */
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-green); /* Green border on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.dashboard-card i {
    font-size: 2.5em;
    color: var(--accent-blue); /* Blue icon color */
    filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.4)); /* Blue icon glow */
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dashboard-card:hover i {
    color: var(--accent-blue); /* Keep blue on hover */
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.8)); /* Stronger blue glow on hover */
    transform: scale(1.1);
}

.dashboard-card h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 0.95em;
    color: var(--light-text);
}

/* Main Content Area */
.main-content-area {
    padding-top: 3em;
    padding-bottom: 3em;
}

.content-block {
    background-color: var(--dark-surface);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 60px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.content-block h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.content-block h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 60px;
    height: 3px;
    background-color: var(--accent-green);
    border-radius: 2px;
}

/* Our Approach */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.approach-item i {
    font-size: 3em;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.approach-item h4 {
    color: var(--dark-text);
}

/* Service Deep Dives (Now only 2 cards) */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(61, 220, 132, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.service-card i {
    font-size: 2.8em;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 25px;
}

.btn-learn-more {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--dark-bg) !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-learn-more:hover {
    background-color: var(--cta-hover-green);
}

/* Innovation Hub (Original Design) */
.innovation-hub p {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--light-text);
}

.innovation-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.innovation-features div {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.1em;
}

.innovation-features i {
    margin-right: 10px;
    color: var(--accent-green);
    font-size: 1.3em;
}

/* Testimonials */
.testimonials {
    text-align: center;
}

.testimonial-card {
    background-color: var(--dark-bg);
    padding: 1em;
    border-radius: 8px;
    max-width: 95%;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-left: 5px solid var(--accent-green);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    color: var(--light-text);
    margin-bottom: 15px;
}

.testimonial-card span {
    font-weight: 600;
    color: var(--dark-text);
}

/* Call to Action (Corrected to match design) */
.call-to-action {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    text-align: center;
    padding: 30px 5%;
    border-radius: 10px;
    margin-bottom: 3em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--dashboard-border-color);
}

.call-to-action h2 {
    color: var(--dark-text);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.call-to-action p {
    color: var(--light-text);
    font-size: 1.2em;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--accent-green);
    color: var(--dark-bg) !important;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.cta-button:hover {
    background-color: var(--cta-hover-green);
    transform: translateY(-3px);
}


/* Footer - Compacted and Aligned */
.main-footer {
    background-color: #111;
    color: var(--light-text);
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    white-space: nowrap;
}

.footer-info p {
    margin: 0;
    line-height: 1.4;
    color: var(--light-text);
    font-size: 0.9em;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-media {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 2.8em; }
    .hero-content p { font-size: 1.2em; }
    .main-nav ul li { margin-left: 20px; }
    .info-dashboards { flex-wrap: wrap; justify-content: center; }
    .dashboard-card { flex-basis: 45%; }

    .main-footer { flex-direction: column; text-align: center; }
    .footer-left, .footer-right {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        align-items: center; /* Center items when stacked */
    }
    .footer-right { justify-content: center; } /* Center social/copyright */
    .copyright { margin-top: 15px; }
}

@media (max-width: 768px) {
    .main-header { flex-direction: column; align-items: flex-start; }
    .main-nav { margin-top: 20;}
}

