/* Modern Theme - Premium UI Overhaul (Dark Mode) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Holographic Dark - Premium Color Palette */
    --primary-color: #FF9933;
    /* Saffron/Orange Core */
    --primary-glow: rgba(255, 153, 51, 0.6);
    --primary-gradient: linear-gradient(135deg, #FF9933 0%, #FF5500 100%);

    /* Deep Void Backgrounds */
    --bg-dark: #000000;
    --bg-card-dark: rgba(10, 10, 12, 0.6);

    /* Holographic Glass */
    --glass-bg: rgba(5, 5, 5, 0.9);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(20, 20, 20, 0.8);

    /* Text & Accents */
    --secondary-color: #ffffff;
    --text-muted: #a0a0a0;

    /* Advanced Shadows & Glows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px var(--primary-glow), 0 0 10px var(--primary-color);
    --neon-border: 1px solid rgba(255, 153, 51, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #e0e0e0;
    background-color: var(--bg-dark);
    line-height: 1.6;
    /* Deep Grid Mesh Background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 153, 51, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 51, 153, 0.05) 0%, transparent 25%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

/* Gradient Text Effect for Headings */
h1,
h2 {
    background: linear-gradient(135deg, #ffffff 0%, #ffcc80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Gradient Text Utility */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Holographic Navbar --- */
.site-header,
.site-header .site-header-menu,
.sticky-header {
    background: rgba(5, 5, 5, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle top/bottom */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Laser Border on Bottom of Nav */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.8;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Ensure navbar-light doesn't override text colors */
.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show>.nav-link {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 153, 51, 0.8);
}

/* Fix Logo Visibility on Dark Background */
.site-branding img.logo-img {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 15px;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    height: 60px !important;
    width: auto;
    margin: 5px 0;
}

/* Navbar Links - Force White & Glow */
.site-header .navigation li a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.site-header .navigation li.active a,
.site-header .navigation li a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 15px var(--primary-color);
}

/* Header Button - Glowing Neon */
/* Header Button - Base Style (Primary/Sampark) */
.site-header .pbmit-header-button .pbmit-header-button-text-1 {
    background: transparent !important;
    /* Removed solid bg */
    color: #fff !important;
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: none;
    /* Removed default glow to clean up */
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.site-header .pbmit-header-button .pbmit-header-button-text-1:hover {
    background: var(--primary-color) !important;
    /* Solid on hover only */
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.5);
    transform: translateY(-2px);
}

/* Secondary Button Customization (Login) */
.pbmit-btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.pbmit-btn-secondary:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.site-header .pbmit-header-button .pbmit-header-button-text-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.site-header .pbmit-header-button .pbmit-header-button-text-1:hover {
    background: var(--primary-color);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-color);
}

.site-header .pbmit-header-button .pbmit-header-button-text-1:hover::before {
    left: 100%;
}

.site-header .pbmit-header-button {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

/* Hero Section Refinement */
.carousel-item {
    height: 85vh;
    min-height: 600px;
    position: relative;
}

/* Overlay gradient for Hero */
.carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #000, transparent);
    z-index: 1;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    /* Slightly deeper */
}

/* --- Holographic Panels (Cards) --- */
.pbminfotech-post-item,
.pbmit-static-box-style-1,
.bg-light,
.bg-white,
.news-content-card,
.glass-card {
    background: var(--bg-card-dark) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* Corner Accents for Cards */
.pbminfotech-post-item::before,
.news-content-card::before,
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 0 0 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.pbminfotech-post-item::after,
.news-content-card::after,
.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 0;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Hover Effect for Cards */
.pbminfotech-post-item:hover,
.pbmit-static-box-style-1:hover,
.news-content-card:hover,
.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 153, 51, 0.4);
    box-shadow: var(--shadow-glow);
    background: rgba(20, 20, 25, 0.8) !important;
}

.pbminfotech-post-item:hover::before,
.news-content-card:hover::before,
.glass-card:hover::before {
    border-color: var(--primary-color);
}

.pbminfotech-post-item:hover::after,
.news-content-card:hover::after,
.glass-card:hover::after {
    border-color: var(--primary-color);
}


.pbmit-featured-wrapper img {
    border-radius: 12px 12px 0 0;
    filter: saturate(0.9);
    transition: 0.5s;
}

.pbminfotech-post-item:hover img {
    filter: saturate(1.1);
}

/* Override Text Colors in Cards */
.pbminfotech-post-item h3,
.pbminfotech-post-item h4,
.pbminfotech-post-item a,
.text-dark {
    color: #fff !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Section Headings */
.pbmit-heading-subheading .pbmit-title {
    font-size: 42px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    color: #fff;
    /* Gradient applied globally earlier */
}

.pbmit-heading-subheading .pbmit-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin-top: 12px;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-color);
    margin-left: auto;
    /* Center alignment support if needed */
    margin-right: auto;
}

/* --- Advanced Footer UI --- */
.site-footer {
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
    color: var(--text-muted);
    padding-top: 80px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Glowing Top Border */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-color) 50%,
            transparent 100%);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Background Ambient Glow */
.site-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* Advanced Headings */
.site-footer h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #ffcc80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-left: none;
    /* Remove previous style */
    padding-left: 0;
    position: relative;
    display: inline-block;
}

/* Heading Underline Decoration */
.site-footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 8px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.5);
}

/* Content Typography */
.site-footer p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* Links with sophisticated hover */
.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.site-footer .footer-links li a:hover {
    color: #fff;
    padding-left: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.site-footer .footer-links li a i {
    transition: transform 0.3s ease;
}

.site-footer .footer-links li a:hover i {
    transform: translateX(3px);
    color: var(--primary-color);
}

/* Contact Info Styling */
.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info li i {
    width: 36px;
    height: 36px;
    background: rgba(255, 153, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
    color: var(--primary-color) !important;
    border: 1px solid rgba(255, 153, 51, 0.2);
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.4);
    transform: rotate(15deg);
}

/* Social Feed Containers - "Holographic" Panels */
.social-feed-container {
    background: rgba(15, 16, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Subtle corner accents */
.social-feed-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    border-radius: 16px 0 0 0;
    opacity: 0.5;
}

.social-feed-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    border-radius: 0 0 16px 0;
    opacity: 0.5;
}

.social-feed-container:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 153, 51, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 153, 51, 0.1);
}

/* Copyright Section */
.pbmit-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 60px !important;
    padding-top: 30px !important;
    position: relative;
    z-index: 2;
}

.pbmit-footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animations & AOS */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Holographic Buttons --- */
.pbmit-btn {
    background: transparent;
    color: var(--primary-color);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    /* Techy sharp-ish corners */
    border: 1px solid var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pbmit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.pbmit-btn:hover {
    color: #000;
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-glow);
    transform: translateY(-2px);
    border-color: transparent;
}

.pbmit-btn:hover::before {
    width: 100%;
}

/* --- Holographic Inputs --- */
.form-control {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(5, 5, 5, 0.8);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.3);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Refined Glass Cards (Base) --- */
.glass-card {
    background: var(--bg-card-dark);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.social-feed-container iframe,
.social-feed-container .elfsight-app {
    border-radius: 12px;
    overflow: hidden;
}

/* Tabs */
.nav-pills-custom .nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.nav-pills-custom .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-pills-custom .nav-link.active {
    background: rgba(255, 153, 51, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.nav-pills-custom .nav-link.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (min-width: 992px) {

    /* Removed the triangular arrow ::before pseudo-element as it caused design clutteredness */
    .nav-pills-custom .nav-link::before {
        display: none;
    }
}

/* Slider Animations - Ken Burns & Text Entrance */
@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Ken Burns to Active Slide Image */
.carousel-item.active img {
    animation: kenburns 6s ease-out forwards;
}

/* Apply Text Animation to Active Slide Caption */
.carousel-item.active .carousel-caption {
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.5s;
    /* Wait for slide to settle slightly */
}

/* Ensure caption is hidden initially for animation to work */
.carousel-caption {
    opacity: 0;
}

/* Progress Bar Style */
.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.5);
    width: 0;
    /* Default width */
}

/* Animate Progress Bar via JS Class or Approximation */
.carousel-progress-bar.animate {
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Page Header Styles - Holographic Mesh */
.page-header-hi {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    z-index: 1;
    overflow: hidden;
}

.page-header-hi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.4), #000);
    z-index: -1;
}

.page-header-hi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 153, 51, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.page-header-hi .pbmit-title-bar-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-header-hi .pbmit-tbar-title {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

/* Breadcrumb improvements */
.pbmit-breadcrumb {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pbmit-breadcrumb span a,
.pbmit-breadcrumb span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px;
    font-weight: 500;
}

.pbmit-breadcrumb .sep i {
    font-size: 14px;
    opacity: 0.7;
}

/* Pre-header cleanup */
.pre-header {
    background-color: #000;
    /* Pure black for top bar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 8px 0;
    font-size: 13px;
}

.pre-header a {
    color: #fff !important;
    text-decoration: none;
}

.pre-header i {
    color: var(--primary-color);
    margin-right: 6px;
}

/* Modal Customization for Dark Theme */
.modal-content {
    background-color: #1a1b20 !important;
    /* Slightly lighter than pure black */
    border: 1px solid var(--glass-border);
    color: #e0e0e0;
    box-shadow: var(--shadow-md);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-body .text-muted {
    color: #b0b0b0 !important;
    /* Ensure visibility */
}

/* Fix Alert Box Contrast inside Modal */
.modal-body .alert {
    background-color: rgba(255, 255, 255, 0.05) !important;
    /* Override inline light bg */
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
}

.modal-body .alert blockquote {
    border-left: none;
    /* Remove default bootstrap if needed, assuming custom style */
}

.modal-body .alert p,
.modal-body .alert figcaption {
    color: #ddd !important;
}

/* Close Button Customization */
.btn-close-custom {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-close-custom:hover {
    background-color: var(--primary-color) !important;
    transform: rotate(90deg);
}

/* List Items in Modal */
.modal-body ul li strong {
    color: var(--primary-color);
}

/* Fix Header Social Icons */
.pre-header .pbmit-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff !important;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.pre-header .pbmit-social-links li a i {
    color: #fff !important;
    /* Force icon white */
    margin: 0;
    font-size: 14px;
}

.pre-header .pbmit-social-links li a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Badge Styles */
.bg-primary-subtle {
    background-color: rgba(255, 153, 51, 0.15) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(255, 153, 51, 0.3);
}

.news-content-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--glass-border);
}

/* Utility to ensure images don't distort */
.object-fit-cover {
    object-fit: cover;
}