/* =========================================
   STRICT MOBILE-ONLY CSS
   ========================================= */
@media (max-width: 768px) {
    /* Ensure the body does not allow horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Force the mobile menu to stay hidden until triggered */
    .mobile-menu {
        display: flex !important; /* It's flex when active, hidden otherwise */
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh !important;
        overflow-x: hidden !important;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 9999;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    /* Ensure hidden elements are truly removed from layout */
    .nav-links, .flex.items-center.gap-10 {
        display: none !important;
    }
}

/* =========================================
   DESKTOP PROTECTION (Crucial)
   ========================================= */
@media (min-width: 769px) {
    /* Explicitly hide mobile elements on desktop */
    .mobile-menu, .mobile-menu-btn, .mobile-menu-close {
        display: none !important;
    }
}
@media (max-width:768px){
/* GLOBAL FIX FOR HORIZONTAL SCROLL */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* This prevents the horizontal scroll bar */
    width: 100%;
}

* {
    box-sizing: border-box; /* Ensures padding/borders don't expand elements beyond width */
}
/* =========================
   HIDE DESKTOP MENU
========================= */

.nav-links,
.flex.items-center.gap-10{
    display:none;
}

/* =========================
   MOBILE NAVBAR
========================= */

.nav-container{
    padding:18px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo-image{
    height:50px;
    margin-left:0;
}

/* =========================
   MENU BUTTON
========================= */

.mobile-menu-btn{
    width:45px;
    height:45px;

    border-radius:50%;

    border:1px solid rgba(255,255,255,0.2);

    background:rgba(255,255,255,0.08);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    gap:5px;

    cursor:pointer;

    z-index:1002;
}

.mobile-menu-btn span{
    width:18px;
    height:2px;

    background:#fff;

    border-radius:10px;
}

/* =========================
   FULL SCREEN MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use vw for viewport width */
    height: 100vh;
    background: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    transform: translateX(100%);
    transition: 0.4s ease;
    z-index: 1001;
    overflow-x: hidden; /* Add this to ensure menu content doesn't break layout */
}



/* OPEN MENU */

.mobile-menu.active{
    transform:translateX(0);
}

/* =========================
   MENU LINKS
========================= */

.mobile-menu a{
    color:#fff;

    text-decoration:none;

    font-size:18px;

    letter-spacing:3px;
}

/* =========================
   CONTACT
========================= */

.mobile-contact{
    margin-top:40px;

    display:flex;
    flex-direction:column;

    align-items:center;

    gap:12px;
}

.mobile-contact a{
    font-size:14px;

    color:#d6d6d6;
}

/* =========================
   SOCIAL ICONS
========================= */

.mobile-social{
    margin-top:35px;

    display:flex;

    gap:18px;
}

.mobile-social a{
    width:45px;
    height:45px;

    border:1px solid #c5a059;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#c5a059;

    font-size:18px;
}
}

/* =========================
   HERO TEXT
========================= */

.hero-content{
    padding:0 25px;

    justify-content:center;
    align-items:center;

    text-align:center;
}

.hero-title{
    font-size:46px;
}

/* =========================
   FEEDBACK CARD
========================= */

.feedback-card{
    width:calc(100% - 30px);

    max-width:320px;

    right:50%;

    transform:translateX(50%);

    bottom:90px;
}

/* =========================
   HIDE RIGHT SOCIAL BAR
========================= */

.social-sidebar-right{
    display:none;
}


.mobile-menu-close{
    position:absolute;

    top:25px;
    right:25px;

    width:42px;
    height:42px;

    border-radius:50%;

    border:1px solid rgba(255,255,255,0.2);

    display:flex;
    justify-content:center;
    align-items:center;

    color:#fff;

    font-size:20px;

    cursor:pointer;

    background:rgba(255,255,255,0.05);
}

@media (max-width:768px){

/* HIDE SOCIAL BAR IN HOME */
.social-sidebar-right{
    display:none !important;
}

/* CENTER HERO CONTENT */
.hero-content{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;

    justify-content:center !important;
    align-items:center !important;

    text-align:center;

    padding:0 25px !important;

    z-index:20;
}

/* TITLE */
.hero-title{
    font-size:48px !important;
    line-height:1.05 !important;

    max-width:320px;

    margin:0 auto !important;
}

.hero-title span{
    display:block;
    margin-top:10px;

    font-size:0.5em;
}

/* FEEDBACK CARD */
.feedback-card{
    position:absolute !important;

    left:50% !important;
    right:auto !important;

    transform:translateX(-50%) !important;

    bottom:85px !important;

    width:calc(100% - 30px) !important;
    max-width:320px !important;

    padding:14px 18px !important;
}

/* SLIDER BUTTONS */
.controls-row{
    position:absolute !important;

    left:50% !important;
    right:auto !important;

    transform:translateX(-50%) !important;

    bottom:28px !important;

    gap:14px;
}

/* SMALLER DOTS */
.shape-btn{
    width:10px;
    height:10px;
}

/* NAVBAR */
.nav-container{
    padding:18px 20px !important;
}

/* LOGO */
.logo-image{
    height:50px !important;
    margin-left:0 !important;
}

/* MENU BUTTON */
.mobile-menu-btn{
    margin-right:0 !important;
}
/* Hero section mobile optimization */
.about-hero {
    height: 40vh !important; /* Reduces height to keep content centered on mobile */
    padding: 0 20px !important;
}

.hero-title {
    font-size: 28px !important; /* Smaller size for mobile readability */
    line-height: 1.2 !important;
    white-space: normal !important; /* Allows text to wrap instead of overflowing */
    word-break: break-word;
}

.hero-title span {
    display: block; /* Forces the gold text to appear on its own line */
    margin-top: 5px;
    font-size: 1em; 
}
}


/* next */
@media (max-width: 768px) {
    .premium-career-container {
        padding-top: 20px !important;    /* Reduced from 50px */
        padding-bottom: 20px !important; /* Reduced from 50px */
        margin-bottom: -60px !important;
    }

    .career-divider {
        margin: 25px auto !important;    /* Reduced space around the line */
    }

    .status-badge-wrapper {
        margin-bottom: 15px !important;  /* Tightens space above heading */
    }
}

/* =============================== */
/* FOOTER MOBILE CSS ONLY */
/* =============================== */

@media (max-width:768px){

    .madmaze-footer{
        padding:45px 18px 30px !important;
    }

    /* LOGO */

    .footer-logo{
        margin-bottom:20px !important;
    }

    .footer-logo img{
        width:180px !important;
    }

    /* DESCRIPTION */

    .footer-description{
        font-family:'Inter',sans-serif;

        font-size:14px !important;

        line-height:1.8 !important;

        color:#d2d2d2 !important;

        text-align:justify !important;

        margin-bottom:28px !important;

        padding:0 5px;
    }

    /* SOCIAL ICONS */

    .social-links{
        gap:12px !important;
        margin-bottom:30px !important;

        flex-wrap:wrap;
    }

    .social-links a{
        width:44px !important;
        height:44px !important;

        font-size:16px !important;

        border-radius:50%;

        background:rgba(255,255,255,0.06);

        border:1px solid rgba(255,255,255,0.08);

        backdrop-filter:blur(10px);
    }

    .social-links a:hover{
        transform:none !important;
    }

    /* MENU */

    .footer-nav{
        gap:14px 22px !important;

        margin-bottom:30px !important;

        justify-content:center;
    }

    .footer-nav a{
        font-size:14px !important;

        letter-spacing:0.3px;

        color:#e5e5e5 !important;
    }

    .footer-nav a .arrow{
        font-size:12px;
    }

    /* DIVIDER */

    .footer-divider{
        margin-bottom:20px !important;
    }

    /* BOTTOM */

    .footer-bottom{
        flex-direction:column !important;

        text-align:center;

        gap:10px !important;
    }

    .footer-bottom p{
        font-size:12px !important;

        line-height:1.7;

        color:#9f9f9f;

        /* text-align: justify !important; */
    }

    .legal-links{
        font-size:12px;
    }

    .legal-links a{
        color:#bdbdbd !important;
    }

    /* REMOVE EXTRA GLOW SIZE */

    .madmaze-footer::before{
        width:250px;
        height:250px;
        top:-120px;
        left:-100px;
    }

    .madmaze-footer::after{
        width:220px;
        height:220px;
        bottom:-120px;
        right:-80px;
    }

}