/* ═══════════════════════════════════════════════════════════
   AWALIM NEXUS PROTOCOL — DUBAI HQ
   "Viral & Unprecedented"
   The ultimate 3D / HUD takeover representing Awalim LLC (UAE).
   ═══════════════════════════════════════════════════════════ */

:root {
    --awa-gold: #D4AF37;
    --awa-emerald: #b2d235;
    --awa-dark: #05080b;
    --awa-glow-gold: rgba(212, 175, 55, 0.6);
    --awa-glow-emerald: rgba(178, 210, 53, 0.6);
}

/* 🇦🇪 THE AWALIM TRIGGER BUTTON */
.awa-trigger-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* LTR -> Right, RTL -> Left */
    z-index: 9999;
    background: rgba(5, 8, 11, 0.9);
    border: 1px solid var(--awa-gold);
    color: var(--awa-gold);
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 20px var(--awa-glow-gold), inset 0 0 10px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

body.ltr .awa-trigger-btn {
    left: auto;
    right: 30px;
}

.awa-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.awa-trigger-btn:hover::before {
    left: 150%;
}

.awa-trigger-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px var(--awa-glow-gold), inset 0 0 15px var(--awa-gold);
    color: #fff;
    background: #1a1500;
}

.awa-trigger-btn .uae-flag {
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 5px #000;
}

.awa-trigger-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Keep left aligned for English word AWALIM */
    line-height: 1.1;
}

.awa-trigger-text .bold-txt {
    font-size: 14px;
    text-transform: uppercase;
}

.awa-trigger-text .sub-txt {
    font-size: 8px;
    color: #aaa;
    letter-spacing: 1px;
}

/* 🌐 AWALIM NEXUS OVERLAY MULTIVERSE */
#awalim-nexus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 4, 6, 0.98);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

#awalim-nexus-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 💫 DIGITAL GRID & MAP BACKGROUND */
.awa-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: perspective(1000px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(1000px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

/* 🌍 3D GLOBE / RADAR */
.awa-radar-container {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.awa-radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: rotateRight 10s linear infinite;
    box-shadow: 0 0 50px var(--awa-glow-gold);
}

.awa-radar-ring-2 {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 2px solid rgba(178, 210, 53, 0.4);
    border-radius: 50%;
    animation: rotateLeft 15s linear infinite;
}

.awa-core-logo {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #000;
    border: 2px solid var(--awa-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: var(--awa-gold);
    text-shadow: 0 0 20px var(--awa-gold);
    box-shadow: 0 0 40px var(--awa-glow-gold), inset 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 10;
    animation: coreBreath 2s alternate infinite;
}

@keyframes rotateRight {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateLeft {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes coreBreath {
    to {
        transform: scale(1.1);
        box-shadow: 0 0 60px var(--awa-glow-gold);
    }
}

/* HUD UI ELEMENTS */
.awa-hud-panel {
    position: absolute;
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    z-index: 20;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.awa-hud-left {
    top: 20%;
    left: 5%;
    transform: translateX(-50px);
    opacity: 0;
}

.awa-hud-right {
    top: 20%;
    right: 5%;
    transform: translateX(50px);
    opacity: 0;
}

.awa-hud-bottom {
    bottom: 10%;
    width: 60%;
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
}

.active .awa-hud-left {
    animation: slideInLeft 1s forwards 0.5s;
}

.active .awa-hud-right {
    animation: slideInRight 1s forwards 0.5s;
}

.active .awa-hud-bottom {
    animation: slideInUp 1s forwards 1s;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.awa-hud-title {
    font-size: 10px;
    color: var(--awa-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 5px;
}

.awa-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #ccc;
}

.awa-stat-val {
    color: var(--awa-emerald);
    font-weight: bold;
}

.awa-big-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--awa-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
    line-height: 1;
}

.awa-desc {
    font-size: 16px;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.awa-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #ff5f56;
    font-size: 30px;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.3s;
}

.awa-close:hover {
    transform: rotate(90deg) scale(1.2);
}

/* Scanline Effect */
.awa-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 99;
    pointer-events: none;
    opacity: 0.3;
}