/*
Theme Name: Digi-Xa Crystal Premium V10 - Form Integrated
Description: Fixed Layout with embedded contact section form and perfected mobile UX.
Version: 10.3.0
*/

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #0b1120; color: #ffffff; overflow-x: hidden; min-height: 100vh; }

.crystal-bg-mixer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(circle at 10% 20%, rgba(0, 70, 199, 0.12), transparent 45%), radial-gradient(circle at 90% 80%, rgba(0, 162, 255, 0.12), transparent 45%), #0b1120; z-index: -2; pointer-events: none; }

/* HEADER */
.digixa-header { background: #ffffff !important; padding: 15px 20px; position: sticky; top: 0; z-index: 9999; border-bottom: 2px solid #00a2ff; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: block; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.header-branding { display: flex; align-items: center; gap: 15px; }
.logo img, .custom-logo-link img { max-width: 140px; height: auto; display: block; }
.logo-fallback { font-size: 1.6rem; font-weight: 800; color: #0046c7; text-decoration: none; }
.logo-fallback span { color: #00a2ff; }

.sparkle-text {
    border-left: 2px solid #e2e8f0; padding-left: 12px; font-size: 0.72rem; font-weight: 800; line-height: 1.2; text-transform: uppercase;
    background: linear-gradient(90deg, #475569, #00a2ff, #475569); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: textSparkleFlow 3s linear infinite;
}
@keyframes textSparkleFlow { to { background-position: 200% center; } }

/* Main Header Menu Restored and Safe Aligned */
.nav-menu { display: flex !important; align-items: center !important; }
.nav-menu a { margin-left: 20px; color: #1e293b !important; font-weight: 700; text-decoration: none; font-size: 0.88rem; transition: 0.3s; }
.nav-menu a:hover { color: #00a2ff !important; }

/* SLIDER */
.main-slider-area { height: 380px; position: relative; overflow: hidden; background: #070b14; width: 100%; display: block; }
.slide { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; z-index: 2; }
.slide-caption h2 { font-size: 2.6rem; color: #ffffff; text-shadow: 0 4px 12px rgba(0,0,0,0.7); font-weight: 800; margin-bottom: 10px; }
.slide-caption p { color: #00a2ff; font-size: 1.1rem; font-weight: 600; }

/* CONTAINER & CRYSTAL BOXES */
.main-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; position: relative; z-index: 5; }
.content-section { margin-bottom: 80px; display: block; }
.section-heading.crystal-heading { text-align: center; font-size: 2.3rem; margin-bottom: 40px; color: #ffffff; font-weight: 800; }

.pricing-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.crystal-box { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); border-top: 1px solid rgba(255,255,255,0.18); padding: 35px 25px; position: relative; overflow: hidden; transition: 0.4s ease; }
.crystal-box:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 70, 199, 0.25); border-color: rgba(0, 162, 255, 0.3); }
.crystal-gloss { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent); transform: skewX(-25deg); transition: 0.75s; }
.crystal-box:hover .crystal-gloss { left: 150%; }

.price-card h3, .service-box h3, .contact-info-box h3, .contact-form-box h3 { color: #ffffff; font-size: 1.4rem; margin-bottom: 15px; font-weight: 700; }
.featured-crystal { border: 1px solid rgba(0, 162, 255, 0.3); background: rgba(0, 70, 199, 0.05); }
.badge.neon-pulse { position: absolute; top: 15px; right: 15px; background: #00a2ff; color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; }
.feature-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); color: #94a3b8; font-size: 0.9rem; }
.feature-list li strong { color: #fff; }
.service-box p { color: #94a3b8; font-size: 0.95rem; }

/* EMBEDDED CONTACT GRID & FORM */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.info-line { color: #94a3b8; font-size: 0.95rem; margin-bottom: 15px; }
.info-line strong { color: #fff; }
.digixa-custom-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { color: #cbd5e1; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.form-group input, .form-group textarea { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 10px 12px; color: #ffffff; font-size: 0.9rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #00a2ff; background: rgba(15, 23, 42, 0.8); }
.form-submit-btn { background: linear-gradient(135deg, #0046c7 0%, #00a2ff 100%); color: #ffffff; border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 162, 255, 0.3); transition: 0.3s; margin-top: 5px; }
.form-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 162, 255, 0.5); }

/* FOOTER & WHATSAPP */
.footer-block { background: #050811; padding: 50px 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.footer-col p { color: #64748b; font-size: 0.9rem; }
.whatsapp-trigger-btn { position: fixed; bottom: 25px; right: 25px; background: #25D366; color: #fff; padding: 12px 22px; border-radius: 30px; border:none; font-weight: 700; cursor:pointer; z-index: 99999; }
.whatsapp-bot-widget { position: fixed; bottom: 85px; right: 25px; width: 300px; display: none; flex-direction: column; background: #0f172a; border-radius: 12px; overflow: hidden; z-index: 99999; border: 1px solid rgba(0, 162, 255, 0.2); }
.chatbot-header { background: #0046c7; color: #fff; padding: 15px; }
.chatbot-body { padding: 15px; color: #94a3b8; }
.chatbot-footer { padding: 12px; text-align: center; }
.whatsapp-send-btn { background: #25D366; color: white; text-decoration: none; padding: 8px 15px; border-radius: 6px; font-weight: 700; display: block; }


/* ================= RE-ENGINEERED COMPACT DROPDOWN ENGINE ================= */

.nav-menu li,
.main-navigation ul li, 
.menu-primary-container ul li,
li.menu-item-has-children {
    position: relative !important;
}

.nav-menu ul.sub-menu,
.main-navigation ul ul,
ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(8px) !important;
    background: #0f172a !important;
    border: 1px solid rgba(0, 162, 255, 0.3) !important;
    border-top: 2px solid #00a2ff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6) !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    min-width: 160px !important;
    width: max-content !important;
    display: none !important;
    z-index: 999999 !important;
    border-radius: 6px !important;
    backdrop-filter: blur(10px) !important;
}

.nav-menu ul.sub-menu li,
ul.sub-menu li {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-menu ul.sub-menu li a,
ul.sub-menu li a {
    color: #cbd5e1 !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: 2px solid transparent !important;
    background: transparent !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.nav-menu ul.sub-menu li a:hover,
ul.sub-menu li a:hover {
    background: rgba(0, 162, 255, 0.1) !important;
    color: #00a2ff !important;
    border-left-color: #00a2ff !important;
}

li:hover > ul.sub-menu,
li:hover > .sub-menu,
.menu-item-has-children:hover > ul.sub-menu {
    display: block !important;
    transform: translateX(-50%) translateY(0px) !important;
    animation: menuSlideMicro 0.2s ease-out !important;
}

.mobile-nav-overlay-left ul.sub-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    display: block !important;
    background: rgba(30, 41, 59, 0.4) !important;
    border: none !important;
    border-left: 2px solid #00a2ff !important;
    padding: 5px 0 5px 10px !important;
    margin: 4px 0 4px 12px !important;
    min-width: auto !important;
    box-shadow: none !important;
}

.mobile-nav-overlay-left ul.sub-menu li a {
    text-align: left !important;
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
}

@keyframes menuSlideMicro {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== DIGI-XA ULTRA-CLEAN MOBILE UX CORRECTION ENGINE ==================== */
@media (max-width: 768px) {
    /* Screen Matrix Overrides to prevent Horizontal Layout Shifts */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* REMOVE OLD CONFLICTING THEME OVERLAPPING BUTTONS (Like the circular menu button) */
    button.menu-toggle,
    .nav-toggle,
    .mobile-menu-icon,
    [class*="hamburger"],
    div[class*="menu"] > button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* RE-ENGINEERED MOBILE HEADER (Prevents cutting off, forces beautiful alignment) */
    .digixa-header {
        padding: 12px 8px !important;
        position: sticky !important;
        background: #ffffff !important;
        width: 100% !important;
    }
    .nav-container {
        flex-direction: column !important; /* Stack branding and links vertically */
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    .header-branding {
        flex-direction: column !important;
        gap: 4px !important;
        align-items: center !important;
    }
    .logo img, .custom-logo-link img {
        max-width: 105px !important; /* Scaled down perfectly so it doesn't look bulky */
        margin: 0 auto !important;
    }
    .sparkle-text {
        border-left: none !important;
        padding-left: 0 !important;
        font-size: 0.65rem !important;
        text-align: center !important;
    }

    /* SAFE WRAPPED IN-LINE NAVIGATION LINKS (No cut-offs) */
    .nav-menu {
        display: flex !important;
        flex-direction: row !important; /* Keep links horizontally wrapped */
        flex-wrap: wrap !important; /* Wrap to second line safely if screen is too small */
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 12px !important;
        width: 100% !important;
        margin: 5px 0 0 0 !important;
        padding: 0 !important;
    }
    .nav-menu a {
        margin: 0 !important;
        font-size: 0.82rem !important; /* Perfectly readable on smartphone layout */
        color: #1e293b !important;
        padding: 4px 6px !important;
    }

    /* HERO SLIDER SCALING */
    .main-slider-area {
        height: 240px !important;
    }
    .slide-caption h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }
    .slide-caption p {
        font-size: 0.88rem !important;
    }

    /* BOXES & GRID ADJUSTMENTS (Core Solutions Fixes) */
    .main-container {
        padding: 35px 15px !important;
    }
    .section-heading.crystal-heading {
        font-size: 1.75rem !important;
        margin-bottom: 30px !important;
    }
    .pricing-grid, .services-grid, .contact-grid {
        grid-template-columns: 1fr !important; /* 1 Column safe structure */
        gap: 20px !important;
    }
    .crystal-box {
        padding: 25px 20px !important;
        border-radius: 12px !important;
    }

    /* FORM SETTINGS */
    .form-group input, .form-group textarea {
        font-size: 16px !important; /* Disable iOS forced input field zoom-in */
    }

    /* FIXED WHATSAPP TRIGGER ENHANCEMENT (Locks button context to viewport) */
    .whatsapp-trigger-btn {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        padding: 10px 18px !important;
        font-size: 0.82rem !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
        z-index: 999999 !important; /* Keeps it on top of everything always */
    }
    .whatsapp-bot-widget {
        position: fixed !important;
        bottom: 75px !important;
        right: 20px !important;
        width: calc(100% - 40px) !important;
        max-width: 290px !important;
        z-index: 999999 !important;
    }

    /* FOOTER */
    .footer-block {
        padding: 35px 15px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 25px !important;
    }
}
/* ==================== END OF MOBILE CORRECTION ENGINE ==================== */