/* ============================================
   EasyToolsHub — Premium UI v3.0
   Font: Inter (modern, crisp)
============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.25);
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 60px rgba(79, 70, 229, 0.15);
    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ---------- UTILITY ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: #eef2ff;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 6%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.logo h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 999px;
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-btn {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.25s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    background: var(--primary-dark);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 6% 6rem;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, #eef2ff, #ffffff 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.6rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(79, 70, 229, 0.15);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Search */
.hero-search {
    position: relative;
    z-index: 2;
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-search input {
    width: 480px;
    max-width: 90%;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 1rem;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
    outline: none;
    font-family: inherit;
}

.hero-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.hero-search button {
    padding: 1rem 2.4rem;
    border: none;
    border-radius: 999px;
    background: var(--text);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: inherit;
}

.hero-search button:hover {
    background: var(--primary);
    transform: scale(1.02);
}

/* Decorative blobs */
.hero-blob,
.hero-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.hero-blob {
    width: 400px;
    height: 400px;
    background: #818cf8;
    top: -100px;
    right: -80px;
}

.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: #a78bfa;
    bottom: -100px;
    left: -60px;
}

/* ---------- SECTIONS (shared) ---------- */
section {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Alternating background for depth */
.featured,
.why-us,
.tool-day {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 5rem 0;
}

.categories,
.stats {
    padding: 5rem 0;
}

/* ---------- TOOL GRID ---------- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem 1.8rem;
    border: 1px solid var(--border);
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-icon {
    font-size: 2.6rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 16px;
    margin-bottom: 1.2rem;
}

.tool-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.tool-card a {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    transition: 0.2s;
    align-self: flex-start;
}

.tool-card a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Coming Soon styling */
.tool-card.coming-soon {
    opacity: 0.7;
    background: var(--bg-alt);
    border-style: dashed;
}

.soon-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
    background: var(--border);
    color: var(--text-muted);
    border-radius: 999px;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ---------- CATEGORIES ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.cat-icon {
    font-size: 2.8rem;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 50%;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

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

/* ---------- STATS ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.2rem 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card h2 {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- TOOL OF THE DAY ---------- */
.day-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: white;
    padding: 2.8rem 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: 0.3s ease;
}

.day-card:hover {
    box-shadow: var(--shadow-md);
}

.day-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
    color: white;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.day-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.day-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.6rem;
}

.day-content .btn-primary {
    border: none;
    cursor: pointer;
    display: inline-flex;
}

/* ---------- WHY US ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.why-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 2.6rem;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 50%;
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: var(--radius);
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    margin-top: 1rem;
}

.newsletter h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.newsletter p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 2.2rem;
    line-height: 1.7;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.newsletter input {
    width: 400px;
    max-width: 90%;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-family: inherit;
    outline: 2px solid transparent;
    transition: 0.25s ease;
}

.newsletter input:focus {
    outline-color: white;
    transform: scale(1.02);
}

.newsletter button {
    padding: 1rem 2.6rem;
    border: none;
    border-radius: 999px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: inherit;
}

.newsletter button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---------- FOOTER ---------- */
footer {
    background: #0f172a;
    color: white;
    margin-top: 5rem;
}

.footer-top {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-top h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #e2e8f0;
}

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

.footer-top li {
    margin-bottom: 0.7rem;
}

.footer-top a {
    text-decoration: none;
    color: #94a3b8;
    transition: 0.2s ease;
    font-size: 0.95rem;
}

.footer-top a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    padding: 1.8rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ---------- NO RESULTS ---------- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: white;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        padding: 1rem 4%;
    }

    nav {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .day-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .day-icon {
        width: 90px;
        height: 90px;
        font-size: 2.8rem;
    }

    .newsletter {
        padding: 3rem 1.5rem;
    }

    .newsletter h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 500px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }

    .hero-search input {
        width: 100%;
    }

    .hero-search button {
        width: 100%;
        justify-content: center;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .day-content h3 {
        font-size: 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}