/* Midnight Blue Professional Dark Theme Overlay */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;       /* Deep slate/navy background */
    --bg-panel: #1e293b;      /* Slightly lighter panel background */
    --footer-bg: #000000;     /* Pure black for footer */
    --text-main: #f8fafc;     /* Soft white text */
    --text-muted: #94a3b8;    /* Silver/grey muted text */
    --accent-blue: #3b82f6;   /* Professional sapphire blue */
    --accent-teal: #0ea5e9;   /* Vibrant teal accent */
    --border-color: rgba(255, 255, 255, 0.08); /* Soft glass borders */
    --soft-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .heading {
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0px;
}

p {
    color: var(--text-muted) !important;
    line-height: 1.8 !important;
}

/* Gradient Text for major headings */
h1.mb-2, .ftco-heading-2, .heading-section h2 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.heading-section {
    margin-bottom: 0px !important;
}

/* Nav Bar - Dark Glass */
.navbar-dark.ftco-navbar-light {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.navbar-dark.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    color: var(--text-main) !important;
    text-transform: capitalize;
    font-size: 15px;
    font-weight: 500;
}

.navbar-dark.ftco-navbar-light .navbar-nav > .nav-item.active > a {
    color: var(--accent-teal) !important;
    font-weight: 700;
}

/* Buttons */
.btn.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal), var(--accent-blue)) !important;
    background-size: 200% 200% !important;
    border: none !important;
    color: white !important;
    border-radius: 8px !important; 
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: none;
    font-weight: 600;
    padding: 10px 24px !important;
    animation: shimmer 4s infinite linear, pulse-glow 3s infinite alternate !important;
}

.btn.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5) !important;
    transform: translateY(-2px);
}

/* Sections and Containers */
.ftco-section {
    background-color: var(--bg-dark) !important;
}

.bg-light {
    background-color: #0b1120 !important; /* Slightly darker than main bg for contrast */
}

/* Soft Cards (Services, Events, Pricing, Blog) */
.services, .services-2, .event-wrap, .pricing-entry, .block-20, .blog-entry {
    background: var(--bg-panel) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--soft-shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    overflow: hidden;
    margin: 15px !important;
    animation: floating 6s ease-in-out infinite !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.services:hover, .services-2:hover, .event-wrap:hover, .pricing-entry:hover, .blog-entry:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: var(--bg-panel) !important; /* Override template hover bg */
}

.services .text h3, .services-2 .text h3, .event-wrap .text h3, .blog-entry .text h3.heading a {
    color: #ffffff !important;
}

.services:hover .text p, .services-2:hover .text p, 
.services:hover .text h3, .services-2:hover .text h3 {
    color: #ffffff !important; /* Ensure text stays highly readable on hover */
}

/* Top bar (Email/Phone) */
.bg-top {
    background: #000000 !important;
    border-bottom: 1px solid #1e293b !important;
}
.bg-top .text span {
    color: var(--text-muted) !important;
}
.bg-top .icon span {
    color: var(--accent-teal) !important;
}

/* Footer (Explicitly Black) */
.ftco-footer {
    background-color: var(--footer-bg) !important;
    border-top: 1px solid #1e293b;
}
.ftco-footer .ftco-heading-2 {
    color: #ffffff !important;
    font-weight: 700;
}
.ftco-footer p, .ftco-footer li a span, .ftco-footer li a {
    color: var(--text-muted) !important;
}
.ftco-footer li a:hover {
    color: var(--accent-teal) !important;
}

/* Inputs / Forms */
.form-control {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 8px !important;
}
.form-control:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Hero Section Overlay */
.hero-wrap .overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7)) !important;
}
.hero-wrap .slider-text h1.bread {
    color: #ffffff !important;
}
.hero-wrap .breadcrumbs span a {
    color: var(--accent-teal) !important;
}

/* Stats Counter Section Oval Edges */
.ftco-counter .wrapper {
    background: #ffffff !important;
    border-radius: 100px !important; /* Oval/Pill shape */
    padding: 30px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    border: none !important;
}

.ftco-counter .wrapper .text span {
    color: #475569 !important; /* Dark slate text for readability */
}

.ftco-counter .wrapper .text strong.number {
    color: #0f172a !important; /* Deep dark blue for numbers */
}

.ftco-counter .wrapper .icon span {
    color: var(--accent-teal) !important; /* Bright teal for icons */
}

@media (max-width: 768px) {
    .ftco-counter .wrapper {
        border-radius: 30px !important; /* Less oval on mobile so it doesn't break layout */
    }
}

/* -----------------------------
   DYNAMIC ANIMATIONS 
----------------------------- */

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2); }
    100% { box-shadow: 0 4px 25px rgba(14, 165, 233, 0.6); }
}

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