/* ALFAWORLD TECHNOLOGY - COMPLETE MASTER STYLESHEET
    Theme: Fintech ERP (Dark Mode)
*/
/* Layout ko screen ke andar constrain karne ke liye */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Side scroll khatam karne ke liye */
}

/* Video section ko center karne ke liye */
.about-hero, .page-hero, .hero-video {
    width: 100vw;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* --- 1. GLOBAL SETTINGS --- */
:root {
    --brand-blue: #0070d2;
    --brand-dark: #0f172a;
    --mega-bg: #0d121d;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: var(--text-white);
    margin: 0;
    padding-top: 85px; /* Navbar space */
    overflow-x: hidden;
}

/* --- 2. HEADER & NAVIGATION --- */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999 !important;
    background-color: #000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    padding: 25px 15px !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--text-white) !important;
}

/* --- 3. MEGA MENU (The Wow Factor) --- */
.mega-menu {
    width: 850px !important;
    background-color: var(--mega-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 3px solid var(--brand-blue) !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    padding: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100000 !important;
}

.mega-sidebar {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px 0 !important;
}

.mega-sidebar .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    padding: 12px 25px !important;
    border-left: 4px solid transparent;
}

.mega-sidebar .nav-link.active, .mega-sidebar .nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #fff !important;
    border-left: 4px solid var(--brand-blue);
}

.menu-cat-title {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mm-item {
    color: #e2e8f0 !important;
    padding: 10px 0 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.mm-item i {
    color: #818cf8;
    margin-right: 12px;
}

.mm-item:hover {
    color: var(--brand-blue) !important;
    transform: translateX(5px);
}

/* --- 4. HERO SECTION (Video & Background) --- */
.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* --- 5. DARK FORMS & INPUTS --- */
.form-control, .form-select {
    background-color: #1a1a1a !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
}

.form-control:focus {
    background-color: #000 !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 10px rgba(0, 112, 210, 0.3) !important;
}

/* --- 6. BUTTONS --- */
.btn-primary {
    background-color: var(--brand-blue) !important;
    border: none !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: 0.3s !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 112, 210, 0.3);
}

/* --- 7. RESPONSIVENESS (Mobile Fixes) --- */
@media (max-width: 991px) {
    body { padding-top: 70px; }
    
    .navbar-collapse {
        background-color: #000;
        padding: 20px;
        margin-top: 10px;
    }

    .mega-menu {
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }

    .mega-sidebar .nav {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .mega-sidebar .nav-link {
        padding: 8px 15px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent;
    }

    .mega-sidebar .nav-link.active {
        border-bottom: 3px solid var(--brand-blue);
    }

    .hero-video { display: none; }
    .about-hero { background: url('about-bg.jpg') center/cover; }
}

/* --- 8. FOOTER --- */
.footer {
    background-color: #000;
    border-top: 1px solid #1e293b;
    padding: 80px 0 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    color: #fff;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
}/* --- UNIVERSAL HERO SECTION FIX --- */
/* Ye saare pages (About, White Label, Industries) ke hero sections ko piche rakhega */
.about-hero, 
.wl-hero, 
.ind-hero, 
.page-hero, 
.carousel-item {
    z-index: 1 !important; /* Content ko piche rakhega */
    position: relative;
}

/* Video aur Overlay ko bhi header ke piche dhakeln ke liye */
.hero-video, 
.hero-overlay, 
.carousel-item img, 
.overlay {
    z-index: -1 !important; 
}

/* Header ko har page par top layer par lane ke liye */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999 !important; /* Sabse upar */
    background-color: #000 !important;
}

/* Mega menu aur dropdowns ko header se bhi upar layer par laein */
.mega-menu, 
.dropdown-menu {
    z-index: 100000 !important;
    position: absolute;
    display: none;
}

/* --- TEXT & FORM VISIBILITY FIX FOR ALL PAGES --- */
/* Agar kisi page par form hai toh uske text ko white aur box ko dark rakhega */
input.form-control, 
select.form-select, 
textarea.form-control {
    background-color: #1a1a1a !important; 
    color: #ffffff !important; 
    border: 1px solid #334155 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dropdown items text color fix on scroll */
.dropdown-item {
    color: #ffffff !important;
    background: transparent !important;
}

.dropdown-item:hover {
    background-color: var(--brand-blue) !important;
    color: #fff !important;
}/* --- UNIVERSAL NAVBAR COMPACT FIX (For All Pages) --- */

/* 1. Header wrapper ko screen ke andar constrain karna */
.header-wrapper {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* 2. Container ki padding kam karna taaki 'Resources' corner se andar aa jaye */
.main-navbar .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: flex !important;
    flex-wrap: nowrap !important; /* Menu ko niche girne se rokega */
}

/* 3. Sabhi links ki width aur font adjust karna */
.navbar-nav .nav-link {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 0.82rem !important; /* Font size optimized for 13-15 inch laptops */
    letter-spacing: -0.2px !important; /* Characters ke beech ka space kam kiya */
    white-space: nowrap !important;
}

/* 4. Logo (ALFAWORLD) ka size aur margin adjust karna */
.navbar-brand {
    font-size: 1.2rem !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important; /* Logo ko dabne se rokega */
}

/* 5. Search bar aur buttons ka size kam karna (Top Bar) */
.top-search-input {
    width: 150px !important;
    font-size: 0.8rem !important;
}

.top-bar .btn-sm {
    font-size: 0.75rem !important;
    padding: 4px 12px !important;
}

/* 6. Special Fix: 1024px se 1366px wale Laptops ke liye */
@media (min-width: 992px) and (max-width: 1366px) {
    .navbar-nav .nav-link {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 0.78rem !important;
    }
    .navbar-brand {
        font-size: 1.1rem !important;
    }
}

/* 7. Dropdown Menu ko screen se bahar jane se rokna */
.dropdown-menu-end, .mega-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}/* Navbar spacing ko compact karne ke liye */
.navbar-nav .nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 0.82rem !important; /* Font chota kiya taki sab fit ho */
    white-space: nowrap !important;
}

/* Dropdown menus ko piche na dabne dene ke liye */
.dropdown-menu {
    z-index: 100000 !important;
}

/* Mega menu position fix */
.mega-menu {
    width: 900px !important; /* Width thodi badhayi options ke liye */
    background-color: #0d121d !important;
}
/* --- UNIVERSAL FIX FOR ALL PAGES --- */

/* 1. Navbar Container Fix */
.header-wrapper {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999999 !important; /* Extremely high priority */
    background: #000 !important;
}

/* 2. Mega Menu Visibility & Layering */
.mega-menu, .dropdown-menu {
    z-index: 10000000 !important; /* Header se bhi upar */
    background-color: #0d121d !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important;
}

/* 3. Hero/Video Sections ko piche dhaklein (About, WL, etc.) */
.about-hero, .wl-hero, .ind-hero, .page-hero, section, video, .hero-overlay {
    position: relative;
    z-index: 1 !important; /* Sabse niche wali layer */
}

/* 4. 'Resources' fitting fix (Compact Spacing) */
.navbar-nav .nav-link {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
}

.navbar-brand {
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
}
/* --- GOD MODE Z-INDEX --- */
.header-wrapper, .navbar {
    z-index: 2147483647 !important; /* Browser ki max limit */
    position: fixed !important;
}

.mega-menu, .dropdown-menu {
    z-index: 2147483647 !important;
    position: absolute !important;
}

/* Video aur Spline ko piche dhaklein */
video, canvas, section {
    z-index: 1 !important;
    position: relative;
    transform: none !important; /* Ye z-index ko break hone se rokega */
}
/* --- UNIVERSAL ALIGNMENT FIX --- */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Horizonal scroll ko block karega */
}

/* Hero Section ko center mein lock karne ke liye */
.prod-hero, .about-hero, .wl-hero, .ind-hero {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Video Positioning - Isse video side par nahi jayegi */
.hero-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Video ko stretch hone se rokega */
    transform: translate(-50%, -50%) !important; /* Exact Center */
    z-index: -1 !important;
}

.hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 0 !important;
}

.hero-content {
    z-index: 10 !important;
    width: 100% !important;
}
/* Header Layering Fix */
.header-wrapper {
    z-index: 2147483647 !important; /* Highest Priority */
    position: fixed !important;
}

/* Card Alignment Fix */
.card-perspective {
    width: 100%;
    overflow: visible;
}

/* Metallic Texture Colors */
.metallic-card {
    background: radial-gradient(circle at center, #1e293b, #0f172a);
}/* --- VISIBILITY & GLOW ENHANCEMENT --- */
.v-card-3d {
    width: 100%;
    max-width: 380px;
    height: 230px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Boundary fix: Isse card background se alag dikhega */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    box-shadow: 0 0 20px rgba(0, 112, 210, 0.2); 
}

/* 1. SAGUN CARD (High Contrast Gold) */
.gold-gradient { 
    background: linear-gradient(135deg, #FFD700 0%, #FFF9E6 50%, #B8860B 100%) !important; 
    color: #000 !important;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4) !important;
}

/* 2. VIDAI CARD (High Contrast Silver) */
.silver-gradient { 
    background: linear-gradient(135deg, #FDFDFD 0%, #C0C0C0 50%, #8E8E8E 100%) !important; 
    color: #000 !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3) !important;
}

/* 3. SERVICE CARDS (Tech Blue Glow) */
.theme-service {
    background: linear-gradient(135deg, #001F3F 0%, #0070D2 100%) !important;
    border: 1px solid #00C6FF !important;
    box-shadow: 0 0 30px rgba(0, 112, 210, 0.5) !important;
}

/* 4. VOUCHER CARDS (Neon Cyan Glow) */
.theme-voucher {
    background: linear-gradient(135deg, #004E92 0%, #000428 100%) !important;
    border: 1px solid #00D2FF !important;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4) !important;
}

/* Card par text ki visibility */
.card-title-text {
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    font-weight: 800;
}
/* Client Logos Scaling Fix */
.client-logo {
    max-height: 35px; /* Logos ko chota aur elegant rakhne ke liye */
    width: auto;
    filter: grayscale(100%) brightness(1.5); /* Black background par subtle look */
    transition: 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1); /* Hover par original color */
}

/* Feature Cards Visibility Fix */
.feature-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #0070d2 !important; /* AlfaWorld Blue */
    box-shadow: 0 20px 40px rgba(0, 112, 210, 0.2);
}

.feature-icon i {
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}/* Desktop par hover effect taaki click page ke liye free rahe */
@media (min-width: 992px) {
    .industries-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
    }
}
/* LAPTOP & GENERAL STYLES */
.section {
    display: grid;
    grid-template-columns: 1fr 380px 1fr; /* Laptop par Center Card Layout */
    align-items: center;
    gap: 40px;
    padding: 80px 10%;
    min-height: 100vh;
}

.card-container { width: 340px; height: 520px; perspective: 1000px; margin: 0 auto; }

/* PHONE & TABLET FIX (Asaan & Working) */
@media (max-width: 992px) {
    .section {
        grid-template-columns: 1fr !important; /* Columns ko khatam karke 1 line kar dega */
        text-align: center;
        padding: 40px 20px;
    }
    
    .text { max-width: 100%; order: 1; } /* Text upar aayega */
    .card-container { order: 2; width: 100%; max-width: 320px; margin: 30px auto; } /* Card niche aayega */
    
    .hero h1 { font-size: 30px !important; } /* Heading phone par set ho jayegi */
}