/* --- Global Reset & Variables --- */
:root {
    --color-dark-blue: #0f1c32; /* Deep Navy Base Background */
    --color-primary: #00e0b7; /* Teal/Green Highlight */
    --color-orange: #ff9900;
    --color-magenta: #ff007f;
    --color-link-blue: #3f6eb7;
    --color-light-gray: #c0d0e0;
    --color-white: #ffffff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-light-gray);
    background-color: var(--color-dark-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Utilities --- */
.highlight-text {
    color: var(--color-primary);
    font-weight: 600;
}
.primary-color { color: var(--color-primary); }
.orange-color { color: var(--color-orange); }
.magenta-color { color: var(--color-magenta); }

/* --- Dynamic Background Grid (JS driven) --- */
#dynamic-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        radial-gradient(circle at center, rgba(0, 224, 183, 0.05) 0%, transparent 70%),
        linear-gradient(to right, rgba(0, 224, 183, 0.05) 1px, var(--color-dark-blue) 1px),
        linear-gradient(to bottom, rgba(0, 224, 183, 0.05) 1px, var(--color-dark-blue) 1px);
    background-size: 50px 50px, 50px 50px, 50px 50px;
    z-index: -1;
    animation: flow 120s linear infinite;
}

@keyframes flow {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 28, 50, 0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 224, 183, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.homepage-header {
    background: var(--color-dark-blue) !important; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    backdrop-filter: none;
}


.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

nav a {
    color: var(--color-light-gray);
    text-decoration: none;
    margin-left: 30px;
    font-size: 1rem;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
}

nav a:hover, nav a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* Call-to-Action Link */
.cta-link {
    background-color: var(--color-orange);
    color: var(--color-dark-blue) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    border-bottom: none !important;
}
.cta-link:hover {
    background-color: #ffb84d;
    color: var(--color-dark-blue);
}

/* --- Hero Section (General) --- */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    min-height: 80vh;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Homepage Hero Specific Styling --- */
.homepage-hero {
    min-height: 90vh;
    background-color: #1a2842;
}

.direct-hero-bg {
    background-image: url('hero-bg.jpg') !important; 
    background-size: cover;
    background-position: center center;
    filter: brightness(0.7) contrast(1.1); 
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 28, 50, 0.4); 
    z-index: 1;
}

/* --- Buttons --- */
.hero-actions .btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    margin-right: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-dark-blue);
    border: 2px solid var(--color-primary);
}

.primary-btn:hover {
    background-color: #33ffcc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 224, 183, 0.3);
}

.secondary-btn {
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
    background: transparent;
}

.secondary-btn:hover {
    background-color: var(--color-orange);
    color: var(--color-dark-blue);
    transform: translateY(-2px);
}

/* --- Section Styling (General) --- */
.section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--color-dark-blue); 
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    margin-bottom: 50px;
}

/* ---------------------------------------------------- */
/* --- Background Images for Content Sections --- */
/* ---------------------------------------------------- */

/* Home: Core Capabilities Section (Hexagons) */
#features {
    background-image: url('bg-features.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
    background-color: rgba(15, 28, 50, 0.85); 
    background-blend-mode: multiply; 
}

/* About: Platform Process Section */
.platform-process {
    background-image: url('bg-process.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
    background-color: rgba(26, 40, 66, 0.9);
    background-blend-mode: multiply; 
}

/* Impact: Metrics Section */
.metrics-section {
    background-image: url('bg-metrics.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
    background-color: rgba(15, 28, 50, 0.9);
    background-blend-mode: multiply;
}

/* Industries: Industry Cards Grid (Wrapper) */
.industry-grid-wrapper {
    background-image: url('bg-industries.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
    background-color: rgba(26, 40, 66, 0.95);
    background-blend-mode: multiply;
}

/* --- NEW: Call to Action Section Background --- */
.cta-section {
    padding: 80px 5%;
    text-align: center;
    
    /* Image Rule: Use a blurred, dark image with high contrast */
    background-image: url('bg-cta.jpg'); 
    background-size: cover;
    background-position: center;
    
    /* Overlay for Readability (Darker than the linear gradient used before) */
    background-color: rgba(15, 28, 50, 0.95); 
    background-blend-mode: multiply; 
    
    border-top: 1px solid var(--color-primary);
}


/* --- Hexagon Feature Grid Styling --- */
.hexagon-grid {
    display: flex;
    justify-content: center;
    gap: 50px; 
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative; 
    z-index: 1;
}
.hexagon-feature {
    width: 200px; 
    height: 180px; 
    position: relative;
    padding-top: 40px;
    text-align: center;
    transition: transform 0.3s ease-out;
    cursor: pointer;
    opacity: 0; 
    z-index: 1;
}
.hexagon-feature:hover {
    transform: translateY(-15px) scale(1.05);
}
.hex-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 115px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--color-white);
    transition: all 0.3s;
}

/* Color definitions based on the data-color attribute in HTML */
.hexagon-feature[data-color="teal"] .hex-icon { 
    border-color: var(--color-primary); 
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 224, 183, 0.5);
}
.hexagon-feature[data-color="blue"] .hex-icon { 
    border-color: var(--color-link-blue); 
    color: var(--color-link-blue);
    box-shadow: 0 0 15px rgba(63, 110, 183, 0.5);
}
.hexagon-feature[data-color="orange"] .hex-icon { 
    border-color: var(--color-orange); 
    color: var(--color-orange);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}
.hexagon-feature[data-color="magenta"] .hex-icon { 
    border-color: var(--color-magenta); 
    color: var(--color-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
}

.hexagon-feature h3 {
    margin-top: 80px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.hexagon-feature p {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    margin-top: 5px;
}


/* --- Call to Action Section --- */
.cta-section {
    /* Styles are now updated above */
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--color-white);
    position: relative; /* Ensure text is above the background blend */
    z-index: 2;
}

.large-btn {
    padding: 15px 40px !important;
    font-size: 1.1rem;
    position: relative; /* Ensure button is above blend */
    z-index: 2;
}

/* --- Full Footer Styling --- */
.full-footer {
    background-color: #0b1524; 
    padding-top: 50px;
    border-top: 5px solid var(--color-primary); 
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col {
    width: 300px;
    margin-bottom: 40px;
}

/* Footer Heading and Text Consistency Fixes */
.footer-heading {
    font-family: var(--font-heading) !important;
    color: var(--color-white) !important;
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Contact Info & Subscription */
.contact-item-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.contact-item-text i {
    color: var(--color-primary);
    margin-right: 10px;
    width: 15px; 
}
.contact-col a {
    color: var(--color-light-gray);
    text-decoration: none;
}
.contact-col a:hover {
    color: var(--color-orange);
}


/* Quick Links Styling */
.links-col ul {
    list-style: none;
    padding-left: 0;
}

.links-col ul li {
    margin-bottom: 8px; 
}

.links-col ul li a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 10px;
    font-size: 0.95rem;
}

.links-col ul li a:hover {
    color: var(--color-orange);
}

.links-col .fa-chevron-right {
    font-size: 0.6rem;
    color: var(--color-primary);
}

/* Social Icons */
.social-links-footer {
    margin-top: 15px;
}
.social-links-footer a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border: 1px solid var(--color-light-gray);
    border-radius: 5px;
    color: var(--color-light-gray);
    margin-right: 10px;
    transition: background-color 0.3s, border-color 0.3s;
}

.social-links-footer a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark-blue);
}

/* Subscription Form */
.subscribe-form {
    display: flex;
    margin-top: 20px;
}
.subscribe-form input {
    padding: 10px;
    border: 1px solid var(--color-light-gray);
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    border-radius: 5px 0 0 5px;
    flex-grow: 1;
    outline: none;
}
.subscribe-form button {
    border-radius: 0 5px 5px 0;
    border: none;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #667799;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero {
        padding: 80px 5%;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .homepage-header {
        background: var(--color-dark-blue); 
    }

    header {
        flex-direction: column;
        padding-bottom: 10px;
    }

    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
    }

    .section {
        padding: 60px 5%;
    }
    
    .hexagon-grid {
        gap: 30px;
    }
    .hexagon-feature {
        margin-bottom: 20px;
    }

    .footer-container {
        justify-content: center;
        text-align: center;
    }
    .footer-col {
        width: 90%;
        max-width: 400px;
    }
    .contact-col {
        order: 1;
    }
    .info-col {
        order: 3;
    }
    .links-col {
        order: 2;
    }
    .subscribe-form {
        max-width: 300px;
        margin: 20px auto;
    }
}