/* Holographic Top Nav */
.holographic-topnav {
    background: #0f172a;
    /* Dark base */
    color: #00f3ff;
    /* Cyan text */
    height: 40px;
    font-size: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace for terminal feel */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    z-index: 1001;
}

.holographic-topnav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(0, 243, 255, 0.05) 1px,
            transparent 1px),
        linear-gradient(0deg,
            rgba(0, 243, 255, 0.05) 1px,
            transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

/* Scrolling Text */
.scrolling-text-container {
    width: 60%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.scrolling-text {
    display: inline-block;
    animation: scrollText 30s linear infinite;
    /* Slowed down slightly */
    direction: ltr;
    /* Force LTR for tech strings to prevent arabic flip issues with numbers */
}

.tech-item {
    margin-right: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.tech-item i {
    margin-right: 5px;
    color: #ff00ff;
    /* Magenta accents */
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Ensure data stays LTR inside text even in RTL */
.tech-item {
    margin-right: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
    display: inline-block;
}

/* Right Side Actions */
.holo-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.holo-link i {
    color: #00f3ff;
}

.holo-link:hover {
    color: #00f3ff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
}

.holo-separator {
    width: 1px;
    height: 15px;
    background: rgba(0, 243, 255, 0.3);
}

.holo-social {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Use px for precise control */
}

.holo-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    /* Ensure anchor behaves as flex container to center icon */
    align-items: center;
    justify-content: center;
    width: 20px;
    /* Fixed width for better visual rhythm */
    height: 20px;
}

.holo-social a:hover {
    color: #00f3ff;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px #00f3ff);
}

.holo-social i {
    font-size: 1rem;
    margin: 0 !important;
    /* Reset any legacy margins */
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 243, 255, 0.5);
    opacity: 0.5;
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}