/* ==========================================================================
   1. GLOBAL & CORE STYLES (Shared across all pages)
   ========================================================================== */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}



/* ==========================================================================
   NAVBAR & FOOTER - Style Info
   ========================================================================== */
/* Navbar Style - START */
.navbar {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Ensure nav links transition smoothly as well */
.navbar .nav-link {
    transition: color 0.4s ease;
    color: #ffffff; /* Default text color at the very top */
}

/* Styles for when the navbar is at the very top */
.navbar-top {
    background-color: transparent !important;
    border-bottom: 2px solid #D4AF37 !important; /* Gold border */
    box-shadow: none !important;
}

/* Undo transparency, border, add shadow, and turn text BLACK on hover */
.navbar-top:hover {
    background-color: #2F3E46 !important; /* Turns into Imperial Blue on hover up top */
    border-bottom: 2px solid transparent !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; 
}
.navbar-top:hover .nav-link,
.navbar-top:hover .dropdown-toggle-split {
    color: #ffffff !important; /* Keeps links crisp white against the dark navy background */
}

/* Ensures active link stays gold even when hovering the transparent bar */
.navbar-top:hover .nav-link.active {
    color: #D4AF37 !important;
}

/* Styles for when the navbar scrolls past the header - Turns text BLACK */
.navbar-scrolled {
    background-color: #2F3E46 !important; /* Premium Imperial Blue */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
.navbar-scrolled .nav-link {
    color: #ffffff !important; /* Text changes to crisp white on navy */
}

/* Overrides the black scroll rule so the active link retains its color */
.navbar-scrolled .nav-link.active {
    color: #D4AF37 !important; /* Forces active link to your corporate gold */
}

/* Optional: Change text color on hover when links are already black */
.navbar-scrolled .nav-link:hover,
.navbar-top:hover .nav-link:hover {
    color: #D4AF37 !important; /* Turns Gold on hover over navy or white bases */
}

/* Sync active dropdown items to match the custom padding and gold hover design */
.navbar .dropdown-menu .dropdown-item.active, 
.navbar .dropdown-menu .dropdown-item:active {
    background-color: rgba(214, 175, 55, 0.05) !important; /* Matches hover background */
    color: #D4AF37 !important;                     /* Matches hover text gold color */
    padding-left: 1.75rem !important;              /* Matches your custom hover padding slide */
}

/* Cursor indicator helper class */
.cursor-pointer { cursor: pointer; }

/* Desktop-Only Hover Rules Matrix */
@media (min-width: 992px) {
    /* Triggers dropdown visibility on link container hovering activity */
    .custom-navbar-dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Initial hidden state setup enabling soft layout transitions */
    .custom-navbar-dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Mobile-Only Collapsible Toggle Overrides */
@media (max-width: 991.98px) {
    .custom-navbar-dropdown .dropdown-menu {
        background-color: transparent !important;
        box-shadow: none !important;
        padding-left: 1.25rem !important;
        border-left: 2px solid rgba(212, 175, 55, 0.3) !important;
        margin-bottom: 0.75rem;
    }
    
    /* Ensures items match mobile drawer styling safely */
    .custom-navbar-dropdown .dropdown-item {
        color: inherit !important;
        padding-left: 0 !important;
    }
    .custom-navbar-dropdown .dropdown-item:hover {
        background-color: transparent !important;
        color: #D4AF37 !important;
    }
}

/* Dropdown Menu Item Global Theme Rules */
.navbar .dropdown-menu {
    background-color: #2F3E46 !important; /* Forces dropdown background to Imperial Blue */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-width: 200px;
}

.navbar .dropdown-item {
    color: #ffffff !important; /* Flips text color to crisp white for contrast */
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

/* Subtle padding slide transition when hovering inside menu items */
.navbar .dropdown-item:hover {
    color: #D4AF37 !important;
    background-color: rgba(214, 175, 55, 0.05) !important;
    padding-left: 1.75rem !important;
}

/* Match mobile split arrow color changes dynamically on navbar active states */
.navbar-top:hover .dropdown-toggle-split {
    color: #000000 !important; /* Black when desktop nav turns white on hover */
}
.navbar-scrolled .dropdown-toggle-split {
    color: #ffffff !important; /* Crisp white when scrolling on navy */
}
/* Navbar Style - END */

/* Footer Style - START */
footer.bg-body {
    background-color: #2F3E46 !important; /* Premium Imperial Blue */
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Forces footer copy text parameters to display clean white over navy */
footer.bg-body p,
footer.bg-body span,
footer.bg-body a:not(.social-icon-circle) {
    color: #ffffff !important;
}

/* Softens paragraph descriptions */
footer.bg-body .text-muted {
    color: #a0aec0 !important; /* Soft Slate Silver */
}

/* Modifies default social circle outlines for dark background visibility */
footer.bg-body a.social-icon-circle,
footer.bg-body a.social-icon-circle.text-muted {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: transparent !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}

footer.bg-body a.social-icon-circle:hover,
footer.bg-body a.social-icon-circle.text-muted:hover {
    border-color: #D4AF37 !important;
    background-color: #D4AF37 !important; /* Circle fills solid yellow */
}

/* The SVG Filter Fix: Dynamically changes the asset color from gray to Imperial Blue */
footer.bg-body a.social-icon-circle:hover svg {
    filter: invert(11%) sepia(35%) saturate(3033%) hue-rotate(201deg) brightness(91%) contrast(100%) !important;
}

.footer-hover-link {
    transition: color 0.15s ease-in-out;
}

/* Higher specificity selector path ensures gold color forces over default classes */
footer.bg-body a.footer-hover-link:hover,
footer.bg-body a.footer-hover-link:hover * {
    color: #D4AF37 !important; /* Premium brand gold color on hover */
}

/* Custom social icon style matching your links */
.social-icon-circle {
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}
.social-icon-circle:hover {
    border-color: var(--bs-primary) !important;
}
/* Footer Style - END */



/* ==========================================================================
   HOME PAGE - Style Info
   ========================================================================== */
/** Projects Marquee Style Info */
.projects-marquee {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 20px 0;
}

.projects-track {
    display: flex;
    width: max-content;
    animation: endless-split-marquee 25s linear infinite;
}

@keyframes endless-split-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.projects-marquee:hover .projects-track {
    animation-play-state: paused;
}

.project-card-wrapper {
    width: calc(100vw / 3);
    flex-shrink: 0;
    padding: 0 15px; 
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .project-card-wrapper {
        width: 100vw;
        padding: 0 20px;
    }
}

/** Blog Section Style Info */
.image-responsive-height {
    height: 50vh;
}

@media (min-width: 768px) {
    .image-responsive-height {
        height: 30vh;
    }
}



/* ==========================================================================
   4. ABOUT PAGE - Style Info
   ========================================================================== */
/* Hero covers exactly 50% vertical height */
.about-hero {
    height: 50vh;
    width: 100vw;
    position: relative;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8));
}

/* Responsive image sizes for text sections */
.about-section-img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Fixed aspect ratio profile cards */
.team-avatar {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Ensure uniform, perfectly circular images */
.team-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Base button styles featuring the '+' icon */
.team-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  background-color: #000000 !important; /* Black background */
  border: 1px solid #000000 !important;
  color: #ffffff !important;            /* White text/icon */
}

.team-btn::before {
  content: "+";
  font-size: 1.5rem;
  font-weight: bold;
}

/* Hover transformation: widens button and swaps '+' for 'View' */
.team-btn:hover {
  width: 80px;
  background-color: #ffffff !important;
  color: #000000 !important;
}

.team-btn:hover::before {
  content: "View";
  font-size: 0.9rem;
}

/* Color accent for the modal close button using Bootstrap's primary color variable */
.modal .btn-close {
  opacity: 0.6; /* Semi-transparent default look */
  transition: all 0.2s ease-in-out;
  filter: brightness(0%) contrast(100%); /* Forces the default icon to pure black */
  border: 2px solid transparent; /* Transparent boundary prevents layout shifting on hover */
  border-radius: 4px; /* Slight rounding matching default Bootstrap buttons */
  padding: 0.25rem;
}

.modal .btn-close:hover {
  opacity: 1;
  border-color: #000000;
  background-color: transparent; /* Ensures no background fills the button */
}

/* Force popup image to 95% width, maintaining a 1:1 circular aspect ratio without distortion */
.modal-profile-img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==========================================================================
   Project Pages - Style Info
   ========================================================================== */
/* Utility to achieve the half-hero layout split visually */
.mt-negative-lg {
    margin-top: -3.5rem;
}
@media (max-width: 991.98px) {
    .mt-negative-lg {
        margin-top: -2rem;
    }
}

/* ==========================================================================
   Projects Home - Style Info
   ========================================================================== */

/* Card Surface Elevate & Physics Animations */
.custom-project-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.custom-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
}

/* Operational Header Type Animations */
.project-title-link {
    transition: color 0.15s ease;
}

.custom-project-card:hover .project-title-link {
    color: #D4AF37 !important;
}

/* Micro-Metric Sub-Labeling Configurations */
.metric-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

/* Font Compression Class to Mitigate Line Truncation */
.small-metric-val {
    font-size: 0.95rem;
    white-space: nowrap;
}

.uppercase-tracking {
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Precision Positioning Utilities */
.top-3 { top: 1rem !important; }
.start-3 { start: 1rem !important; }

/* ==========================================================================
   Projects Mines - Style Info
   ========================================================================== */

.leading-relaxed {
    line-height: 1.75 !important;
}

.tracking-wider {
    letter-spacing: 0.06em !important;
}

.small-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

/* Typography Label Sizing Metrics */
.metric-subtitle {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a8aeb4;
    display: block;
}

.metric-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    display: block;
}

/* Multi-Column Desktop Grid Border Configurations */
@media (min-width: 1200px) {
    .border-end-lg {
        border-right: 1px solid var(--bs-border-color) !important;
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .border-end-md {
        border-right: 1px solid var(--bs-border-color) !important;
    }
}
/* ==========================================================================
   Aurexis Gold Corporation - Premium Investor Typography Settings
   ========================================================================== */

.fw-extrabold {
    font-weight: 800 !important;
}

.leading-relaxed {
    line-height: 1.75 !important;
}

.tracking-wider {
    letter-spacing: 0.06em !important;
}

/* Card Metric Labeling Configurations */
.metric-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8c939b;
    display: block;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #495057;
    display: block;
}

/* Operational Performance Grid Metrics Styles */
.performance-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    display: block;
    margin-bottom: 0.25rem;
}

.performance-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    display: block;
}

/* Responsive Custom Separation Borders */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid var(--bs-border-color) !important;
    }
}

@media (min-width: 576px) {
    .border-body-secondary-custom {
        border-right: 1px solid var(--bs-border-color-translucent) !important;
    }
    .border-end-md-custom {
        border-right: 1px solid var(--bs-border-color-translucent) !important;
    }
}

/* ==========================================================================
   Aurexis Gold Corporation - Wide Dashboard Grid Support
   ========================================================================== */

.leading-relaxed {
    line-height: 1.75 !important;
}

.metric-dashboard-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a9199;
    display: block;
}

/* Custom dashboard separation grid dividers for wide layout views */
@media (min-width: 992px) {
    .border-end-lg-custom {
        border-right: 1px solid var(--bs-border-color) !important;
    }
}

/* ==========================================================================
   Aurexis Gold Corporation - Flawless Native Masonry Layout Engine
   ========================================================================== */

/* The Native Multi-Column Masonry Flow Grid */
.custom-blog-masonry-container {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}

.custom-blog-masonry-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid; /* Stops cards from ripping or breaking across columns */
}

/* Fluid responsive grid scaling overrides */
@media (max-width: 991.98px) {
    .custom-blog-masonry-container {
        column-count: 2; /* Tablet scale */
    }
}
@media (max-width: 575.98px) {
    .custom-blog-masonry-container {
        column-count: 1; /* Mobile phone scale */
    }
}

/* Category Filter Dropdown Matching Navbar Experience exactly */
.custom-blog-dropdown .dropdown-menu {
    min-width: 210px;
}

.custom-blog-dropdown .dropdown-item {
    color: #000000 !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}

/* Custom padding slide transition mimicking navbar projects dropdown items */
.custom-blog-dropdown .dropdown-item:hover,
.custom-blog-dropdown .dropdown-item.active {
    color: #D4AF37 !important; /* Premium Brand Gold */
    background-color: rgba(214, 175, 55, 0.05) !important; /* Premium brand gold tint */
    padding-left: 1.75rem !important;
}

.leading-relaxed {
    line-height: 1.75 !important;
}

/* ==========================================================================
   Blogs  |  Masonry - Style Info
   ========================================================================== */

/* Distinct responsive image/video height limits specific to the main blog archive */
.blog-page-media-height {
    height: 32vh !important; /* Adjust this value to your preferred visual look */
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

/* Fluid responsive height scaling targets for tablets and mobile monitors */
@media (max-width: 991.98px) {
    .blog-page-media-height {
        height: 28vh !important;
    }
}

@media (max-width: 575.98px) {
    .blog-page-media-height {
        height: 24vh !important;
    }
}
/* ==========================================================================
   Projects  |  Map - Style Info
   ========================================================================== */
/* NATIVE BOOTSTRAP HOVER CONTROL UTILITY LAYER */

/* Activates hover triggers exclusively on standard desktop computer viewports (768px+) */
@media (min-width: 768px) {
    /* Reveals the dropdown card when the cursor enters the pin bounding track box */
    .dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0 !important;
    }
    
    /* Intentionally keeps the card active if the user moves their cursor into the content card block */
    .dropdown-menu:hover {
        display: block !important;
    }
}
