﻿/* ================================== */
/* 1. Core Variables & Fonts */
/* ================================== */
/* Based on DATAMARK LLC Logo Colors: */
:root {
    --datamark-primary: #6197e0; /* Deep Navy Blue (Text, Background) */
    --datamark-red: #c22323; /* Vibrant Red (Vulnerability/Alert) */
    --datamark-green: #00C853; /* Bright Green (Security/Success) */
    --datamark-text-color: #f5f5f5; /* Light text for dark backgrounds */
}

/* --- ADDED RULE FOR LOGO SIZE --- */
.navbar-logo {
    height: 40px; /* Adjust height for the navbar */
    width: auto;
    transition: all 0.3s ease;
}
/* HERO */
.ecosystem-hero {
    min-height: 60vh;
    background: linear-gradient(120deg, #0a0f2c, #001f3f, #003366);
    padding: 120px 20px;
}

/* CARDS */
.ecosystem-card {
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

    .ecosystem-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .ecosystem-card ul {
        padding-left: 0;
        list-style: none;
    }

    .ecosystem-card li {
        margin-bottom: 8px;
    }

/* IMPACT */
.impact-section {
    background: #f5f7fa;
}

.impact-box {
    padding: 20px;
}

/* Fonts */
.orbitron-font {
    font-family: 'Orbitron', sans-serif;
}
/* Used for Headers/Logo */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff; /* Default light background */
    color: #333;
}

/* ================================== */
/* 2. Global Elements & Utilities */
/* ================================== */

/* Overriding Bootstrap Primary/Success/Danger to match logo colors */
.bg-dark {
    background-color: var(--datamark-primary) !important;
}

.text-danger {
    color: var(--datamark-red) !important;
}

.text-success {
    color: var(--datamark-green) !important;
}

.btn-success {
    background-color: var(--datamark-green) !important;
    border-color: var(--datamark-green) !important;
}

.btn-outline-success {
    color: var(--datamark-green) !important;
    border-color: var(--datamark-green) !important;
}

    .btn-outline-success:hover {
        background-color: var(--datamark-green) !important;
        color: white !important;
    }

.separator-line {
    height: 4px;
    width: 60px;
    margin-top: 10px;
}
.navbar-logo {
    height: 50px; /* adjust if needed */
    width: auto;
}

.brand-text {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin: 0;
}

/* HERO */
.intelligence-hero {
    min-height: 60vh;
    background: linear-gradient(120deg, #02092c, #001f3f, #003366);
    padding: 120px 20px;
}

/* GAP SECTION */
.intelligence-gap {
    background: linear-gradient(135deg, #7a0000, #b30000);
}

/* CARDS */
.intelligence-card {
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

    .intelligence-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

/* ================================== */
/* 3. Hero Video Section (Title Slide) */
/* ================================== */

.hero-section {
    height: 100vh;
    overflow: hidden;
    position: relative;
    /* Optional: Add Circuit Board visual texture */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%231a1a5c" d="M100 0L0 100V0z"/><path fill="%23000040" d="M0 100L100 0V100z"/></svg>');
    background-size: 10px 10px;
    color: var(--datamark-text-color);
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The Core Logo Gradient: Deep Blue overlay with Red/Green transition emphasis */
    background: linear-gradient(90deg, rgba(200, 0, 0, 0.4) 0%, rgba(0, 0, 64, 0.6) 50%, rgba(0, 200, 83, 0.4) 100%);
    z-index: 1;
}

.z-index-1 {
    z-index: 2;
}


/* ================================== */
/* 4. Flip Card CSS (Success Stories) */
/* ================================== */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border-radius: 10px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Front: Danger/Vulnerability (Red side of your logo) */
.flip-card-front {
    background-color: var(--datamark-red);
    color: white;
}
/* Back: Success/Security (Green side of your logo) */
.flip-card-back {
    background-color: var(--datamark-green);
    color: white;
    transform: rotateY(180deg);
}

/* ================================== */
/* 5. General Effects & Utility */
/* ================================== */
.hover-effect:hover {
    transform: translateY(-5px);
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Lazy Loading Animation (no change needed, still good) */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .fade-in-section.visible {
        opacity: 1;
        transform: none;
    }

/* ================================== */
/* 6. Navbar Customization & Fixes (REVISED) */
/* ================================== */

/* Add some padding back to the fluid container for aesthetic spacing on large screens */
.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Larger Logo on Desktop (>= 992px) */
@media (min-width: 992px) {
    .navbar-logo {
        height: 50px; /* Larger size for the logo */
    }
}

/* ================================== */
/* 7. Carousel Background Styles (NEW SECTION) */
/* ================================== */

.carousel-bg-item {
    min-height: 450px; /* Ensures the carousel has a visible height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white; /* Default text color */
}

    /* Dark overlay for text readability (using Deep Navy color) */
    .carousel-bg-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Use a semi-transparent dark overlay for high contrast */
        background: rgba(0, 0, 64, 0.7);
        z-index: 1;
    }

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Must be above the overlay */
    text-align: center;
    padding: 20px;
    max-width: 90%;
}

/* Specific Background Images (Use these paths for your uploaded images) */
.carousel-bg-item-1 {
    /* Global Cloud-Security Specialist: Green Shielding Network */
    background-image: url('c1.webp');
}

.carousel-bg-item-2 {
    /* Multi-Cloud Partner Ecosystem: Interconnected Platforms */
    background-image: url('c2.webp');
}

.carousel-bg-item-3 {
    /* Outcome-Driven Culture: Dashboard Metrics */
    background-image: url('c3.webp');
}

/* Styling for Carousel Navigation Arrows */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--datamark-primary) !important; /* Deep Navy background for arrows */
    border-radius: 50%;
    padding: 20px;
}

/* ================================== */
/* 8. Navbar Layout (Logo Left, Menu Center, Button Right) (REVISED) */
/* ================================== */

@media (min-width: 992px) {
    /* 1. Main container to manage the three sections: Logo, Menu, Button */
    .navbar-nav-centered {
        width: 100%;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        /* Crucial: Prevent the entire menu block from wrapping */
        flex-wrap: nowrap;
    }

    /* 2. Ensure the main menu list is correctly centered within its flex container */
    .navbar-nav.main-menu-center {
        /* Use margin auto on both sides to truly center the main link group */
        margin-left: auto !important;
        margin-right: auto !important;
        /* Crucial: Prevent the centered links from wrapping inside their group */
        flex-wrap: nowrap;
    }

        /* 3. Reduce spacing on menu links to fit 8 links cleanly */
        .navbar-nav.main-menu-center .nav-item {
            /* Minimal horizontal padding to save space */
            padding-left: 0.4rem;
            padding-right: 0.4rem;
        }

    /* 4. Push the 'Engage Us' button container to the far right */
    .navbar-nav.ms-lg-auto {
        margin-left: auto !important;
        /* Ensure the button doesn't wrap off the right edge */
        flex-shrink: 0;
    }

    /* 1. Mobile Menu Link Unfocused State */
    .navbar-nav .nav-link {
        color: white !important; /* Pure white text */
        /* Subtle separator line (acting as the underline/separator) */
        /*border-bottom: 1px solid white;*/
        /* Larger padding for better tap targets and spacing */
        padding: 0.75rem 1.5rem;
        /* Ensure no background color in unfocused state */
        background-color: transparent !important;
        /* The custom underline from the desktop styles is unnecessary here */
        position: static;
    }

        /* Ensure the custom white underline from desktop styles is hidden on mobile */
        .navbar-nav .nav-link::after {
            display: none;
        }

        /* 2. Mobile Menu Link Hover/Focus State */
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus {
            background-color: white !important; /* Solid white background on hover */
            color: var(--datamark-primary) !important; /* Text color changes to blue */
            text-decoration: none; /* Remove any default underline */
            border-radius: 0; /* Keep sharp corners for full-width items */
        }

    /* Ensure the 'Engage Us' button style is maintained in the mobile menu */
    .navbar-nav .btn.btn-success {
        color: white !important;
        background-color: var(--datamark-green) !important;
        border: none !important;
        border-bottom: none !important;
        margin-top: 10px;
        margin-left: 1.5rem;
    }
}

/* --- END OF MOBILE/SMALL SCREEN FIXES --- */


/* ================================== */
/* 9. Hero Section Fixes (NEW SECTION) */
/* ================================== */

/* Fix the spacing for the small hero section on pages like Vision.aspx */
.hero-section-small {
    /* The navbar is fixed-top, so we need padding-top, not margin-top (mt-5) */
    /* Use padding-top to push content below the fixed navbar */
    padding-top: 60px;
    /* The mt-5 was causing a gap between the navbar and the section; remove it */
    margin-top: 0 !important;
}