:root {
    --accent: #ffcc00;
    --bg: #0a0a0a;
    --card: #161616;
    --text: #ffffff;
}



body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0;
}

/* Header & Footer */
nav {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
}

.logo a { font-weight: 800; font-size: 1.5rem; color: var(--accent); letter-spacing: -1px; text-decoration: unset; }

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
    margin-top: 50px;
    font-size: 14px; color: #666;
}

/* Hero Section */
.hero { text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; background: linear-gradient(to right, #fff, #ffcc00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Grid System */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 5%;
    max-width: 1200px;
    margin: auto;
}

.tool-card {
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    border: 1px solid #222;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
}

.badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--accent); color: #000;
    font-size: 10px; font-weight: bold; padding: 3px 8px; border-radius: 5px;
}

.tool-card h3 { margin: 15px 0; font-size: 20px; }
.tool-card p { font-size: 14px; color: #888; line-height: 1.5; }

/* --- Desktop Default --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #000;
}

.menu {
    display: flex;
    gap: 20px;
}

/* --- MOBILE SCROLL MENU FIX --- */
@media (max-width: 768px) {
    
    html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container, .main-content {
    overflow-x: hidden;
}
    nav {
        flex-direction: column; /* Logo upar rahega */
        padding: 10px 0; /* Side padding hata di taaki scroll full width dikhe */
    }

    .logo {
        margin-bottom: 10px;
    }

    .menu {
        display: flex;
        width: 100%;
        overflow-x: auto; /* Horizontal scroll enable kiya */
        white-space: nowrap; /* Links ko ek hi line mein rakhega */
        padding: 10px 20px;
        gap: 15px;
        scrollbar-width: none; /* Firefox ke liye scrollbar chhupaya */
        -ms-overflow-style: none; /* IE ke liye */
        justify-content: flex-start; /* Links left se shuru honge */
    }

    /* Chrome/Safari ke liye scrollbar chhupaya */
    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a {
        display: inline-block;
        background: #1a1a1a; /* Button jaisa feel */
        padding: 8px 15px;
        border-radius: 50px;
        font-size: 13px;
        border: 1px solid #333;
        color: #fff;
        text-decoration: none;
        flex-shrink: 0; /* Buttons ko squeeze hone se rokega */
        margin-left: 0!important;
    }
}