/*
 * Delhi Mazdoor Sangh - Core Premium Stylesheet
 * Branding: Dark Blue (#0f2027), Saffron/Orange (#ff6d00), Golden Yellow (#ffb300)
 */

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

:root {
    --primary-bg: #0f2027;
    --primary-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --saffron-gradient: linear-gradient(135deg, #ff6d00 0%, #ff9e00 100%);
    --gold-gradient: linear-gradient(135deg, #ffa000 0%, #ffd54f 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --primary-color: #0f2027;
    --secondary-color: #fbc02d;
    --accent-color: #e65100;
    --text-dark: #212529;
    --text-light: #f8f9fa;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #f5f7fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- DYNAMIC WEBSITE LOADER --- */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 109, 0, 0.15);
    border-top-color: #ff6d00;
    border-bottom-color: #ffd54f;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- TOP ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: var(--saffron-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid #ffd54f;
    z-index: 1030;
}
.announcement-bar marquee {
    vertical-align: middle;
}

/* --- STUNNING NAVIGATION HEADER --- */
.main-navbar {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ffb300;
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}
.navbar-brand img {
    height: 55px;
    transition: var(--transition-smooth);
}
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: 20px;
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: #ffb300 !important;
    background: rgba(255, 255, 255, 0.05);
}
.btn-nav-action {
    background: var(--saffron-gradient);
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 22px !important;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.3);
    transition: var(--transition-smooth);
}
.btn-nav-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.5);
}

/* --- HERO SLIDER --- */
.hero-slider-section .carousel-item {
    height: auto !important;
    min-height: auto !important;
    background: #000;
}
.slider-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 32, 39, 0.9) 0%, rgba(32, 58, 67, 0.5) 100%);
    z-index: 1;
}
.hero-slider-section img {
    height: auto !important;
    width: 100% !important;
    object-fit: fill !important;
    opacity: 0.65;
}
.slider-caption-wrapper {
    z-index: 2;
    position: relative;
    max-width: 750px;
}
.slider-caption-wrapper h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.slider-caption-wrapper h1 span {
    color: #ffb300;
}
.slider-caption-wrapper p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.btn-premium {
    padding: 14px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-smooth);
}
.btn-premium-saffron {
    background: var(--saffron-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 5px 20px rgba(255, 109, 0, 0.4);
}
.btn-premium-saffron:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 109, 0, 0.6);
    color: #fff;
}
.btn-premium-gold {
    background: var(--gold-gradient);
    border: none;
    color: #0f2027;
    box-shadow: 0 5px 20px rgba(255, 179, 0, 0.3);
}
.btn-premium-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.5);
    color: #0f2027;
}

/* --- PATRIOTIC PARTICLE / WAVE DECORATION --- */
.section-wave {
    background: var(--primary-gradient);
    position: relative;
    padding: 100px 0;
    color: #fff;
}
.section-wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3e%3cpath fill='%23f5f7fa' fill-opacity='1' d='M0,224L60,213.3C120,203,240,181,360,186.7C480,192,600,224,720,224C840,224,960,192,1080,186.7C1200,181,1320,203,1380,213.3L1440,224L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3e%3c/path%3e%3c/svg%3e") no-repeat bottom;
    background-size: cover;
}

/* --- SECTION GENERAL STYLE --- */
.section-heading-wrapper {
    margin-bottom: 60px;
    text-align: center;
}
.section-heading-wrapper h2 {
    font-size: 2.6rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-heading-wrapper h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: #ff6d00;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.section-heading-wrapper p {
    color: #6c757d;
    max-width: 600px;
    margin: 15px auto 0 auto;
    font-size: 1.05rem;
}

/* --- 3D PREMIUM CARDS --- */
.union-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.union-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--saffron-gradient);
    transition: var(--transition-smooth);
}
.union-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(15, 32, 39, 0.12);
}
.union-card:hover::before {
    height: 100%;
    z-index: -1;
    opacity: 0.04;
}
.union-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 109, 0, 0.1);
    color: #ff6d00;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}
.union-card:hover .union-card-icon {
    background: var(--saffron-gradient);
    color: #fff;
    transform: rotateY(180deg);
}

/* --- LABOUR CATEGORIES GRID --- */
.category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}
.category-card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}
.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.category-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-bg);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #ffd54f;
}
.category-card-body {
    padding: 25px;
}
.category-card-body h4 {
    font-size: 1.3rem;
    color: var(--primary-bg);
    margin-bottom: 12px;
}
.category-meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.category-card:hover .category-card-img img {
    transform: scale(1.1);
}

/* --- MASONRY PHOTO GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 25px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    height: 280px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: #fff;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- CORE TEAM MEMBER CARDS --- */
.member-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}
.member-card-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}
.member-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition-smooth);
}
.member-card-body {
    padding: 25px 20px;
}
.member-card-body h4 {
    margin-bottom: 5px;
    color: var(--primary-bg);
}
.member-card-body span {
    color: #ff6d00;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}
.member-socials a {
    width: 38px;
    height: 38px;
    background: #f1f3f5;
    color: var(--primary-bg);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.member-socials a:hover {
    background: var(--saffron-gradient);
    color: #fff;
    transform: translateY(-3px);
}
.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 32, 39, 0.1);
}
.member-card:hover .member-card-img img {
    transform: scale(1.05);
}

/* --- DYNAMIC GLASSMORPHIC INQUIRY FORM --- */
.inquiry-glass-section {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9) 0%, rgba(32, 58, 67, 0.8) 100%), url('../uploads/industry_bg.jpg') no-repeat center center/cover;
    background-blend-mode: overlay;
    padding: 100px 0;
}
.glass-form-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 45px;
    color: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.glass-form-card h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #ffd54f;
    text-align: center;
}
.glass-form-card label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}
.glass-form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff !important;
    padding: 12px 18px;
    transition: var(--transition-smooth);
}
.glass-form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd54f;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.2);
}
.glass-form-control option {
    background: var(--primary-bg);
    color: #fff;
}
.form-lock-overlay {
    position: relative;
}
.form-lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

/* --- CHAT SUPPORT / TICKETS STYLE --- */
.chat-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.chat-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 20px 25px;
    border-bottom: 3px solid #ffb300;
}
.chat-body {
    height: 480px;
    overflow-y: auto;
    padding: 25px;
    background: #f8f9fa;
}
.chat-message {
    margin-bottom: 20px;
    max-width: 75%;
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.message-user {
    background: #e3f2fd;
    color: #1565c0;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}
.message-admin {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    margin-right: auto;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.chat-footer {
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: relative;
    margin: 15px;
}
.testimonial-card::after {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(255, 109, 0, 0.08);
}
.testimonial-stars {
    color: #ffd54f;
    margin-bottom: 15px;
}
.testimonial-user {
    display: flex;
    align-items: center;
    margin-top: 25px;
}
.testimonial-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ff6d00;
}
.testimonial-user h5 {
    margin-bottom: 2px;
    color: var(--primary-bg);
}
.testimonial-user span {
    font-size: 0.85rem;
    color: #6c757d;
}

/* --- WHATSAPP & DIRECT CALL FLOATING BUTTONS --- */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
    text-decoration: none;
}
.float-whatsapp {
    background: #25d366;
}
.float-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.1) rotate(15deg);
    color: #fff;
}
.float-call {
    background: var(--saffron-gradient);
}
.float-call:hover {
    background: #e65100;
    transform: scale(1.1) rotate(-15deg);
    color: #fff;
}

/* --- MODERN RESPONSIVE FOOTER --- */
.site-footer {
    background: #091317;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px 0;
    border-top: 5px solid #ffd54f;
    font-size: 0.95rem;
}
.site-footer h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #ff6d00;
    bottom: 0;
    left: 0;
}
.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.site-footer a:hover {
    color: #ffb300;
    padding-left: 5px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--transition-smooth);
}
.footer-socials a:hover {
    background: var(--saffron-gradient);
    color: #fff;
    transform: translateY(-3px);
}
.newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 30px;
    padding: 10px 20px;
}
.newsletter-form input:focus {
    background: rgba(255,255,255,0.1);
    border-color: #ffb300;
    box-shadow: none;
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 50px;
    padding-top: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6) !important;
}
.site-footer .text-muted, .site-footer p.text-muted, .site-footer span.text-muted, .site-footer div.text-muted, .site-footer ul.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
.site-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.75) !important;
}
.site-footer .footer-bottom a:hover {
    color: #ffb300 !important;
}
.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}


/* --- LIGHTBOX IMAGE POPUP SYSTEM --- */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}
.lightbox-modal img {
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}
.lightbox-modal .btn-close {
    background-color: #fff;
    opacity: 0.8;
    padding: 10px;
    border-radius: 50%;
}

/* --- AUTH PAGES OR CARDS --- */
.auth-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
.auth-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 4px solid #ffd54f;
}
.auth-body {
    padding: 40px;
    background: #fff;
}
.auth-body label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #495057;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .hero-slider-section .carousel-item {
        height: auto !important;
    }
    .slider-caption-wrapper {
        max-width: 100% !important;
    }
    .slider-caption-wrapper h1 {
        font-size: 2.3rem;
    }
    .slider-caption-wrapper p {
        font-size: 1.0rem;
    }
    .site-footer {
        padding: 50px 0 20px 0;
    }
}

/* --- MEMBERSHIP ID CARD RESPONSIVE SCALING --- */
#dms-id-card-wrapper {
    max-width: 100%;
    overflow: visible;
    text-align: center;
}
@media (max-width: 375px) {
    #dms-id-card {
        transform: scale(0.9);
        transform-origin: top center;
        margin-bottom: -51px;
    }
}
@media (max-width: 340px) {
    #dms-id-card {
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -102px;
    }
}
