
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Your existing variables follow below... */

/* =========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    --primary: #2563eb;
    --primary-hover: #1e40af;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* =========================================
   2. RESPONSIVE HEADER & NAVIGATION
   ========================================= */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu ul li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu ul li a:hover {
    color: var(--primary);
}

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* =========================================
   3. HERO & HOME CONTENT
   ========================================= */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.tools-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--dark);
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    border-color: var(--primary);
}

.tool-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   4. RESPONSIVE FOOTER
   ========================================= */
.main-footer {
    margin-top: auto;
    background: var(--dark);
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h4, .footer-links h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: left; /* Aligns with the flex-start */
    padding-top: 0;   /* Remove padding that was for the old border */
    border-top: none !important; /* This removes the extra line */
    font-size: 0.9rem;
    color: #94a3b8;
}

/* =========================================
   5. MOBILE RESPONSIVENESS (Media Queries)
   ========================================= */
@media (max-width: 768px) {
    /* Header Changes */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none; /* Hide by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1.5rem;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Hero Changes */
    .hero h1 {
        font-size: 2rem;
    }

    /* Footer Changes */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}



/* --- Responsive Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1000px; /* Narrower for better readability on legal/content pages */
    margin: 0 auto;
    padding: 20px 0;
}

/* Legal & Content Page Styles */
.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    word-wrap: break-word; /* Prevents long emails/URLs from breaking the layout */
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 768px) {
    .container {
        width: 92%; /* Give slightly more room on tiny screens */
        padding: 15px 0;
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    /* Make sure tables or code blocks don't overflow */
    pre, code, table {
        display: block;
        overflow-x: auto;
    }
}

/* SVG Icon Styling */
.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 12px;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Tool Colors */
.color-dns { background: #e0f2fe; color: #0369a1; }
.color-whois { background: #fef3c7; color: #b45309; }
.color-ip { background: #dcfce7; color: #15803d; }
.color-meta { background: #f3e8ff; color: #7e22ce; }
.color-robot { background: #fee2e2; color: #b91c1c; }
.color-json { background: #ffedd5; color: #c2410c; }
.color-pass { background: #e0e7ff; color: #4338ca; }
.color-base { background: #f1f5f9; color: #334155; }
.color-word { background: #ecfdf5; color: #047857; }

/* Home Info Spacing Update */
.home-info {
    padding: 80px 0; /* Vertical spacing around the box */
}

.info-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    line-height: 1.8;
}

.info-card h2 {
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--dark);
}

.info-card p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Responsive fix for info card */
@media (max-width: 768px) {
    .info-card {
        padding: 30px 20px;
    }
}


/* --- Footer Bottom Styling --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem; /* Adds space between the grid and the line */
    border-top: 1px solid #334155; /* This is your single clean line */
    flex-wrap: wrap;
    gap: 15px;
}

.github-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    padding: 6px 14px;
    border-radius: 50px;
    color: #f8fafc !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #334155;
}

.github-profile:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.github-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Mobile Fix for Footer Bottom */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}