﻿/* ================================== */
/* 1. Core Variables & Fonts */
/* ================================== */
/* Based on DATAMARK LLC Logo Colors: */
:root {
    --datamark-primary: #000040; /* Deep Navy Blue (Text, Background) */
    --datamark-red: #D20000; /* Vibrant Red (Vulnerability/Alert) */
    --datamark-green: #00C853; /* Bright Green (Security/Success) */
    --datamark-text-color: #e0e0e0; /* 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;
}

/* Fonts */
.orbitron-font {
    font-family: 'Orbitron', sans-serif;
}
/* Used for Headers/Logo */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa; /* 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;
}

/* ================================== */
/* 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 */
/* ================================== */

/* A. Full Width Spacing Fix */
/* This overrides Bootstrap's default padding to push content to the edges,
   but keeps a minimal padding on mobile devices for readability. */
.custom-nav-fluid {
    /* Remove padding on large screens to achieve edge-to-edge */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure branding element has zero margin/padding to start at extreme left */
.navbar-brand {
    padding-left: 20px; /* Minimal padding for the logo on all screens */
}


/* B. Logo Sizing and Positioning */

/* Default size (Mobile/Tablet) */
.custom-navbar-logo {
    height: 35px; /* Slightly larger than previous 30px */
    width: auto;
    transition: all 0.3s ease;
    margin-left: 0; /* Ensures no default margin is pushing it */
}

/* Larger Logo on Desktop (>= 992px) */
@media (min-width: 992px) {
    /* Larger size for the logo */
    .custom-navbar-logo {
        height: 50px; /* Adjust this value for desired large size */
        margin-left: 20px; /* Push the logo slightly from the extreme left edge for aesthetics */
    }

    /* Adjust padding for the menu links to keep them aligned relative to the logo */
    .navbar-brand {
        padding-left: 0; /* Let the logo's margin handle spacing */
    }
}
/* ================================== */
/* 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('assets/c1.png');
}

.carousel-bg-item-2 {
    /* Multi-Cloud Partner Ecosystem: Interconnected Platforms */
    background-image: url('assets/c2.png');
}

.carousel-bg-item-3 {
    /* Outcome-Driven Culture: Dashboard Metrics */
    background-image: url('assets/c3.png');
}

/* 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) */
/* ================================== */

@media (min-width: 992px) {
    /* Main container to manage the three sections: Logo, Menu, Button */
    .navbar-nav-centered {
        /* Ensures the container fills the available space next to the logo */
        width: 100%;
        display: flex !important;
        /* Distribute space: this ensures the main menu is in the center */
        justify-content: space-between;
        align-items: center;
    }

    /* 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;
    }

    /* Push the 'Engage Us' button container to the far right */
    /* This overrides the default Bootstrap collapsing behavior */
    .navbar-nav.ms-lg-auto {
        margin-left: 2px !important;
    }

    /* Optional: Fine-tune spacing for the main menu links */
    .navbar-nav .nav-item {
        margin-left: 2px;
        margin-right: 2px;
    }
}