/*
  MIDDCOM SYSTEMS
  Enterprise Corporate Theme
  Colors: Dark Blue (#0A2540), HID Blue (#0078D4), White (#FFFFFF), Light Gray (#F5F7FA)
*/

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

:root {
    --brand-dark: #263238; /* Charcoal Slate */
    --brand-dark-lighter: #37474F;
    --brand-primary: #D32F2F; /* Deep Crimson Red */
    --brand-primary-hover: #B71C1C;
    --bg-light: #F8F9FA;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Bootstrap Overrides */
    --bs-primary: #D32F2F;
    --bs-primary-rgb: 211, 47, 47;
}

html {
    font-size: 15px; /* Scaled down base font size */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.02em; /* Tighter tracking for modern look */
}

/* Ensure all form elements inherit the base font */
input, textarea, select, button, .form-control, .form-select {
    font-family: 'Inter', sans-serif;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-primary-hover);
}

/* --- Buttons --- */
.btn-primary:not(.btn-sm),
.btn-outline-primary:not(.btn-sm),
.btn-outline-light:not(.btn-sm),
.btn-light:not(.btn-sm),
.btn-dark:not(.btn-sm) {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--brand-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Top Bar & Navigation --- */
.top-bar {
    background-color: var(--bg-white);
    color: var(--brand-dark);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar i {
    color: var(--brand-primary);
    opacity: 0.9;
}

.top-bar a {
    color: var(--brand-dark);
    opacity: 0.8;
}

.top-bar .social-links a {
    margin-left: 1rem;
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    opacity: 1;
    color: var(--brand-primary);
}

.top-bar .mx-3 {
    opacity: 0.4;
}

.navbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    padding: 0;
    z-index: 1030;
}

.navbar-brand {
    background-color: var(--bg-white);
    padding: 15px 35px 30px 35px;
    border-radius: 0 0 35px 35px;
    margin-bottom: -30px;
    box-shadow: 0 15px 25px -5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1040;
    transition: all 0.3s ease-in-out;
}

.navbar-brand img {
    height: 95px;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .navbar-brand {
    padding: 10px 25px 20px 25px;
    margin-bottom: -20px;
    border-radius: 0 0 25px 25px;
}

.navbar.scrolled .navbar-brand img {
    height: 70px;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.2) !important;
}
.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.navbar.scrolled .navbar-brand img {
    height: 65px;
}

/* --- Modern Utilities (Glassmorphism & Glow) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glow-effect {
    position: relative;
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.6), transparent, rgba(255,255,255,0.6));
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.glow-effect:hover::before {
    opacity: 0.5;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.6rem 1rem !important;
    margin: 0.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Elegant Dot Indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: #D32F2F; /* Cyan dot */
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* --- Mega Menu --- */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 1rem 0;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--brand-primary);
    padding-left: 1.8rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Carousel --- */
#heroCarousel {
    overflow: hidden;
}

#heroCarousel .carousel-item {
    height: 90vh;
    min-height: 600px;
    position: relative;
    background-color: var(--brand-dark);
}

#heroCarousel .hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    transform: scale(1);
    transition: transform 15s linear;
}

#heroCarousel .carousel-item.active .hero-bg {
    transform: scale(1.15);
}

#heroCarousel .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.1) 100%);
    z-index: 1;
}

#heroCarousel .hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

/* Staggered Hero Text Animations */
#heroCarousel .carousel-item .badge,
#heroCarousel .carousel-item h1,
#heroCarousel .carousel-item p,
#heroCarousel .carousel-item .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#heroCarousel .carousel-item.active .badge { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
#heroCarousel .carousel-item.active h1 { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
#heroCarousel .carousel-item.active p { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
#heroCarousel .carousel-item.active .btn { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }

#heroCarousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

/* --- Marquee --- */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
    cursor: pointer;
}
.marquee-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}
.marquee-item h4 {
    margin: 0;
    font-weight: 800;
}

/* --- Features Section --- */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Page Headers --- */
.page-header {
    background-color: var(--brand-dark);
    color: var(--bg-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    display: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--bg-white);
    opacity: 0.7;
}

.breadcrumb-item.active {
    color: var(--bg-white);
}

/* --- Section Formatting --- */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title h2::after {
    display: none;
}

/* --- Feature / Info Boxes --- */
.feature-box {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--brand-primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* --- Industry Cards --- */
.industry-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.industry-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-5px);
    border-color: var(--brand-primary);
    background: linear-gradient(180deg, var(--bg-white) 0%, #fef2f2 100%);
}

.industry-card i {
    transition: transform 0.3s ease;
}

.industry-card:hover i {
    transform: scale(1.1);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.cta-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* --- Product Cards --- */
.product-card {
    background-color: var(--bg-white);
    border-radius: 12px; /* Slightly rounder for modern look */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(204, 0, 0, 0.3); /* Subtle red border */
    transform: translateY(-8px);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    background-color: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.product-img-wrapper i {
    font-size: 4rem;
    color: var(--brand-dark);
}

.product-body {
    padding: 2rem;
}

.product-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-features li i {
    color: var(--brand-primary);
    margin-right: 8px;
}

/* --- Counter Section --- */
.counter-section {
    background-color: var(--brand-dark);
    color: var(--bg-white);
    padding: 4rem 0;
}

.counter-item {
    text-align: center;
}

.counter-item .counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

/* --- Testimonials --- */
.testimonial-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(0, 120, 212, 0.1);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial-author h5 {
    margin-bottom: 0;
    color: var(--brand-dark);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--brand-primary);
}

/* --- Premium Footer --- */
.footer {
    background: linear-gradient(180deg, var(--brand-dark) 0%, #050a15 100%);
    color: var(--bg-white);
    padding: 5rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-glass-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 0%, rgba(211, 47, 47, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.footer-heading {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background-color: #D32F2F;
}

.footer-links-premium {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-premium li {
    margin-bottom: 0.8rem;
}

.footer-links-premium a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
}

.footer-links-premium a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35); /* Subtle white chevron visible by default */
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-links-premium a:hover {
    color: #D32F2F;
    transform: translateX(4px);
}

.footer-links-premium a:hover::before {
    color: #D32F2F; /* Accent red on hover */
    transform: translateX(2px);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.footer-contact-info li i {
    margin-top: 4px;
    margin-right: 12px;
    font-size: 1rem;
}

/* Newsletter Form */
.newsletter-form .premium-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    padding-right: 60px;
    transition: all 0.3s ease;
}

.newsletter-form .premium-input:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: #D32F2F;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.newsletter-form .premium-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 50px;
    width: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D32F2F;
    border: none;
    transition: all 0.3s ease;
}

.newsletter-form .premium-submit:hover {
    background-color: #B71C1C;
    transform: scale(1.05);
}

.social-links-premium a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links-premium a:hover {
    background-color: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* --- Floating Buttons --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.floating-quote-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: var(--brand-primary);
    color: white;
    padding: 15px 10px;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.floating-quote-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.floating-quote-btn:hover {
    background-color: var(--brand-dark);
    color: white;
    padding-right: 20px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-primary);
    color: white;
    border-radius: 4px;
    text-align: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--brand-dark);
    color: white;
    transform: translateY(-3px);
}

/* --- Misc Utilities --- */
.bg-light-gray {
    background-color: var(--bg-light);
}

.text-brand-blue {
    color: var(--brand-primary);
}

.text-brand-dark {
    color: var(--brand-dark);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.hero-product-img {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Media Queries */
@media (max-width: 991px) {
    .top-bar {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        padding: 10px 20px 15px 15px;
        margin-left: -15px;
        border-radius: 0 0 35px 0;
        margin-bottom: -15px;
    }
    
    .navbar-brand img {
        height: 65px;
    }
    
    .navbar.scrolled .navbar-brand {
        padding: 5px 15px 10px 15px;
        margin-left: -15px;
        border-radius: 0 0 25px 0;
        margin-bottom: -10px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 55px;
    }

    .navbar-collapse {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
        padding: 1.5rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 15px 25px rgba(0,0,0,0.15);
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 3.5rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p.lead {
        font-size: 1.1rem;
    }
    
    #heroCarousel .carousel-item {
        min-height: 500px;
        height: 70vh;
    }
    
    .feature-box, .glass-card, .industry-card {
        padding: 1.5rem !important;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer h4 {
        margin-top: 1.5rem;
    }
}

/* --- Services Overhaul Custom Styles --- */
.service-card-premium {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 47, 47, 0.3);
}

.icon-wrapper-glow {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: rgba(211, 47, 47, 0.08);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card-premium:hover .icon-wrapper-glow {
    background: var(--brand-primary);
    color: var(--bg-white);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    transform: scale(1.05);
}

.checklist-premium li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.checklist-premium li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--brand-primary);
    transition: var(--transition);
}

.service-card-premium:hover .checklist-premium li i {
    transform: scale(1.2);
}

/* --- Service Delivery Process --- */
.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.process-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(211, 47, 47, 0.08);
    line-height: 1;
    margin-bottom: -1rem;
    transition: var(--transition);
}

.process-step:hover .process-number {
    color: rgba(211, 47, 47, 0.2);
    transform: translateY(-5px);
}

.process-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-primary);
    margin-bottom: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.process-step:hover .process-icon {
    border-color: var(--brand-primary);
    color: var(--bg-white);
    background-color: var(--brand-primary);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.25);
}

@media (min-width: 992px) {
    .process-step::after {
        content: '\f0da';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 68px;
        right: -15%;
        font-size: 1.5rem;
        color: var(--text-muted);
        opacity: 0.3;
        transition: var(--transition);
    }
    .process-step:hover::after {
        color: var(--brand-primary);
        opacity: 0.8;
        transform: translateX(5px);
    }
    .process-step:last-child::after {
        display: none;
    }
}

/* --- Stat Card Premium --- */
.stat-card-premium {
    background: var(--bg-white);
    border-radius: 16px;
    border-left: 5px solid var(--brand-primary);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stat-card-premium .counter-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-dark);
}

/* --- FAQ Accordion Custom --- */
.faq-accordion-custom .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-accordion-custom .accordion-item:hover {
    border-color: rgba(211, 47, 47, 0.25);
    box-shadow: var(--shadow-md);
}

.faq-accordion-custom .accordion-button {
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-dark);
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
}

.faq-accordion-custom .accordion-button:not(.collapsed) {
    background-color: rgba(211, 47, 47, 0.04);
    color: var(--brand-primary);
    box-shadow: none;
}

.faq-accordion-custom .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion-custom .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    background-color: var(--bg-white);
    font-size: 0.95rem;
}

/* --- Form Premium --- */
.form-premium {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-premium .form-control,
.form-premium .form-select {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-premium .form-control:focus,
.form-premium .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-premium label {
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* --- Corporate Entity Card styling --- */
.entity-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.entity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 47, 47, 0.25);
}

.entity-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    background: rgba(211, 47, 47, 0.06);
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    align-self: flex-start;
    transition: var(--transition);
}

.entity-card:hover .entity-badge {
    background: var(--brand-primary);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

/* --- Core Values Premium Cards --- */
.value-card-premium {
    position: relative;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    z-index: 1;
}

.value-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(211, 47, 47, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.value-card-premium.val-dark::after {
    background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.08) 0%, transparent 60%);
}

.value-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.35) !important;
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.12);
}

.value-card-premium.val-dark:hover {
    border-color: rgba(15, 23, 42, 0.5) !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
}

.value-card-premium:hover::after {
    opacity: 1;
}

.value-card-premium .value-icon {
    font-size: 2.25rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.value-card-premium:hover .value-icon {
    animation: valueIconFloat 2s ease-in-out infinite;
}

@keyframes valueIconFloat {
    0% { transform: translateY(0) scale(1.05); }
    50% { transform: translateY(-6px) scale(1.08); }
    100% { transform: translateY(0) scale(1.05); }
}

/* --- Global Dark/Light Mode Theme support --- */
[data-theme="dark"] {
    --bg-light: #0f172a;        /* Deep blue-slate instead of light gray */
    --bg-white: #1e293b;        /* Slate-800 instead of white */
    --text-main: #e2e8f0;       /* Slate-200 instead of dark text */
    --text-muted: #94a3b8;      /* Slate-400 instead of muted gray */
    --border-color: #334155;    /* Slate-700 instead of light border */
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Dark Mode Overrides for Bootstrap utilities and elements */
[data-theme="dark"] body {
    color: var(--text-main);
    background-color: var(--bg-light);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
    background-color: var(--bg-white) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] p.text-muted,
[data-theme="dark"] span.text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .card {
    background-color: var(--bg-white) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .premium-input {
    background-color: var(--bg-light) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: var(--border-color) !important;
}

/* Specific component overrides */
[data-theme="dark"] .value-card-premium {
    background-color: var(--bg-white) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .text-brand-dark {
    color: var(--text-main) !important;
}

[data-theme="dark"] .value-icon[style*="var(--brand-dark)"] {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .service-card-premium {
    background-color: var(--bg-white) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .accordion-item {
    background-color: var(--bg-white) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-white) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(211, 47, 47, 0.1) !important;
    color: #D32F2F !important;
}

/* Theme Switch Toggle style in Navbar */
.theme-toggle-container {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.4rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}



[data-theme="dark"] .theme-toggle-btn {
    color: #ffd700; /* gold color for sun icon in dark mode */
}

@media (max-width: 991.98px) {
    .theme-toggle-container {
        margin-right: 0 !important;
        margin-left: 0.8rem !important;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Hero Carousel Mobile Optimization */
@media (max-width: 767.98px) {
    #heroCarousel .carousel-item {
        min-height: 550px !important;
        height: 80vh !important;
    }
    #heroCarousel .carousel-item h1 {
        font-size: 2.00rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
    }
    #heroCarousel .carousel-item p.lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }
    #heroCarousel .carousel-item .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    #heroCarousel .carousel-item .btn {
        padding: 0.55rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* Floating Get Quote Bubble specifically for mobile */
.floating-quote-bubble {
    display: none; /* Hidden on desktop */
}

@media (max-width: 767.98px) {
    .floating-quote-btn {
        display: none !important;
    }
    .floating-quote-bubble {
        position: fixed;
        bottom: 95px;
        right: 30px;
        width: 50px;
        height: 50px;
        background-color: var(--brand-primary);
        color: white;
        border-radius: 50%;
        text-align: center;
        font-size: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        text-decoration: none;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .floating-quote-bubble:hover {
        transform: scale(1.1);
        color: white;
        background-color: var(--brand-dark);
    }
}

/* ==========================================================================
   ABOUT US PAGE PREMIUM REDESIGN STYLES
   ========================================================================== */

/* Grid and overlay patterns */
.bg-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}
.bg-grid-pattern-dark {
    background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Animated zoom container for images */
.img-zoom-container {
    overflow: hidden;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 6px solid white;
    transition: var(--transition);
}
.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom-container:hover img {
    transform: scale(1.04);
}
.img-zoom-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Middcom Advantage Cards */
.advantage-card-glass {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.advantage-card-glass:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 47, 47, 0.2);
}
.advantage-card-glass .adv-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(211, 47, 47, 0.06);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.advantage-card-glass:hover .adv-icon {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 16px rgba(211, 47, 47, 0.2);
}

/* Premium Entity Cards */
.entity-card-premium {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.entity-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, #ef5350 100%);
    opacity: 0;
    transition: var(--transition);
}
.entity-card-premium:hover::before {
    opacity: 1;
}
.entity-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 47, 47, 0.18);
}
.entity-card-premium .entity-scope-box {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 1.75rem;
    border-left: 4px solid var(--brand-primary);
    transition: var(--transition);
}
.entity-card-premium:hover .entity-scope-box {
    background-color: #fff8f8;
}

/* Mission & Vision Cards */
.purpose-card-premium {
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.purpose-card-premium.card-mission {
    background: linear-gradient(135deg, #fffcfc 0%, #ffffff 100%);
    border-left: 5px solid var(--brand-primary);
}

.purpose-card-premium.card-vision {
    background: linear-gradient(135deg, #fbfcfd 0%, #ffffff 100%);
    border-left: 5px solid var(--brand-dark);
}

/* Dark mode overrides for Mission & Vision cards */
[data-theme="dark"] .purpose-card-premium.card-mission {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08) 0%, var(--bg-white) 100%) !important;
    border-left: 5px solid var(--brand-primary) !important;
}

[data-theme="dark"] .purpose-card-premium.card-vision {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, var(--bg-white) 100%) !important;
    border-left: 5px solid var(--brand-dark) !important;
}

.purpose-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.purpose-card-premium .icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.purpose-card-premium:hover .icon-circle {
    transform: scale(1.1) rotate(15deg);
}

/* Premium Stat Cards for Dashboard view */
.stat-card-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.stat-card-glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(211, 47, 47, 0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-card-glass .counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ff5252;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

/* Technical Support Glass Cards */
.support-card-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: var(--transition);
    height: 100%;
}
.support-card-glass:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.support-card-glass .support-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ff5252;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.support-card-glass:hover .support-icon-wrapper {
    background: #ff5252;
    color: white;
    box-shadow: 0 6px 15px rgba(255, 82, 82, 0.35);
    transform: scale(1.05);
}


