@font-face {
    font-family: 'NawafMark';
    src: url('../Font.otf') format('opentype');
    font-display: swap;
}

.dev-watermark {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 12000;
    pointer-events: auto;
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(16, 28, 52, 0.92), rgba(37, 62, 102, 0.94));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 4px 0 rgba(12, 21, 38, 0.85);
    color: #f6f8ff;
    font-family: 'NawafMark', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dev-badge:hover,
.dev-badge:focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22), 0 6px 0 rgba(12, 21, 38, 0.9);
}

.dev-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.dev-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0c1526;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.dev-logo::after {
    content: '';
    width: 28px;
    height: 28px;
    background: url('../NMLogo.png') center center/contain no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.dev-text {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transform: translateX(8px);
    transition: opacity 0.22s ease, max-width 0.25s ease, transform 0.22s ease;
    overflow: hidden;
    color: #fdfdff;
}

.dev-text strong { font-weight: 900; }

.dev-badge:hover .dev-text,
.dev-badge:focus-visible .dev-text,
.dev-badge:active .dev-text {
    opacity: 1;
    max-width: 320px;
    transform: translateX(0);
}

.dev-heart {
    display: inline-block;
    margin: 0 0.2rem;
    color: #ff6fb3;
}

@media (max-width: 768px) {
    .dev-watermark { right: 14px; bottom: 14px; }
    .dev-logo { width: 40px; height: 40px; }
    .dev-text { font-size: 0.95rem; }
}

@media (max-width: 520px) {
    .dev-badge { padding: 0.5rem 0.6rem; }
    .dev-text { max-width: 0; }
    .dev-badge:active .dev-text,
    .dev-badge:focus-visible .dev-text,
    .dev-badge:hover .dev-text {
        max-width: 260px;
    }
}
